Commit graph

3 commits

Author SHA1 Message Date
Spencer Flagg
fade4c3ae5 fix: attach PWA install click handler at render time, not conditionally
beforeinstallprompt fires asynchronously after renderLanding() runs,
so the click handler was never attached when the prompt arrived late.
Always attach the handler and check deferredInstallPrompt at click time.
2026-04-23 20:38:08 +02:00
Spencer Flagg
48deaa3219 feat: PWA install button, route persistence, and active-user visual indicators
- Landing page shows an "add to home screen" button when the browser
  install prompt is available (Android/desktop) or on iOS Safari with
  a share-menu hint; hidden when already running in standalone mode
- Last visited user route (/ray or /cer) is saved to Dexie meta and
  restored on next open so the app reopens where you left off
- Active user in the topbar brand renders as a filled accent-color pill
- A 1px accent-color frame wraps the entire viewport while a user is active
2026-04-23 17:36:14 +02:00
Spencer Flagg
ed3a0d3ea3 Initial commit: raycer accountability PWA
Vanilla HTML/JS/CSS PWA with Dexie offline-first sync, Hono+SQLite backend,
served via nginx reverse-proxy. Two seed goals (no-sugar, no-social-media)
for users ray and cer.

Local dev runs at https://raycer.test via the shared Traefik proxy.
Production deploys to https://raycer.altweb.me on cool2026/personal via
docker-compose.coolify.yaml — see deploy/COOLIFY.md.
2026-04-23 16:45:06 +02:00