Keep it in rotation card (Feature 21) #179

2 Commits
Author SHA1 Message Date
dev_agentandClaude Opus 5.5 1cc5b4f6ab Refetch Rotation checks when a notification focuses Home already open (Feature 21)
CI / ci (push) Successful in 8m48s
CI / ci (pull_request) Successful in 9m34s
A notification tap that focuses a window already at its url does not
navigate, so Home does not remount and a recently read empty list stays
within the query client's staleTime. The service worker now posts that
window NotificationOpened, and useRotationReviews refetches on it, so the
Keep it in rotation card shows without a remount.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 16:31:04 -04:00
dev_agentandClaude Opus 5.5 be8a658742 Add the Keep it in rotation card to Home (Feature 21)
CI / ci (push) Successful in 8m20s
CI / ci (pull_request) Successful in 8m1s
Home shows the oldest pending Rotation check (GET /api/v1/rotation-reviews)
above the tiles: washed photo, "Last night: {dinner}", "Keep it in
rotation?" and Keep it / Not for us / We didn't make it. An answer posts
to /api/v1/dinners/{id}/rotation-review optimistically, confirms it and
reveals the next check; a failure puts the check back with an ErrorBanner.
Nothing is decided automatically.

Task: 4647eadf-4545-4d3f-849f-ffa5e9fcbd1b

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 15:55:08 -04:00