Feature Request
Is your feature request related to a problem?
DevTrack is registered as a PWA but currently shows a blank/error screen when opened offline. Users who've installed the app expect to at least see their last-known dashboard data.
Describe the solution you'd like
Implement proper PWA offline support:
- Cache last successful API responses in the service worker
- When offline, show cached dashboard data with a clear "Offline — showing cached data" banner
- Background sync: queue data refresh for when connectivity returns
Implementation Details
- Update
public/sw.js or configure next-pwa for runtime caching
- Cache
/api/dashboard, /api/metrics, /api/streak responses
- Use
Cache-first strategy for static assets, Network-first for API responses
- Add offline detection (
navigator.onLine) and show banner component
Acceptance Criteria
Additional context
DevTrack already has manifest.json and PWA registration. This completes the PWA experience.
Feature Request
Is your feature request related to a problem?
DevTrack is registered as a PWA but currently shows a blank/error screen when opened offline. Users who've installed the app expect to at least see their last-known dashboard data.
Describe the solution you'd like
Implement proper PWA offline support:
Implementation Details
public/sw.jsor configurenext-pwafor runtime caching/api/dashboard,/api/metrics,/api/streakresponsesCache-firststrategy for static assets,Network-firstfor API responsesnavigator.onLine) and show banner componentAcceptance Criteria
Additional context
DevTrack already has
manifest.jsonand PWA registration. This completes the PWA experience.