From 1dc2992fb5e25bd496fd971a56065622266dff8c Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Sat, 10 Oct 2026 12:35:14 +0000 Subject: [PATCH] Show the generation loading screen again on phones The wizard-polish restructure put the phone branch before the loading check, so 'Freeze my deck' left the wizard on screen (looking like nothing happened) until the router landed on the finished deck. The loading state is now checked before the phone flow, for both layouts. New freeze-loading suite (6 checks): the staged loading screen appears immediately after Freeze, shows the stage message and Cancel, unmounts the wizard bar, and Cancel returns to the wizard with the cancelled notice instead of getting stuck. Regression 74/74, mobile 52/52, wizard 80/80, declutter 116/116, freeze-loading 6/6, native 35/35, i18n 25/25. Lint + build clean. SW freezmo-v24. --- components/UploadScreen.tsx | 8 ++++---- public/sw.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/UploadScreen.tsx b/components/UploadScreen.tsx index fd49f1e..1e67656 100644 --- a/components/UploadScreen.tsx +++ b/components/UploadScreen.tsx @@ -566,6 +566,10 @@ export function UploadScreen() { ? t("upload.ready") : t("upload.addToStart"); + if (phase === "loading") { + return abortRef.current?.abort()} />; + } + /* Phones: the 3-step flow. Same state as the desktop card, different shape. */ if (isPhone) { const stepLabel = @@ -1018,10 +1022,6 @@ export function UploadScreen() { ); } - if (phase === "loading") { - return abortRef.current?.abort()} />; - } - return (
diff --git a/public/sw.js b/public/sw.js index 18c0e56..068162b 100644 --- a/public/sw.js +++ b/public/sw.js @@ -9,7 +9,7 @@ * * Bumping CACHE_VERSION is how a new deploy invalidates old assets. */ -const CACHE_VERSION = "freezmo-v23"; +const CACHE_VERSION = "freezmo-v24"; const SHELL_CACHE = `${CACHE_VERSION}-shell`; const ASSET_CACHE = `${CACHE_VERSION}-assets`;