Skip to content

Revert "Revert "feat(web): prompt refresh when the server version settles on a newer build""#4463

Merged
pedrofrxncx merged 1 commit into
mainfrom
revert-4460-revert-4425-feat/version-check-debounced-drift
Jul 11, 2026
Merged

Revert "Revert "feat(web): prompt refresh when the server version settles on a newer build""#4463
pedrofrxncx merged 1 commit into
mainfrom
revert-4460-revert-4425-feat/version-check-debounced-drift

Conversation

@pedrofrxncx

@pedrofrxncx pedrofrxncx commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Reverts #4460


Summary by cubic

Prompts users to refresh only after the server reports a newer build twice, reducing false alerts during rolling deploys. Exposes the server version and disables caching to make polling reliable.

  • New Features
    • Added VersionCheckDialog to the shell. Polls /api/config every 5 minutes and prompts refresh after 2 consecutive newer versions than __MESH_VERSION__.
    • public-config now returns version from apps/mesh/package.json and sets Cache-Control: no-store.
    • Introduced KEYS.appVersionCheck() to keep this poll separate from the forever-cached publicConfig.
    • Added unit tests for nextDrift to validate the confirmation logic.

Written for commit acd65e3. Summary will update on new commits.

Review in cubic

@pedrofrxncx pedrofrxncx enabled auto-merge (squash) July 11, 2026 04:16
@pedrofrxncx pedrofrxncx merged commit b21fe0b into main Jul 11, 2026
15 checks passed
@pedrofrxncx pedrofrxncx deleted the revert-4460-revert-4425-feat/version-check-debounced-drift branch July 11, 2026 04:22
decocms Bot pushed a commit that referenced this pull request Jul 11, 2026
PR: #4463 Revert "Revert "feat(web): prompt refresh when the server version settles on a newer build""
Bump type: patch

- decocms (apps/mesh/package.json): 4.11.2 -> 4.11.3

Deploy-Scope: both
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.

1 participant