Skip to content

Commit 8929d34

Browse files
authored
Merge pull request #2118 from HarshMN2345/feat-GRO-1127-Console-Notification-Auto
2 parents d22b714 + 1e671b1 commit 8929d34

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed
949 KB
Loading
426 KB
Loading

src/routes/(console)/bottomAlerts.ts

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import DatabaseUpsertDark from '$lib/images/promos/database-upsert-dark.png';
1212
import DatabaseUpsertLight from '$lib/images/promos/database-upsert-light.png';
1313
import EncryptedDatabasesDark from '$lib/images/promos/encrypted-attribute-dark.png';
1414
import EncryptedDatabasesLight from '$lib/images/promos/encrypted-attribute-light.png';
15+
import AutoIncrementDark from '$lib/images/promos/auto-increment-dark.png';
16+
import AutoIncrementLight from '$lib/images/promos/auto-increment-light.png';
1517

1618
const listOfPromotions: BottomModalAlertItem[] = [];
1719

@@ -95,7 +97,33 @@ if (isCloud) {
9597
},
9698
show: true
9799
};
98-
listOfPromotions.push(encryptedAttributePromo, databaseUpsert, bulkApiPromo, csvImportPromo);
100+
const autoIncrementPromo: BottomModalAlertItem = {
101+
id: 'modal:auto_increment_announcement',
102+
src: {
103+
dark: AutoIncrementDark,
104+
light: AutoIncrementLight
105+
},
106+
title: 'Announcing Auto-increment support',
107+
message:
108+
'Get a built-in numeric identifier that increases predictably with every new document added.',
109+
plan: 'free',
110+
importance: 8,
111+
scope: 'project',
112+
cta: {
113+
text: 'Read announcement',
114+
link: () => 'https://appwrite.io/blog/post/announcing-auto-increment',
115+
external: true,
116+
hideOnClick: true
117+
},
118+
show: true
119+
};
120+
listOfPromotions.push(
121+
autoIncrementPromo,
122+
encryptedAttributePromo,
123+
databaseUpsert,
124+
bulkApiPromo,
125+
csvImportPromo
126+
);
99127
}
100128

101129
export function addBottomModalAlerts() {

0 commit comments

Comments
 (0)