|
1 | 1 | import { isCloud } from '$lib/system'; |
2 | 2 | import { isSameDay } from '$lib/helpers/date'; |
3 | 3 | import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts'; |
4 | | -import TransactionsApiDark from '$lib/images/promos/transactions-api-dark.png'; |
5 | | -import TransactionsApiLight from '$lib/images/promos/transactions-api-light.png'; |
| 4 | +import DbOperatorsDark from '$lib/images/promos/db-operators-dark.png'; |
| 5 | +import DbOperatorsLight from '$lib/images/promos/db-operators-light.png'; |
6 | 6 |
|
7 | 7 | const listOfPromotions: BottomModalAlertItem[] = []; |
8 | 8 |
|
9 | 9 | if (isCloud) { |
10 | | - const transactionsApiPromo: BottomModalAlertItem = { |
11 | | - id: 'modal:transactions_api_announcement', |
| 10 | + const dbOperatorsPromo: BottomModalAlertItem = { |
| 11 | + id: 'modal:db_operators_announcement', |
12 | 12 | src: { |
13 | | - dark: TransactionsApiDark, |
14 | | - light: TransactionsApiLight |
| 13 | + dark: DbOperatorsDark, |
| 14 | + light: DbOperatorsLight |
15 | 15 | }, |
16 | | - title: 'Announcing Transactions API', |
17 | | - message: 'Ensure data consistency across tables with atomic, all-or-nothing commits.', |
| 16 | + title: 'Announcing DB operators', |
| 17 | + message: 'Update multiple fields without fetching the entire row.', |
18 | 18 | plan: 'free', |
19 | 19 | importance: 8, |
20 | 20 | scope: 'project', |
21 | 21 | cta: { |
22 | 22 | text: 'Read announcement', |
23 | | - link: () => 'https://appwrite.io/blog/post/announcing-transactions-api', |
| 23 | + link: () => 'https://appwrite.io/blog/post/announcing-db-operators', |
24 | 24 | external: true, |
25 | 25 | hideOnClick: true |
26 | 26 | }, |
27 | 27 | show: true |
28 | 28 | }; |
29 | | - listOfPromotions.push(transactionsApiPromo); |
| 29 | + listOfPromotions.push(dbOperatorsPromo); |
30 | 30 | } |
31 | 31 |
|
32 | 32 | export function addBottomModalAlerts() { |
|
0 commit comments