1.2 KiB
1.2 KiB
Issue #41 Verification
Status: already implemented on main
Issue:
- #41 [P3] Service worker: cache crisis resources for offline
Acceptance criteria check:
- Passed — offline page includes 988 call button, Crisis Text Line, and grounding techniques
- Passed — service worker precaches
crisis-offline.html - Passed — phone number is clickable via
href="tel:988" - Passed — navigation timeout + offline fallback support intermittent connections
Evidence:
sw.jsprecaches/crisis-offline.htmlsw.jscontainsNAVIGATION_TIMEOUT_MSandAbortControllercrisis-offline.htmlcontains:href="tel:988"- Crisis Text Line /
741741 - grounding prompts for 5-4-3-2-1
tests/test_service_worker_offline.pyalready exists on main and passes
Verification run from fresh main clone:
python3 -m pytest tests/test_service_worker_offline.py -q10 passed
Prior implementation trail:
- Issue comment already states the core implementation is complete on main
- Closed PR #122 documented the already-complete implementation and added the offline guarantees test coverage that is now present on main
Recommendation:
- Close issue #41 as already implemented on main.