Back to Prompts
General Purpose Code Assistance

PWA Setup & Final Polish

Make the app installable and offline-ready with service worker, audio cues, wake lock, and share functionality.

Prompt
Read plan.md. Build milestone: PWA + Final Polish.

PWA:
- manifest.json with app name "CardioFlow", theme color, icons (generate simple SVG icons)
- Service worker: cache all assets for full offline use
- Install prompt: show "Add to Home Screen" banner if not installed

Polish:
- Audio beep 3 seconds before phase change (Web Audio API oscillator, no files)
- Wake Lock API during active workout (with fallback)
- Share button on completion screen — copies workout summary text to clipboard
- Smooth transitions between all states
- Make sure everything works offline after first load
31 views 0 copies