|
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 PresencesApi from '$lib/images/promos/presences-api.png'; |
| 4 | +import StateOfAppwriteSurvey from '$lib/images/promos/state-of-appwrite-survey.png'; |
5 | 5 |
|
6 | 6 | const listOfPromotions: BottomModalAlertItem[] = []; |
7 | 7 |
|
8 | 8 | if (isCloud) { |
9 | | - const presencesApiPromo: BottomModalAlertItem = { |
10 | | - id: 'modal:presences_api_announcement', |
| 9 | + const stateOfAppwriteSurveyPromo: BottomModalAlertItem = { |
| 10 | + id: 'modal:state_of_appwrite_survey_announcement', |
11 | 11 | src: { |
12 | | - dark: PresencesApi, |
13 | | - light: PresencesApi |
| 12 | + dark: StateOfAppwriteSurvey, |
| 13 | + light: StateOfAppwriteSurvey |
14 | 14 | }, |
15 | | - title: 'Announcing the Presences API', |
| 15 | + title: 'State of Appwrite Cloud', |
16 | 16 | message: |
17 | | - 'Track who is online, typing, and active in realtime with built-in channels, automatic expiry, and permission-aware subscriptions.', |
| 17 | + 'Share your experience building with Appwrite Cloud and using AI tools, and help shape our product roadmap for 2026 and beyond.', |
18 | 18 | plan: 'free', |
19 | 19 | importance: 8, |
20 | 20 | scope: 'everywhere', |
21 | 21 | cta: { |
22 | | - text: 'Read announcement', |
23 | | - link: () => 'https://appwrite.io/blog/post/announcing-presences-api', |
| 22 | + text: 'Take the survey', |
| 23 | + link: () => 'https://forms.gle/5cvWxTwhonoDCWsi7', |
24 | 24 | external: true, |
25 | 25 | hideOnClick: true, |
26 | 26 | skipUpgradeRedirect: true |
27 | 27 | }, |
28 | 28 | show: true |
29 | 29 | }; |
30 | | - listOfPromotions.push(presencesApiPromo); |
| 30 | + listOfPromotions.push(stateOfAppwriteSurveyPromo); |
31 | 31 | } |
32 | 32 |
|
33 | 33 | export function addBottomModalAlerts() { |
|
0 commit comments