From b5ae9895f476d831bc0dca6c2172114bc01a4088 Mon Sep 17 00:00:00 2001 From: Harsh Mahajan <127186841+HarshMN2345@users.noreply.github.com> Date: Fri, 30 Jan 2026 17:32:04 +0530 Subject: [PATCH 1/3] =?UTF-8?q?Fix=20deployments=20stuck=20in=20=E2=80=98F?= =?UTF-8?q?inalizing=E2=80=99=20status=20for=20Functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../function-[function]/(components)/deploymentCard.svelte | 3 ++- .../function-[function]/deployment-[deployment]/+page.svelte | 5 +++-- .../functions/function-[function]/table.svelte | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte index bb2f3fda1e..be51aa0bee 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte @@ -39,6 +39,7 @@ } = $props(); let effectiveStatus = $derived(getEffectiveBuildStatus(deployment, $regionalConsoleVariables)); + let displayStatus = $derived(effectiveStatus === 'finalizing' ? 'ready' : effectiveStatus); let totalSize = $derived(humanFileSize(deployment?.totalSize ?? 0)); @@ -129,7 +130,7 @@ {@render titleSnippet('Status')} - + {:else} diff --git a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte index 1405243545..3e67a16350 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte @@ -43,6 +43,7 @@ let effectiveStatus = $derived( getEffectiveBuildStatus(data.deployment, $regionalConsoleVariables) ); + let displayStatus = $derived(effectiveStatus === 'finalizing' ? 'ready' : effectiveStatus); let showDelete = $state(false); let showCancel = $state(false); let showActivate = $state(false); @@ -157,9 +158,9 @@ {#key data.deployment.buildLogs} diff --git a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/table.svelte b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/table.svelte index a70bf52d5c..4d891199c6 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/table.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/table.svelte @@ -98,6 +98,7 @@ deployment, $regionalConsoleVariables )} + {@const displayStatus = effectiveStatus === 'finalizing' ? 'ready' : effectiveStatus} {:else} + status={deploymentStatusConverter(displayStatus)} + label={capitalize(displayStatus)} /> {/if} {:else if column.id === 'type'} From 005a8d943e5b598bfb75cc5ab7580cc09d59cd79 Mon Sep 17 00:00:00 2001 From: Harsh Mahajan <127186841+HarshMN2345@users.noreply.github.com> Date: Fri, 30 Jan 2026 17:39:05 +0530 Subject: [PATCH 2/3] use deploymentstatusconverter --- .../function-[function]/(components)/deploymentCard.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte index be51aa0bee..d96a88326f 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte @@ -16,6 +16,7 @@ import { func } from '../store'; import { capitalize } from '$lib/helpers/string'; import { getEffectiveBuildStatus } from '$lib/helpers/buildTimeout'; + import { deploymentStatusConverter } from '$lib/stores/git'; import { regionalConsoleVariables } from '$routes/(console)/project-[region]-[project]/store'; import { isCloud } from '$lib/system'; import { IconInfo } from '@appwrite.io/pink-icons-svelte'; @@ -130,7 +131,9 @@ {@render titleSnippet('Status')} - + {:else} From 1812d2751f3e92fe423e4abcf652d8a5e0ba2f7c Mon Sep 17 00:00:00 2001 From: Harsh Mahajan <127186841+HarshMN2345@users.noreply.github.com> Date: Fri, 30 Jan 2026 17:46:18 +0530 Subject: [PATCH 3/3] use const --- .../(components)/deploymentCard.svelte | 8 +++++--- .../deployment-[deployment]/+page.svelte | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte index d96a88326f..2a983cedf3 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/(components)/deploymentCard.svelte @@ -39,9 +39,11 @@ footer?: Snippet; } = $props(); - let effectiveStatus = $derived(getEffectiveBuildStatus(deployment, $regionalConsoleVariables)); - let displayStatus = $derived(effectiveStatus === 'finalizing' ? 'ready' : effectiveStatus); - let totalSize = $derived(humanFileSize(deployment?.totalSize ?? 0)); + const effectiveStatus = $derived( + getEffectiveBuildStatus(deployment, $regionalConsoleVariables) + ); + const displayStatus = $derived(effectiveStatus === 'finalizing' ? 'ready' : effectiveStatus); + const totalSize = $derived(humanFileSize(deployment?.totalSize ?? 0)); {#snippet titleSnippet(title: string)} diff --git a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte index 3e67a16350..c4151683da 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte @@ -40,10 +40,10 @@ let { data } = $props(); - let effectiveStatus = $derived( + const effectiveStatus = $derived( getEffectiveBuildStatus(data.deployment, $regionalConsoleVariables) ); - let displayStatus = $derived(effectiveStatus === 'finalizing' ? 'ready' : effectiveStatus); + const displayStatus = $derived(effectiveStatus === 'finalizing' ? 'ready' : effectiveStatus); let showDelete = $state(false); let showCancel = $state(false); let showActivate = $state(false);