Smoother daily use: remember profile, work offline, fix install #1

Merged
krburchel merged 1 commits from smoother-shopping into main 2026-06-13 14:24:03 +00:00
1 Commits
Author SHA1 Message Date
Kevin BurchellandClaude Opus 4.8 63fb7015c4 Smoother daily use: remember profile, work offline, fix install
Task 1 — Remember who's signed in:
  currentProfile now persists to localStorage and is restored on load,
  so Chey's items are no longer all credited to Kevin after a reload.

Task 2 — Survive bad store wifi:
  - Firestore now uses persistentLocalCache (IndexedDB), so reads come
    from cache instantly and writes queue + sync when signal returns.
  - Added a service worker (sw.js) that caches the app shell, SDK
    modules, and fonts so the app opens with no connection. Firestore
    network traffic is left to the SDK's own offline layer.

Task 3 — Fix home-screen install:
  - manifest start_url "/" -> "./" (+ scope) so the installed app opens
    /grocery-list/ instead of a 404 on this project Pages site.
  - Added real 192/512 maskable icons + a 180px apple-touch-icon and the
    apple-mobile-web-app meta tags, so the iOS home-screen icon is a
    proper white-cart-on-green tile instead of a gray screenshot.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 07:23:16 -07:00