Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/lib/images/promos/presences-api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/lib/images/promos/relationships-out-of-beta.png
Binary file not shown.
18 changes: 9 additions & 9 deletions src/routes/(console)/bottomAlerts.ts
Original file line number Diff line number Diff line change
@@ -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',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 URL slug mismatch with PR description

The PR description states the target blog URL is https://appwrite.io/blog/post/announcing-presence-api (singular "presence"), but the code uses https://appwrite.io/blog/post/announcing-presences-api (plural "presences"). If the published blog post slug uses the singular form, every user who clicks "Read announcement" will hit a 404. Please verify the exact slug against the live or staged blog post before merging.

external: true,
hideOnClick: true,
skipUpgradeRedirect: true
},
show: true
};
listOfPromotions.push(relationshipsOutOfBetaPromo);
listOfPromotions.push(presencesApiPromo);
}

export function addBottomModalAlerts() {
Expand Down