diff --git a/src/lib/images/promos/encrypted-attribute-dark.png b/src/lib/images/promos/encrypted-attribute-dark.png new file mode 100644 index 000000000..6e7142552 Binary files /dev/null and b/src/lib/images/promos/encrypted-attribute-dark.png differ diff --git a/src/lib/images/promos/encrypted-attribute-light.png b/src/lib/images/promos/encrypted-attribute-light.png new file mode 100644 index 000000000..1da958194 Binary files /dev/null and b/src/lib/images/promos/encrypted-attribute-light.png differ diff --git a/src/routes/(console)/bottomAlerts.ts b/src/routes/(console)/bottomAlerts.ts index 91b75e75e..dae1e4d0f 100644 --- a/src/routes/(console)/bottomAlerts.ts +++ b/src/routes/(console)/bottomAlerts.ts @@ -7,8 +7,11 @@ import BulkApiLight from '$lib/images/promos/bulk-api-light.png'; import CSVImportDark from '$lib/images/promos/csv-import-placeholder-dark.png'; import CSVImportLight from '$lib/images/promos/csv-import-placeholder-light.png'; + import DatabaseUpsertDark from '$lib/images/promos/database-upsert-dark.png'; import DatabaseUpsertLight from '$lib/images/promos/database-upsert-light.png'; +import EncryptedDatabasesDark from '$lib/images/promos/encrypted-attribute-dark.png'; +import EncryptedDatabasesLight from '$lib/images/promos/encrypted-attribute-light.png'; const listOfPromotions: BottomModalAlertItem[] = []; @@ -73,8 +76,26 @@ if (isCloud) { }, show: true }; - - listOfPromotions.push(databaseUpsert, bulkApiPromo, csvImportPromo); + const encryptedAttributePromo: BottomModalAlertItem = { + id: 'modal:encrypted_attribute_announcement', + src: { + dark: EncryptedDatabasesDark, + light: EncryptedDatabasesLight + }, + title: 'Introducing Encrypted String Attributes', + message: 'Encrypt string attributes at rest, directly from the Appwrite console', + plan: 'free', + importance: 8, + scope: 'project', + cta: { + text: 'Read announcement', + link: () => 'https://appwrite.io/blog/post/announcing-encrypted-string-attributes', + external: true, + hideOnClick: true + }, + show: true + }; + listOfPromotions.push(encryptedAttributePromo, databaseUpsert, bulkApiPromo, csvImportPromo); } export function addBottomModalAlerts() {