Skip to content

Commit 1af5158

Browse files
feat(console): swap promo banner to Presence API announcement
Replace the relationships-out-of-beta banner with the new Presence API announcement linking to the appwrite.io blog post.
1 parent 94b2648 commit 1af5158

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

182 KB
Loading
-127 KB
Binary file not shown.

src/routes/(console)/bottomAlerts.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
import { isCloud } from '$lib/system';
22
import { isSameDay } from '$lib/helpers/date';
33
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
4-
import RelationshipsOutOfBeta from '$lib/images/promos/relationships-out-of-beta.png';
4+
import PresenceApi from '$lib/images/promos/presence-api.png';
55

66
const listOfPromotions: BottomModalAlertItem[] = [];
77

88
if (isCloud) {
9-
const relationshipsOutOfBetaPromo: BottomModalAlertItem = {
10-
id: 'modal:relationships_out_of_beta_announcement',
9+
const presenceApiPromo: BottomModalAlertItem = {
10+
id: 'modal:presence_api_announcement',
1111
src: {
12-
dark: RelationshipsOutOfBeta,
13-
light: RelationshipsOutOfBeta
12+
dark: PresenceApi,
13+
light: PresenceApi
1414
},
15-
title: 'Database relationships are out of beta',
15+
title: 'Announcing the Presence API',
1616
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.',
1818
plan: 'free',
1919
importance: 8,
2020
scope: 'everywhere',
2121
cta: {
2222
text: 'Read announcement',
23-
link: () => 'https://appwrite.io/blog/post/relationships-are-out-of-beta',
23+
link: () => 'https://appwrite.io/blog/post/announcing-presence-api',
2424
external: true,
2525
hideOnClick: true,
2626
skipUpgradeRedirect: true
2727
},
2828
show: true
2929
};
30-
listOfPromotions.push(relationshipsOutOfBetaPromo);
30+
listOfPromotions.push(presenceApiPromo);
3131
}
3232

3333
export function addBottomModalAlerts() {

0 commit comments

Comments
 (0)