From 0a21caa5e5619e030a06235e00deeef315cb1157 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 31 Mar 2026 10:40:07 -0700 Subject: [PATCH] feat(pwa): install banner + update notification for service worker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Install banner appears above header when beforeinstallprompt fires (dismissed state persisted in localStorage, never shows again) - Update banner appears when a new SW version is detected waiting (click "Update" → SKIP_WAITING message → SW activates → page reloads) - SW no longer auto-skipWaiting on install; waits for client message - Bumped SW cache version to v5 and registration to ?v=5 - Banner CSS: fixed at top, z-index above all chrome, slide-in animation - Header/tab-row/app offsets adjust when banner visible Co-Authored-By: Claude Opus 4.6 --- server/shell.ts | 71 ++++++++++++++++++++++++++++++--- website/public/shell.css | 86 ++++++++++++++++++++++++++++++++++++++++ website/sw.ts | 11 ++++- 3 files changed, 161 insertions(+), 7 deletions(-) diff --git a/server/shell.ts b/server/shell.ts index a0651e9..a1e5d93 100644 --- a/server/shell.ts +++ b/server/shell.ts @@ -290,6 +290,16 @@ export function renderShell(opts: ShellOptions): string { + +
@@ -343,16 +353,67 @@ export function renderShell(opts: ShellOptions): string {