From 2efedb0a9edebc20d3925c35c02629609c275bcf Mon Sep 17 00:00:00 2001 From: Aditya Oberai Date: Tue, 27 Jan 2026 15:59:51 +0000 Subject: [PATCH 1/9] Add PH promo --- src/routes/(console)/bottomAlerts.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/routes/(console)/bottomAlerts.ts b/src/routes/(console)/bottomAlerts.ts index ba94c9af83..fd8ad23fa5 100644 --- a/src/routes/(console)/bottomAlerts.ts +++ b/src/routes/(console)/bottomAlerts.ts @@ -14,15 +14,15 @@ const listOfPromotions: BottomModalAlertItem[] = []; if (isCloud && SHOW_IMAGINE_PROMO) { const imaginePromo: BottomModalAlertItem = { - id: 'modal:imagine.dev', + id: 'modal:imagine-ph-launch', backgroundComponent: Imagine, - title: 'Introducing Imagine', - message: 'the most complete AI builder to date', + title: 'Imagine is live on Product Hunt', + message: 'Ask questions, share feedback, and support the launch', importance: 8, scope: 'everywhere', plan: 'free', cta: { - text: 'Try it now', + text: 'Head to Product Hunt', color: { light: '#FFFFFF', dark: '#000000' @@ -35,7 +35,8 @@ if (isCloud && SHOW_IMAGINE_PROMO) { light: '#333333', dark: '#CCCCCC' }, - link: () => 'https://cloud.appwrite.io', + link: () => + 'https://www.producthunt.com/products/imagine-2?launch=imagine-00018118-5267-43ba-b456-efeeb7cbfbc9', external: true, hideOnClick: true }, From 7ea03f90c71c5c1cf569090c874cbc295c551e9b Mon Sep 17 00:00:00 2001 From: adityaoberai Date: Tue, 27 Jan 2026 22:09:17 +0530 Subject: [PATCH 2/9] Enable Imagine promo for Product Hunt launch --- src/routes/(console)/bottomAlerts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/(console)/bottomAlerts.ts b/src/routes/(console)/bottomAlerts.ts index fd8ad23fa5..4b749a14fc 100644 --- a/src/routes/(console)/bottomAlerts.ts +++ b/src/routes/(console)/bottomAlerts.ts @@ -7,14 +7,14 @@ import { showBottomModalAlert } from '$lib/stores/bottom-alerts'; -const SHOW_IMAGINE_PROMO = false; +const SHOW_IMAGINE_PROMO = true; import { ProfileMode, resolvedProfile } from '$lib/profiles/index.svelte'; const listOfPromotions: BottomModalAlertItem[] = []; if (isCloud && SHOW_IMAGINE_PROMO) { const imaginePromo: BottomModalAlertItem = { - id: 'modal:imagine-ph-launch', + id: 'modal:imagine-ph-launch-studio', backgroundComponent: Imagine, title: 'Imagine is live on Product Hunt', message: 'Ask questions, share feedback, and support the launch', From 90a33e1474def48df8ed8c6d4068508d254f4ece Mon Sep 17 00:00:00 2001 From: adityaoberai Date: Tue, 27 Jan 2026 22:16:26 +0530 Subject: [PATCH 3/9] adjust profile check at the bottom --- src/routes/(console)/bottomAlerts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/(console)/bottomAlerts.ts b/src/routes/(console)/bottomAlerts.ts index 4b749a14fc..5be4d622fe 100644 --- a/src/routes/(console)/bottomAlerts.ts +++ b/src/routes/(console)/bottomAlerts.ts @@ -14,7 +14,7 @@ const listOfPromotions: BottomModalAlertItem[] = []; if (isCloud && SHOW_IMAGINE_PROMO) { const imaginePromo: BottomModalAlertItem = { - id: 'modal:imagine-ph-launch-studio', + id: 'modal:imagine-ph-launch-studio-123', backgroundComponent: Imagine, title: 'Imagine is live on Product Hunt', message: 'Ask questions, share feedback, and support the launch', @@ -48,7 +48,7 @@ if (isCloud && SHOW_IMAGINE_PROMO) { export function addBottomModalAlerts() { // fast path: not the valid profile to show this! - if (resolvedProfile.id !== ProfileMode.CONSOLE) return; + if (resolvedProfile.id !== ProfileMode.STUDIO) return; listOfPromotions.forEach((promotion) => showBottomModalAlert(promotion)); From 347e17cc562afdef2fbe08df4f6744243106e103 Mon Sep 17 00:00:00 2001 From: adityaoberai Date: Wed, 17 Dec 2025 01:52:58 +0530 Subject: [PATCH 4/9] Fix styling for Imagine promo component --- src/lib/components/promos/imagine.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/promos/imagine.svelte b/src/lib/components/promos/imagine.svelte index 0f275b3daf..ff316b51a6 100644 --- a/src/lib/components/promos/imagine.svelte +++ b/src/lib/components/promos/imagine.svelte @@ -22,10 +22,12 @@ position: relative; background-color: #000000; border: 0.795px solid var(--border-neutral-strong); + overflow: hidden; } .imagine-canvas { position: absolute; + inset: 0; } .imagine-logo { From 8f176a8f74e8ca7b4dd1d8eeb37444a6d68fae29 Mon Sep 17 00:00:00 2001 From: adityaoberai Date: Tue, 27 Jan 2026 22:30:39 +0530 Subject: [PATCH 5/9] Switch Imagine logo with PH in bottom alert --- src/lib/components/promos/imagine.svelte | 8 ++++++-- src/lib/components/promos/product-hunt.svg | 12 ++++++++++++ src/routes/(console)/bottomAlerts.ts | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 src/lib/components/promos/product-hunt.svg diff --git a/src/lib/components/promos/imagine.svelte b/src/lib/components/promos/imagine.svelte index ff316b51a6..eb5ffb9357 100644 --- a/src/lib/components/promos/imagine.svelte +++ b/src/lib/components/promos/imagine.svelte @@ -1,7 +1,7 @@ @@ -12,7 +12,11 @@ + + +