Skip to content

Restore update notifications for the offline web client - #183

Merged
Eoic merged 1 commit into
developmentfrom
fix/182-restore-web-update-notice
Nov 26, 2026
Merged

Eoic merged 1 commit into
developmentfrom
fix/182-restore-web-update-notice

Conversation

@Eoic

@Eoic Eoic commented Nov 26, 2026

Copy link
Copy Markdown
Member

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

  • Ran the 52 updater tests with the installer process fixture, plus the Chrome-specific updater widget test.
  • Ran tools/papyrus check client for formatting, Flutter analysis, and the 22 JavaScript browser bootstrap and worker tests.
  • Built and served two release-mode web packages locally and exercised the update in Chrome.

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.

Copilot AI balanced review requested due to automatic review settings November 26, 2026 23:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T23:36:31.853075Z ca56423 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Eoic
Eoic enabled auto-merge November 26, 2026 23:35
@Eoic
Eoic merged commit 1eb50e0 into development Nov 26, 2026
16 of 17 checks passed
@Eoic
Eoic deleted the fix/182-restore-web-update-notice branch November 26, 2026 23:45
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...pp/lib/widgets/profile/about_settings_section.dart 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore the update notification for cached web clients

2 participants