Skip to content

Transform StepView into a PWA with offline support and update notifications#7

Merged
github-actions[bot] merged 1 commit into
mainfrom
pwa-support-issue-4-6492776943058064983
Jul 6, 2026
Merged

Transform StepView into a PWA with offline support and update notifications#7
github-actions[bot] merged 1 commit into
mainfrom
pwa-support-issue-4-6492776943058064983

Conversation

@axe-fb

@axe-fb axe-fb commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Transform StepView into a PWA with offline support and update notifications

This PR implements the following:

  1. PWA Manifest: Added manifest.json defining the app's name, description, and icons using the existing favicon.svg.
  2. Service Worker: Added sw.js with an offline-first caching strategy. It pre-caches core assets (index.html, app.js, styles.css, favicon.svg) and handles runtime caching for other requests.
  3. Update Flow:
    • The app now detects when a new version of the service worker is available.
    • A non-intrusive update banner appears at the bottom when an update is ready.
    • Users can tap the banner to immediately refresh the page and activate the new version.
    • Added handling for service workers that are already in a "waiting" state upon app load.
  4. Cache Busting: Assets are now versioned (e.g., app.js?v=11) in both index.html and the service worker's pre-cache list to ensure consistency.

The changes remain dependency-free and adhere to the project's static structure.

Closes #4


PR created automatically by Jules for task 6492776943058064983 started by @axe-fb

…ations

- Add manifest.json with app metadata and SVG icons
- Implement sw.js with cache-first strategy and versioned asset pre-caching
- Update app.js to register service worker and manage update flow with UI banner
- Update index.html to link manifest and add update notification banner
- Add styles for update banner in styles.css
- Bump BUILD version to 11

Closes #4

Co-authored-by: axe-fb <33528067+axe-fb@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions
github-actions Bot merged commit 7f28504 into main Jul 6, 2026
2 checks passed
@github-actions
github-actions Bot deleted the pwa-support-issue-4-6492776943058064983 branch July 6, 2026 13:24
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.

Make this a PWA

1 participant