Skip to content

Commit f403bb6

Browse files
committed
fix: auto increment added back
1 parent 2675d14 commit f403bb6

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed
-563 KB
Binary file not shown.
-306 KB
Binary file not shown.

src/routes/(console)/bottomAlerts.ts

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { isCloud } from '$lib/system';
22
import { isSameDay } from '$lib/helpers/date';
33
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
4-
import DatabaseUpsertDark from '$lib/images/promos/database-upsert-dark.png';
5-
import DatabaseUpsertLight from '$lib/images/promos/database-upsert-light.png';
4+
import AutoIncrementDark from '$lib/images/promos/auto-increment-dark.png';
5+
import AutoIncrementLight from '$lib/images/promos/auto-increment-light.png';
66
import EncryptedDatabasesDark from '$lib/images/promos/encrypted-attribute-dark.png';
77
import EncryptedDatabasesLight from '$lib/images/promos/encrypted-attribute-light.png';
88
import OptInRelationDark from '$lib/images/promos/opt-relation-dark.png';
@@ -11,39 +11,40 @@ import OptInRelationLight from '$lib/images/promos/opt-relation-light.png';
1111
const listOfPromotions: BottomModalAlertItem[] = [];
1212

1313
if (isCloud) {
14-
const databaseUpsert: BottomModalAlertItem = {
15-
id: 'modal:database_upsert_announcement',
14+
const encryptedAttributePromo: BottomModalAlertItem = {
15+
id: 'modal:encrypted_attribute_announcement',
1616
src: {
17-
dark: DatabaseUpsertDark,
18-
light: DatabaseUpsertLight
17+
dark: EncryptedDatabasesDark,
18+
light: EncryptedDatabasesLight
1919
},
20-
title: 'Introducing Database Upsert',
21-
message: 'A new Appwrite Database feature, built to simplify your database interactions.',
20+
title: 'Introducing Encrypted string attribute support',
21+
message: 'Encrypt string attributes at rest, directly from the Appwrite Console.',
2222
plan: 'free',
2323
importance: 8,
2424
scope: 'project',
2525
cta: {
2626
text: 'Read announcement',
27-
link: () => 'https://appwrite.io/blog/post/announcing-database-upsert',
27+
link: () => 'https://appwrite.io/blog/post/announcing-encrypted-string-attributes',
2828
external: true,
2929
hideOnClick: true
3030
},
3131
show: true
3232
};
33-
const encryptedAttributePromo: BottomModalAlertItem = {
34-
id: 'modal:encrypted_attribute_announcement',
33+
const autoIncrementPromo: BottomModalAlertItem = {
34+
id: 'modal:auto_increment_announcement',
3535
src: {
36-
dark: EncryptedDatabasesDark,
37-
light: EncryptedDatabasesLight
36+
dark: AutoIncrementDark,
37+
light: AutoIncrementLight
3838
},
39-
title: 'Introducing Encrypted string attribute support',
40-
message: 'Encrypt string attributes at rest, directly from the Appwrite Console.',
39+
title: 'Announcing Auto-increment support',
40+
message:
41+
'Get a built-in numeric identifier that increases predictably with every new document added.',
4142
plan: 'free',
4243
importance: 8,
4344
scope: 'project',
4445
cta: {
4546
text: 'Read announcement',
46-
link: () => 'https://appwrite.io/blog/post/announcing-encrypted-string-attributes',
47+
link: () => 'https://appwrite.io/blog/post/announcing-auto-increment-support',
4748
external: true,
4849
hideOnClick: true
4950
},
@@ -69,7 +70,7 @@ if (isCloud) {
6970
},
7071
show: true
7172
};
72-
listOfPromotions.push(optInRelationPromo, encryptedAttributePromo, databaseUpsert);
73+
listOfPromotions.push(optInRelationPromo, autoIncrementPromo, encryptedAttributePromo);
7374
}
7475

7576
export function addBottomModalAlerts() {
@@ -87,5 +88,5 @@ export function isPromoLive(
8788
const targetString = `${date}T${time}:00`;
8889
const target = new Date(new Date(targetString).toLocaleString('en-US', { timeZone }));
8990

90-
return isSameDay(now, target) && now >= target;
91+
return isSameDay(now, target) && now > target;
9192
}

0 commit comments

Comments
 (0)