Chrome's install prompt needs 192 and 512 PNG icons (SVG-only often isn't
enough, especially on Android). Add them and reference them in the manifest
(any + maskable). offline.js captures beforeinstallprompt and shows an
'Installér app' button that triggers the native prompt, and clears it on
appinstalled. Bump SW cache to v2 so the new manifest/icons take effect.
No signal inside the store made the server-rendered app unusable. Make it
an installable PWA:
- service worker (static/sw.js) caches pages (network-first, cache fallback)
and assets, served from root so scope is /
- offline.js: cittiFetch() queues check-off / price / qty / pick POSTs in
localStorage when offline and replays them in order on reconnect, with an
optimistic response and an Offline/Syncing status badge
- manifest + icon for add-to-home-screen; PWA meta tags on the in-store pages
- in-store mutations (saveToServer, pick/unpick) go through cittiFetch;
archive/refresh/add still need net by design
- Dockerfile copies static/
Open once online first so the SW can cache; then it works offline.