Scrum4Me/stores
Madhura68 4c6e99958b feat(PBI-79/ST-1340): commitSprintMembershipAction + gerichte client-store patches
actions/sprints.ts:
- Nieuwe commitSprintMembershipAction(activeSprintId, adds[], removes[]).
- Eligibility-filter voor adds via partitionByEligibility (sprint_id IS NULL
  en niet DONE; cross-sprint conflicts → notEligible).
- Race-safety voor removes: alleen stories met huidige sprint_id ==
  activeSprintId; rest → conflicts.alreadyRemoved.
- Transactie wrapt twee updateMany-paren (story status mee, task.sprint_id
  cascade). Update-paren overgeslagen wanneer leeg.
- Return: { success, affectedStoryIds, affectedPbiIds, affectedTaskIds,
  conflicts: { notEligible, alreadyRemoved } }.

stores/product-workspace/store.ts:
- applyMembershipCommitResult({ activeSprintId, addedStoryIds,
  removedStoryIds }) patcht entities.storiesById met juiste sprint_id +
  status; ledigt sprintMembership.pending. Geen task-veld omdat
  BacklogTask geen sprint_id-kolom heeft in de store.

Tests: __tests__/actions/commit-sprint-membership.test.ts (8 cases) — happy
path, DONE-conflict, cross-sprint, race-safety voor removes, transactie-
inhoud (status='IN_SPRINT'/'OPEN'), task-cascade, return-shape, auth-fail.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 17:02:05 +02:00
..
product-workspace feat(PBI-79/ST-1340): commitSprintMembershipAction + gerichte client-store patches 2026-05-11 17:02:05 +02:00
solo-workspace Load/render workspace alignment (#182) 2026-05-10 07:34:58 +02:00
sprint-workspace Load/render workspace alignment (#182) 2026-05-10 07:34:58 +02:00
user-settings feat(PBI-79/ST-1334): user-settings pendingSprintDraft-slot 2026-05-11 13:43:32 +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
jobs-store.ts fix(PBI-59): jobs sorted newest-first, unified on created_at (#157) 2026-05-07 20:58:27 +02:00
notifications-store.ts fix(m12): user can answer idea-questions — inline + bell support 2026-05-05 13:05:39 +02:00
products-store.ts ProductDialog: create + edit met alle velden (#68) 2026-05-03 17:56:33 +02:00
solo-store.ts Load/render workspace alignment (#182) 2026-05-10 07:34:58 +02:00
workspace-status-adapter.ts Load/render workspace alignment (#182) 2026-05-10 07:34:58 +02:00