From e9703fc53dd1be68ab7c73fc3d5aa74e32a17130 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 18 May 2025 19:32:43 +0530 Subject: [PATCH 1/3] fix: timezone! --- src/routes/(console)/bottomAlerts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/(console)/bottomAlerts.ts b/src/routes/(console)/bottomAlerts.ts index 7cc9ce36c..f95d11d51 100644 --- a/src/routes/(console)/bottomAlerts.ts +++ b/src/routes/(console)/bottomAlerts.ts @@ -122,7 +122,7 @@ export function addBottomModalAlerts() { export function isPromoLive( date: string, time: string, - timeZone: string = 'Asia/Kolkata' + timeZone: string = 'Europe/Paris' ): boolean { const now = new Date(); const targetString = `${date}T${time}:00`; From 85525143818c86a6fcb5132d7cf51dac6586f353 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 18 May 2025 19:49:57 +0530 Subject: [PATCH 2/3] fix: ui and regions! --- src/lib/components/bottomModalAlert.svelte | 13 ++++++++++--- .../onboarding/create-project/+page.svelte | 3 +-- .../(public)/template-[template]/+page.svelte | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/lib/components/bottomModalAlert.svelte b/src/lib/components/bottomModalAlert.svelte index 949ddf408..406b40222 100644 --- a/src/lib/components/bottomModalAlert.svelte +++ b/src/lib/components/bottomModalAlert.svelte @@ -18,6 +18,7 @@ import { page } from '$app/state'; import { Click, trackEvent } from '$lib/actions/analytics'; import { goto } from '$app/navigation'; + import { Typography } from '@appwrite.io/pink-svelte'; let currentIndex = 0; let openModalOnMobile = false; @@ -223,7 +224,9 @@ {/if}
-

{currentModalAlert.title}

+ + {currentModalAlert.title} + {#if currentModalAlert.isHtml} @@ -328,7 +331,9 @@ {/if}
-

{currentModalAlert.title}

+ + {currentModalAlert.title} + {#if currentModalAlert.isHtml} @@ -393,7 +398,9 @@ }}>
-

{mobileConfig.title}

+ + {currentModalAlert.title} + diff --git a/src/routes/(console)/onboarding/create-project/+page.svelte b/src/routes/(console)/onboarding/create-project/+page.svelte index 3b7bd52ad..ecf4e7430 100644 --- a/src/routes/(console)/onboarding/create-project/+page.svelte +++ b/src/routes/(console)/onboarding/create-project/+page.svelte @@ -21,14 +21,13 @@ async function createProject() { isLoading = true; - console.log(data); try { const teamId = data.organization.$id; const project = await sdk.forConsole.projects.create( id ?? ID.unique(), projectName, teamId, - region ?? Region.Fra + isCloud ? region : undefined ); trackEvent(Submit.ProjectCreate, { customId: !!id, diff --git a/src/routes/(public)/template-[template]/+page.svelte b/src/routes/(public)/template-[template]/+page.svelte index b00b007ad..d7cbca40d 100644 --- a/src/routes/(public)/template-[template]/+page.svelte +++ b/src/routes/(public)/template-[template]/+page.svelte @@ -95,7 +95,7 @@ id ?? ID.unique(), projectName, selectedOrg, - isCloud ? (region as Region) : Region.Fra + isCloud ? (region as Region) : undefined ); trackEvent(Submit.ProjectCreate, { customId: !!id, From 0cb9e9fd5b469e38af3c8c4d09467599c7f45cc5 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 18 May 2025 19:51:44 +0530 Subject: [PATCH 3/3] use: default as region. --- src/routes/(console)/onboarding/create-project/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/(console)/onboarding/create-project/+page.svelte b/src/routes/(console)/onboarding/create-project/+page.svelte index ecf4e7430..001adcdf4 100644 --- a/src/routes/(console)/onboarding/create-project/+page.svelte +++ b/src/routes/(console)/onboarding/create-project/+page.svelte @@ -38,7 +38,7 @@ setTimeout(async () => { await invalidate(Dependencies.ACCOUNT); - goto(`${base}/project-${project.region}-${project.$id}`); + goto(`${base}/project-${project.region ?? 'default'}-${project.$id}`); }, 3000); } catch (e) { trackError(e, Submit.ProjectCreate);