|
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 RelationshipsOutOfBeta from '$lib/images/promos/relationships-out-of-beta.png'; |
| 4 | +import PresencesApi from '$lib/images/promos/presences-api.png'; |
5 | 5 |
|
6 | 6 | const listOfPromotions: BottomModalAlertItem[] = []; |
7 | 7 |
|
8 | 8 | if (isCloud) { |
9 | | - const relationshipsOutOfBetaPromo: BottomModalAlertItem = { |
10 | | - id: 'modal:relationships_out_of_beta_announcement', |
| 9 | + const presencesApiPromo: BottomModalAlertItem = { |
| 10 | + id: 'modal:presences_api_announcement', |
11 | 11 | src: { |
12 | | - dark: RelationshipsOutOfBeta, |
13 | | - light: RelationshipsOutOfBeta |
| 12 | + dark: PresencesApi, |
| 13 | + light: PresencesApi |
14 | 14 | }, |
15 | | - title: 'Database relationships are out of beta', |
| 15 | + title: 'Announcing the Presences API', |
16 | 16 | message: |
17 | | - 'After a year of performance overhauls, opt-in loading, and full query support, relationships are now production-ready.', |
| 17 | + 'Track who is online, typing, and active in realtime with built-in channels, automatic expiry, and permission-aware subscriptions.', |
18 | 18 | plan: 'free', |
19 | 19 | importance: 8, |
20 | 20 | scope: 'everywhere', |
21 | 21 | cta: { |
22 | 22 | text: 'Read announcement', |
23 | | - link: () => 'https://appwrite.io/blog/post/relationships-are-out-of-beta', |
| 23 | + link: () => 'https://appwrite.io/blog/post/announcing-presences-api', |
24 | 24 | external: true, |
25 | 25 | hideOnClick: true, |
26 | 26 | skipUpgradeRedirect: true |
27 | 27 | }, |
28 | 28 | show: true |
29 | 29 | }; |
30 | | - listOfPromotions.push(relationshipsOutOfBetaPromo); |
| 30 | + listOfPromotions.push(presencesApiPromo); |
31 | 31 | } |
32 | 32 |
|
33 | 33 | export function addBottomModalAlerts() { |
|
0 commit comments