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>