Skip to content

Add PWA support FEDEV-3992#2622

Draft
qwinndev wants to merge 4 commits into
releasefrom
pwa-support-FEDEV-3992
Draft

Add PWA support FEDEV-3992#2622
qwinndev wants to merge 4 commits into
releasefrom
pwa-support-FEDEV-3992

Conversation

@qwinndev

@qwinndev qwinndev commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

https://linear.app/gmx-io/issue/FEDEV-3992/pwa-support

Changes

  • Replace the app's manifest link (/favicon/manifest.json — name "App", broken icon paths, no start_url/display) with a complete web app manifest at /manifest.json: GMX name, 192/512 icons, standalone display, dark #090A14 theme/background. Fixes the "app" install name on Android (FEDEV-2692; landing untouched)
  • Add public/sw.js service worker: navigations network-first (new deploys picked up immediately); immutable /assets/ served cache-first from a separate, size-capped asset cache; last successful shell kept as the offline fallback
  • Register the SW in production only, after page load (src/lib/pwa/registerServiceWorker.ts); add a VITE_APP_DISABLE_PWA=true kill-switch that unregisters the worker and clears its caches (rollback path)
  • index.html: consolidate theme-color to the dark brand #090A14 (drop the conflicting duplicate); add standalone-mode meta tags for iOS home-screen installs
  • Shrink the install icons (~1.5×) so they aren't full-bleed — Android/manifest glyph re-padded (transparent); iOS apple-touch icons re-padded on an opaque #090A14 tile (iOS composites transparency to black)
  • Remove the dead public/site.webmanifest
  • Tests: behavior specs for public/sw.js (install / activate cleanup / fetch caching branches) and the registration helper (prod gate, load timing, kill-switch, error swallow)

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploying gmx-interface-home with  Cloudflare Pages  Cloudflare Pages

Latest commit: e208498
Status: ✅  Deploy successful!
Preview URL: https://34333760.gmx-interface-home.pages.dev
Branch Preview URL: https://pwa-support-fedev-3992.gmx-interface-home.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploying gmx-interface with  Cloudflare Pages  Cloudflare Pages

Latest commit: e208498
Status: ✅  Deploy successful!
Preview URL: https://f18e1954.gmx-interface.pages.dev
Branch Preview URL: https://pwa-support-fedev-3992.gmx-interface.pages.dev

View logs

@qwinndev qwinndev closed this Jul 8, 2026
@qwinndev qwinndev reopened this Jul 8, 2026
@qwinndev qwinndev changed the title Add PWA support (test only) FEDEV-3992 Add PWA support FEDEV-3992 Jul 8, 2026
qwinndev added 3 commits July 8, 2026 16:42
- Add VITE_APP_DISABLE_PWA kill-switch that unregisters the SW and clears its caches
- Split shell/asset caches and cap the asset cache so it can't grow across deploys
- Add behavior tests for public/sw.js and the kill-switch/error-swallow paths
- Consolidate index.html theme-color to the dark brand #090A14 (drop duplicate)
- Remove dead public/site.webmanifest
- Shrink the app icon ~1.5x with transparent padding
- Pad the apple-touch-icon logo ~1.5x so it isn't full-bleed on iOS home screens
- Use an opaque #090A14 background since iOS composites transparency to black
@github-actions

Copy link
Copy Markdown

Playwright Component Test Report

All tests passed.

View Report

Commit e208498

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