BLD-6: add web app manifest + offline service worker to the three web… - #55
Open
patrickunterwegs wants to merge 1 commit into
Open
BLD-6: add web app manifest + offline service worker to the three web…#55patrickunterwegs wants to merge 1 commit into
patrickunterwegs wants to merge 1 commit into
Conversation
… apps
Makes the Journals/Notes/Tasks web targets installable PWAs with offline shell
support, using the same webMain/resources serving mechanism DAT-6 already relies on.
Per app:
- manifest.webmanifest: name/short_name, standalone display, start_url/scope '.'
(relative, so it works under the /journals|/notes|/tasks deploy paths), the
variant's brand theme_color (#006896 / #994c2c / #296f23), and a 512x512 icon
copied from the app's existing ic_launcher-playstore.png.
- service-worker.js: network-first for same-origin GETs of static shell assets,
cache only as an offline fallback. Deliberately conservative - it never caches
non-GET, cross-origin, or non-shell requests, so CalDAV/proxy traffic and the
sql.js persistence worker are untouched, and nothing is served stale while
online. Versioned cache, cleaned on activate.
- index.html: <link rel=manifest>, apple-touch-icon, theme-color meta, and a
guarded service-worker registration (no-op where unsupported / on plain HTTP).
BLD-6 was blocked on DAT-6 (web persistence), which has landed. Needs one live
browser pass to verify install + offline reload before calling it done - service
workers, like DAT-6, tend to only reveal issues in a real browser.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xt7MRuFpW1jtcHX1MPC4EN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… apps
Makes the Journals/Notes/Tasks web targets installable PWAs with offline shell support, using the same webMain/resources serving mechanism DAT-6 already relies on.
Per app:
BLD-6 was blocked on DAT-6 (web persistence), which has landed. Needs one live browser pass to verify install + offline reload before calling it done - service workers, like DAT-6, tend to only reveal issues in a real browser.
Claude-Session: https://claude.ai/code/session_01Xt7MRuFpW1jtcHX1MPC4EN