Skip to content

Commit f69253f

Browse files
committed
feat: added promo notification for csv-import
1 parent b1a5d77 commit f69253f

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed
1.33 MB
Loading
551 KB
Loading

src/routes/(console)/bottomAlerts.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,34 @@ import { isCloud } from '$lib/system';
22
import { isSameDay } from '$lib/helpers/date';
33
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
44

5+
import CSVImportDark from '$lib/images/promos/csv-import-placeholder-dark.png';
6+
import CSVImportLight from '$lib/images/promos/csv-import-placeholder-light.png';
7+
58
const listOfPromotions: BottomModalAlertItem[] = [];
69

710
if (isCloud) {
8-
/* add promos here */
11+
const csvImportPromo: BottomModalAlertItem = {
12+
id: 'modal:csv_import_announcement',
13+
src: {
14+
dark: CSVImportDark,
15+
light: CSVImportLight
16+
},
17+
title: 'Introducing CSV import',
18+
message:
19+
"We're introducing a new way to populate your Appwrite databases: document imports from CSV files.",
20+
plan: 'free',
21+
importance: 8,
22+
scope: 'project',
23+
cta: {
24+
text: 'Read announcement',
25+
link: () => 'https://appwrite.io/blog/post/announcing-csv-imports',
26+
external: true
27+
},
28+
show: true // For testing, will be: isPromoLive('2025-07-01', '15:00', 'Europe/Paris')
29+
};
30+
if (csvImportPromo.show) {
31+
listOfPromotions.push(csvImportPromo);
32+
}
933
}
1034

1135
export function addBottomModalAlerts() {

0 commit comments

Comments
 (0)