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 not shown.
Binary file not shown.
Binary file added src/lib/images/promos/tables-api-dark.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 added src/lib/images/promos/tables-api-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 27 additions & 28 deletions src/routes/(console)/bottomAlerts.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
import { isCloud } from '$lib/system';
import { isSameDay } from '$lib/helpers/date';
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
import AtomicNumericOperationsDark from '$lib/images/promos/atomic-numeric-operations-dark.png';
import AtomicNumericOperationsLight from '$lib/images/promos/atomic-numeric-operations-light.png';
import AppwriteGeneralAvailabiltyLight from '$lib/images/promos/appwrite-general-availability-light.png';
import AppwriteGeneralAvailabiltyDark from '$lib/images/promos/appwrite-general-availability-dark.png';
import TablesApiLight from '$lib/images/promos/tables-api-light.png';
import TablesApiDark from '$lib/images/promos/tables-api-dark.png';
import TimestampOverridesDark from '$lib/images/promos/timestamp-overrides-dark.png';
import TimestampOverridesLight from '$lib/images/promos/timestamp-overrides-light.png';
import AppwriteGeneralAvailabiltyLight from '$lib/images/promos/appwrite-general-availability-light.png';
import AppwriteGeneralAvailabiltyDark from '$lib/images/promos/appwrite-general-availability-dark.png';

const listOfPromotions: BottomModalAlertItem[] = [];

if (isCloud) {
const appwriteGeneralAvailabiltyPromo: BottomModalAlertItem = {
id: 'modal:appwrite_general_availability_announcement',
const tablesApiPromo: BottomModalAlertItem = {
id: 'modal:tables_api_announcement',
src: {
dark: AppwriteGeneralAvailabiltyDark,
light: AppwriteGeneralAvailabiltyLight
dark: TablesApiDark,
light: TablesApiLight
},
title: 'Now Generally Available',
message: 'After 26 months of Appwrite Cloud, we are ready to remove the beta tag.',
title: 'Announcing the new TablesDB UI and more!',
message:
'This is Appwrite Databases’ most significant update so far, introducing new terminology, a new UI, and a supporting TablesDB API.',
plan: 'free',
importance: 8,
scope: 'everywhere',
scope: 'project',
cta: {
text: 'Learn more',
link: () => 'https://apwr.dev/ygTXfxA',
text: 'Read announcement',
link: () => 'https://apwr.dev/E64A90f',
external: true,
hideOnClick: true
},
show: true
};

const timestampOverridesPromo: BottomModalAlertItem = {
id: 'modal:timestamp_overrides_announcement',
src: {
Expand All @@ -50,31 +52,28 @@ if (isCloud) {
},
show: true
};
const atomicNumericOperationsPromo: BottomModalAlertItem = {
id: 'modal:atomic_numeric_operations_announcement',

const appwriteGeneralAvailabiltyPromo: BottomModalAlertItem = {
id: 'modal:appwrite_general_availability_announcement',
src: {
dark: AtomicNumericOperationsDark,
light: AtomicNumericOperationsLight
dark: AppwriteGeneralAvailabiltyDark,
light: AppwriteGeneralAvailabiltyLight
},
title: 'Announcing Atomic Numeric Operations',
message:
'Safely update numeric fields directly on the server, without conflicts or race conditions.',
title: 'Now Generally Available',
message: 'After 26 months of Appwrite Cloud, we are ready to remove the beta tag.',
plan: 'free',
importance: 8,
scope: 'project',
scope: 'everywhere',
cta: {
text: 'Read announcement',
link: () => 'https://appwrite.io/blog/post/announcing-atomic-numeric-operations',
text: 'Learn more',
link: () => 'https://apwr.dev/ygTXfxA',
external: true,
hideOnClick: true
},
show: true
};
listOfPromotions.push(
timestampOverridesPromo,
appwriteGeneralAvailabiltyPromo,
atomicNumericOperationsPromo
);

listOfPromotions.push(tablesApiPromo, timestampOverridesPromo, appwriteGeneralAvailabiltyPromo);
}

export function addBottomModalAlerts() {
Expand Down