diff --git a/src/lib/images/promos/presences-api.png b/src/lib/images/promos/presences-api.png new file mode 100644 index 0000000000..c2f5b2cbf2 Binary files /dev/null and b/src/lib/images/promos/presences-api.png differ diff --git a/src/lib/images/promos/relationships-out-of-beta.png b/src/lib/images/promos/relationships-out-of-beta.png deleted file mode 100644 index 180ca1d844..0000000000 Binary files a/src/lib/images/promos/relationships-out-of-beta.png and /dev/null differ diff --git a/src/routes/(console)/bottomAlerts.ts b/src/routes/(console)/bottomAlerts.ts index 97ba890c86..6d7ef4ee9b 100644 --- a/src/routes/(console)/bottomAlerts.ts +++ b/src/routes/(console)/bottomAlerts.ts @@ -1,33 +1,33 @@ import { isCloud } from '$lib/system'; import { isSameDay } from '$lib/helpers/date'; import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts'; -import RelationshipsOutOfBeta from '$lib/images/promos/relationships-out-of-beta.png'; +import PresencesApi from '$lib/images/promos/presences-api.png'; const listOfPromotions: BottomModalAlertItem[] = []; if (isCloud) { - const relationshipsOutOfBetaPromo: BottomModalAlertItem = { - id: 'modal:relationships_out_of_beta_announcement', + const presencesApiPromo: BottomModalAlertItem = { + id: 'modal:presences_api_announcement', src: { - dark: RelationshipsOutOfBeta, - light: RelationshipsOutOfBeta + dark: PresencesApi, + light: PresencesApi }, - title: 'Database relationships are out of beta', + title: 'Announcing the Presences API', message: - 'After a year of performance overhauls, opt-in loading, and full query support, relationships are now production-ready.', + 'Track who is online, typing, and active in realtime with built-in channels, automatic expiry, and permission-aware subscriptions.', plan: 'free', importance: 8, scope: 'everywhere', cta: { text: 'Read announcement', - link: () => 'https://appwrite.io/blog/post/relationships-are-out-of-beta', + link: () => 'https://appwrite.io/blog/post/announcing-presences-api', external: true, hideOnClick: true, skipUpgradeRedirect: true }, show: true }; - listOfPromotions.push(relationshipsOutOfBetaPromo); + listOfPromotions.push(presencesApiPromo); } export function addBottomModalAlerts() {