Recipe detail works offline once visited (Feature 15) #159

2 Commits
Author SHA1 Message Date
dev_agent 1880c03542 Merge remote-tracking branch 'origin/feature/293a89c5-bd98-4de4-9afd-5ca371e5e679-recipe-detail-and-kitchen-reading-mode' into task/offline-detail_caa384bc-2853-4915-9cb3-ccb80ad20cb3
CI / ci (push) Successful in 5m3s
CI / ci (pull_request) Successful in 5m0s
2026-10-09 11:07:17 -04:00
dev_agentandClaude Opus 5.5 5867218661 Prove dinner detail works offline once visited (Feature 15)
CI / ci (push) Successful in 5m6s
CI / ci (pull_request) Successful in 5m1s
Runs the detail page through the service worker's real network-first API
strategy against an in-memory cache: a visited grounded dinner reloaded
offline shows its photo, ingredients and steps with the offline indicator
(phone and Kitchen reading mode); a dinner never visited shows the error
with Retry; a saved pending copy stays "still finding the recipe".

Moves the worker test harness out of apiStrategy.test.ts into
src/test/serviceWorker.ts so both tests share it, and routes network-only
paths (settings) straight to the network as the worker does.

No product change: the existing route, strategy, apiRead and page already
satisfy the done-condition.

Maestro task caa384bc-2853-4915-9cb3-ccb80ad20cb3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 10:56:13 -04:00