Repository navigation
Restore update notifications for the offline web client - #183
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Issue and requirements
Closes #182. Contributes to NFR-3_1 (web browser support) and NFR-2_1 (offline operation).
Summary
A normal reload can reopen the same cached Papyrus build while the next service worker waits to activate. This restores the web update banner and About → App updates. Both use the deployed site's release metadata. Choosing Reload activates the waiting worker. If another Papyrus tab is open, the dialog explains how to close it and retry.
Testing
tools/papyrus check clientfor formatting, Flutter analysis, and the 22 JavaScript browser bootstrap and worker tests.UI evidence
With build 10 cached and build 11 served, a normal page reload still opened build 10. View update → Reload displayed the close-other-tabs message while a second Papyrus tab was open. After closing that tab, Retry activated build 11, cleared the banner, and retained the local storage test value.
Compatibility and migration
Users on a release that lacks the prompt can close all Papyrus tabs and reopen the site once their browser has downloaded the new release. Subsequent updates can use the restored prompt.