feat: Phase 5 - Offline/PWA and deployment#6
Merged
Conversation
…aching
- Install vite-plugin-pwa v1.3.0
- Add VitePWA plugin to vite.config.ts with generateSW mode:
CacheFirst for JS/CSS/SVG/PNG/ICO/webmanifest assets via runtimeCaching
NavigationRoute + createHandlerBoundToURL for HTML shell (NetworkFirst fallback)
navigateFallbackDenylist: [/^\/api\//]
- Manifest configured inline: name, short_name, icons, start_url, display: standalone,
scope and start_url both scoped to /SAE_Syntax_Generator/
- Create public/icons/icon-192x192.svg and icon-512x512.svg (bar-chart placeholder icons)
- Register service worker explicitly in src/main.tsx via virtual:pwa-register
- Add vite-plugin-pwa/client types reference to src/vite-env.d.ts
- Add PWA meta tags to index.html (theme-color, apple-mobile-web-app-*)
- Add live GitHub Pages URL to README.md
- Build: PASS; Unit tests: 430 passed; E2E: 1 passed; Lint: PASS
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
vite-plugin-pwav1.3.0 and configure WorkboxgenerateSWmodeCacheFirstfor all static assets (JS, CSS, SVG, images);NavigationRoutewithcreateHandlerBoundToURLfor HTML shell (offline fallback to cachedindex.html)name,short_name, icons x2,start_url,display: standalone, scoped to/SAE_Syntax_Generator/public/icons/icon-192x192.svgandicon-512x512.svg(bar-chart placeholder icons)src/main.tsxviavirtual:pwa-register/// <reference types="vite-plugin-pwa/client" />tosrc/vite-env.d.tsindex.html(theme-color,apple-mobile-web-app-*)README.mdbasewas set in Phase 0Test plan
npm run buildPASS —dist/sw.jsanddist/manifest.webmanifestgeneratednpm test— 430 unit tests passed, 0 failednpm run test:e2e— 1 E2E test passednpm run lint— 0 warningsGenerated with Claude Code