PWA: installable on the phone, instant and offline #89

Closed
opened 2026-10-13 22:34:00 +00:00 by kayg · 0 comments
Owner

kayg wants Calternal on the phone as an installed app (PWA). Today apps/web has no manifest and no service worker.

  • Web app manifest (name "Calternal", standalone display, theme/background colours from tokens for light and dark, start_url "/", scope "/", maskable + any icons, generated simple placeholder icon until the logo exists), iOS meta tags (apple-touch-icon, apple-mobile-web-app-capable, status bar style), safe-area insets respected everywhere (bottom bar above the home indicator).
  • Service worker: precache the app shell (hashed assets, fonts) so the app opens instantly and offline; never cache API or websocket traffic; update flow that never interrupts typing (new version activates on next launch, or a quiet "Update ready" in Settings).
  • Offline: the editor already keeps an IndexedDB copy; opening the installed app offline shows the last notes and "Not saved yet" honesty.
  • N9: a quiet, dismissible "Add Calternal to your Home Screen" hint in Settings (and once on phone after a few uses), never a modal.
  • Tests: Lighthouse-style installability checks in CI (manifest valid, SW registered, offline shell loads), Playwright offline reload test.
kayg wants Calternal on the phone as an installed app (PWA). Today apps/web has no manifest and no service worker. - Web app manifest (name "Calternal", standalone display, theme/background colours from tokens for light and dark, start_url "/", scope "/", maskable + any icons, generated simple placeholder icon until the logo exists), iOS meta tags (apple-touch-icon, apple-mobile-web-app-capable, status bar style), safe-area insets respected everywhere (bottom bar above the home indicator). - Service worker: precache the app shell (hashed assets, fonts) so the app opens instantly and offline; never cache API or websocket traffic; update flow that never interrupts typing (new version activates on next launch, or a quiet "Update ready" in Settings). - Offline: the editor already keeps an IndexedDB copy; opening the installed app offline shows the last notes and "Not saved yet" honesty. - N9: a quiet, dismissible "Add Calternal to your Home Screen" hint in Settings (and once on phone after a few uses), never a modal. - Tests: Lighthouse-style installability checks in CI (manifest valid, SW registered, offline shell loads), Playwright offline reload test.
kayg closed this issue 2026-10-13 22:48:27 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#89
No description provided.