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 removed src/lib/images/promos/presences-api.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 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 PresencesApi from '$lib/images/promos/presences-api.png';
import StateOfAppwriteSurvey from '$lib/images/promos/state-of-appwrite-survey.png';

const listOfPromotions: BottomModalAlertItem[] = [];

if (isCloud) {
const presencesApiPromo: BottomModalAlertItem = {
id: 'modal:presences_api_announcement',
const stateOfAppwriteSurveyPromo: BottomModalAlertItem = {
id: 'modal:state_of_appwrite_survey_announcement',
src: {
dark: PresencesApi,
light: PresencesApi
dark: StateOfAppwriteSurvey,
light: StateOfAppwriteSurvey
},
title: 'Announcing the Presences API',
title: 'State of Appwrite Cloud',
message:
'Track who is online, typing, and active in realtime with built-in channels, automatic expiry, and permission-aware subscriptions.',
'Share your experience building with Appwrite Cloud and using AI tools, and help shape our product roadmap for 2026 and beyond.',
plan: 'free',
importance: 8,
scope: 'everywhere',
cta: {
text: 'Read announcement',
link: () => 'https://appwrite.io/blog/post/announcing-presences-api',
text: 'Take the survey',
link: () => 'https://forms.gle/5cvWxTwhonoDCWsi7',
external: true,
hideOnClick: true,
skipUpgradeRedirect: true
},
show: true
};
listOfPromotions.push(presencesApiPromo);
listOfPromotions.push(stateOfAppwriteSurveyPromo);
}

export function addBottomModalAlerts() {
Expand Down