feat(pwa): add service worker, manifest, and offline banner (#103) - #144
feat(pwa): add service worker, manifest, and offline banner (#103)#144Meme11030 wants to merge 5 commits into
Conversation
…rotocol#103) - Install vite-plugin-pwa@0.21.1 + workbox packages - Add public/manifest.webmanifest with full PWA metadata - Generate 10 icon sizes (72–512px) including maskable variants for Android adaptive icons and iOS home screen - Create src/sw/app-sw.ts: unified service worker that merges Workbox precaching/routing with existing Stellar notification background sync (replaces manual stellar-notification-sw.ts reg) - Configure injectManifest strategy: - NetworkFirst for Stellar RPC, Horizen RPC, Horizon REST - CacheFirst for Google Fonts (CSS + files) - Precache 198 app assets (4 MiB limit for large SDK chunks) - Add src/components/OfflineBanner.tsx: accessible offline state indicator using navigator.onLine + online/offline events - Wire OfflineBanner into App.tsx layout (between Header and TelemetryBanner) - Update index.html: manifest link → /manifest.webmanifest, dual theme-color meta (dark/light), iOS PWA meta tags - Remove manual SW registration from main.tsx (handled by injectRegister: auto via registerSW.js)
|
@Meme11030 is attempting to deploy a commit to the truthixify's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Meme11030 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! 🚀 |
|
|
|
The |
|
@truthixify i have fixed it please merge my pr and i look forward working with you in the next wave |
closes PWA + service worker (offline-friendly) #103