feat: add PWA update notifications and service worker update flow#330
Merged
RUKAYAT-CODER merged 1 commit intoApr 28, 2026
Merged
Conversation
- Add public/sw.js with skipWaiting and clientsClaim - Add src/utils/registerSW.ts with update detection logic - Add src/components/UpdateBanner.tsx update prompt UI - Refactor AppUpdateManager to use UpdateBanner - Update usePWA to delegate to registerSW/applyUpdate utilities Closes #issue
|
@DeePrincipal-dev-lang Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
feat: PWA update notifications and service worker update flow
Summary
Users were not receiving notifications when a new version of the app was available, requiring manual
refresh to get updates.
Changes
callback; auto-reloads on controllerchange
with "Update Now" / "Later" actions using lucide icons
listener boilerplate
Update Flow
PWAManager registers SW on mount → registerSW detects waiting SW → updateAvailable = true →
UpdateBanner shown → user clicks "Update Now" → SKIP_WAITING posted → new SW activates → page reloads
automatically
Testing
Closes #243