feat: add Database AI suggestions bottom alert

This commit is contained in:
Harsh Mahajan
2025-11-26 14:52:28 +05:30
parent b175e089f1
commit 7d24475f6f
5 changed files with 10 additions and 10 deletions
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

+10 -10
View File
@@ -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() {