Skip to content

Fix PWA install flow and offline support (#288)#301

Merged
MaryammAli merged 4 commits into
BlockDash-Studios:mainfrom
Justjoseph0:feat/pwa-offline-install
Jul 16, 2026
Merged

Fix PWA install flow and offline support (#288)#301
MaryammAli merged 4 commits into
BlockDash-Studios:mainfrom
Justjoseph0:feat/pwa-offline-install

Conversation

@Justjoseph0

Copy link
Copy Markdown
Contributor

Tested with Playwright offline after warming the cache hard nav and client-side nav between all main routes work fine offline now, no crashes, no ChunkLoadErrors. Install flow tested manually, works, DevTools shows no manifest/SW errors.

Heads up: offline console throws a decent amount of noise (RSC prefetch failures, background polling failing) but none of it actually breaks anything, just don't be alarmed if you see red in the console testing this yourself.

Two things I found but didn't touch since they're outside this issue:

  • generator/page.tsx and PaymentPageClient.tsx have a pre-existing typo (get RustAcademyApiBase instead of getRustAcademyApiBase) that breaks tsc and next build entirely. Confirmed it's on clean main already, nothing to do with this PR.
  • Dashboard crashes to the error boundary if you're offline and it can't fetch fresh data, instead of showing something graceful. Worth its own issue.

Justjoseph0 and others added 4 commits July 16, 2026 15:37
…nt PWAHandler in layout, fix broken manifest icons (icon.png was a JPEG mislabeled .png, blocking installability)- Add appleWebApp metadata and viewport export for iOS home-screen installs- Rewrite sw.js caching: network-first for navigations, cache-first for static assets and manifest, no caching for /api or cross-origin requests- Fix handleAsset to fail gracefully (408) instead of throwing when offline and asset isn't cached- Persist install banner dismissal for 7 days, add iOS standalone detection- Document PWA architecture, caching strategy, and offline testing in README

@MaryammAli MaryammAli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MaryammAli
MaryammAli merged commit 7520f19 into BlockDash-Studios:main Jul 16, 2026
1 check passed
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.

2 participants