mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
feat: add Database AI suggestions bottom alert
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 834 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 856 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 221 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 86 KiB |
@@ -1,32 +1,32 @@
|
||||
import { isCloud } from '$lib/system';
|
||||
import { isSameDay } from '$lib/helpers/date';
|
||||
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
|
||||
import DbOperatorsDark from '$lib/images/promos/db-operators-dark.png';
|
||||
import DbOperatorsLight from '$lib/images/promos/db-operators-light.png';
|
||||
import AiSuggestionsDark from '$lib/images/promos/ai-suggestions-dark.png';
|
||||
import AiSuggestionsLight from '$lib/images/promos/ai-suggestions-light.png';
|
||||
|
||||
const listOfPromotions: BottomModalAlertItem[] = [];
|
||||
|
||||
if (isCloud) {
|
||||
const dbOperatorsPromo: BottomModalAlertItem = {
|
||||
id: 'modal:db_operators_announcement',
|
||||
const aiSuggestionsPromo: BottomModalAlertItem = {
|
||||
id: 'modal:database_ai_suggestions_announcement',
|
||||
src: {
|
||||
dark: DbOperatorsDark,
|
||||
light: DbOperatorsLight
|
||||
dark: AiSuggestionsDark,
|
||||
light: AiSuggestionsLight
|
||||
},
|
||||
title: 'Announcing DB operators',
|
||||
message: 'Update multiple fields without fetching the entire row.',
|
||||
title: 'Announcing Database AI suggestions',
|
||||
message: 'From table name to schema in one click.',
|
||||
plan: 'free',
|
||||
importance: 8,
|
||||
scope: 'project',
|
||||
cta: {
|
||||
text: 'Read announcement',
|
||||
link: () => 'https://appwrite.io/blog/post/announcing-db-operators',
|
||||
link: () => 'https://appwrite.io/blog/post/announcing-database-ai-suggestions',
|
||||
external: true,
|
||||
hideOnClick: true
|
||||
},
|
||||
show: true
|
||||
};
|
||||
listOfPromotions.push(dbOperatorsPromo);
|
||||
listOfPromotions.push(aiSuggestionsPromo);
|
||||
}
|
||||
|
||||
export function addBottomModalAlerts() {
|
||||
|
||||
Reference in New Issue
Block a user