Scrum4Me/stores
Madhura68 8cc4e0aeb7 realtime: idea-store + extend notifications hook for idea events (M12 T-503)
stores/idea-store.ts (Zustand):
- jobByIdea, ideaStatuses, openQuestionsByIdea
- handleIdeaJobEvent: derives optimistic ideaStatus (queued/claimed/running →
  grilling/planning; failed → grill_failed/plan_failed; done = no-op since
  the server-side update_idea_*_md is source-of-truth)
- handleIdeaQuestionEvent: list-based, removes on non-open
- setIdeaStatus / setJobStatus / clearForIdea optimistic helpers
- connectedWorkers NOT duplicated — UI reads useSoloStore(s.connectedWorkers)

lib/realtime/use-notifications-realtime.ts:
- Single SSE serves both bell-questions and idea-state. Adds dispatcher
  branches: idea-job payloads → idea-store; idea-question payloads (idea_id
  set) → idea-store; story-questions → existing notifications-store path.

Tests: 7/7 idea-store cases (queued→grilling, failed→*_failed, done no-op,
question-list management, clearForIdea isolation).
Full suite: 546/546 green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 20:02:22 +02:00
..
backlog-store.ts End-to-end smoke-test: PBI/Story/Task verschijnen zonder refresh (#57) 2026-05-02 21:09:37 +02:00
idea-store.ts realtime: idea-store + extend notifications hook for idea events (M12 T-503) 2026-05-04 20:02:22 +02:00
notifications-store.ts M11: Claude vraagt, gebruiker antwoordt (ST-1101..ST-1108) (#13) 2026-04-29 11:38:23 +02:00
planner-store.ts feat: ST-201-ST-210 M2 stories, drag-and-drop en Zustand stores 2026-04-24 11:46:18 +02:00
product-store.ts feat: show active product name in navbar, links to product page 2026-04-26 17:56:50 +02:00
products-store.ts ProductDialog: create + edit met alle velden (#68) 2026-05-03 17:56:33 +02:00
selection-store.ts feat: ST-201-ST-210 M2 stories, drag-and-drop en Zustand stores 2026-04-24 11:46:18 +02:00
solo-store.ts Verify-gate uitbreiden: DIVERGENT/PARTIAL vereist agent-acknowledgement (#53) 2026-05-02 17:45:19 +02:00
sprint-store.ts feat: ST-301-ST-312 M3 Sprint Backlog en Sprint Planning 2026-04-24 11:51:27 +02:00