Service Worker registration & offline network status indicator #47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Build a React component to register
public/sw.jsand provide a non-intrusive offline status banner in the top command bar when the field device disconnects from the Internet.Technical specifications
src/components/pwa/service-worker-register.tsx: Client component managing navigator.serviceWorker.src/components/controls/offline-indicator-banner.tsx: Visual offline status chip (Offline: Data Tersimpan di Perangkat).src/app/layout.tsx: MountServiceWorkerRegister.Acceptance criteria
window.addEventListener('offline')and surfaces status chip.Blocked by
public/sw.js).Authoritative Specifications & Reference Documentation
docs/ARCHITECTURE.mdIssue 34: [Frontend] Service Worker registration & offline network status indicatorto [Frontend] Service Worker registration & offline network status indicator[Frontend] Service Worker registration & offline network status indicatorto Service Worker registration & offline network status indicatorClosed as completed in PR #98 (src/components/pwa/service-worker-register.tsx registers public/sw.js on hydration).
⚠️ Reopened during deep code audit: ServiceWorker registration exists in src/components/pwa/service-worker-register.tsx, but the non-intrusive offline status banner/indicator in the top command bar has not yet been implemented.