fix(pwa): show a persistent update banner instead of a toast

The service worker update notice was a dismissible toast that was easy to miss, leaving users on a stale build. Render a persistent status bar above the app shell with an explicit Reload action, and switch the shell to a flex column so pages size against the shell height (h-full) rather than the viewport (h-dvh), keeping the layout correct while the banner is visible.
This commit is contained in:
Chris Scott committed 2026-10-08 15:49:13 -04:00
1 parent e7dc106af7
commit 2996758198
13 files changed
+124 -32

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ export function Sidebar({
return (
<aside
className={cn(
'relative z-20 flex-shrink-0 border-r border-border bg-card/50 backdrop-blur-sm h-dvh flex flex-col pt-safe pb-safe transition-[width] duration-200',
'relative z-20 flex-shrink-0 border-r border-border bg-card/50 backdrop-blur-sm h-full flex flex-col pt-safe pb-safe transition-[width] duration-200',
collapsed ? collapsedWidthClass : widthClass,
className
)}