Scrum4Me/components/backlog
Madhura68 d21011cdfa feat(PBI-79/ST-1339): createSprintWithSelectionAction + banner wire-up
actions/sprints.ts:
- Nieuwe createSprintWithSelectionAction(productId, metadata, pbiIntent,
  storyOverrides).
- Server-side intent-resolve:
  1. Voor elke PBI met intent='all': fetch child-story-IDs minus
     storyOverrides[pbi].remove.
  2. Plus storyOverrides[*].add (cross-PBI cherrypick toegestaan).
- Eligibility-filter via partitionByEligibility (sprint_id IS NULL + status
  != DONE; stories in andere OPEN sprint → conflicts.crossSprint).
- Transactie wrapt sprint.create + story.updateMany (status='IN_SPRINT') +
  task.updateMany (sprint_id cascade) — alles atomair.
- setActiveSprintInSettings na success.
- Return: { success, sprintId, affectedStoryIds, affectedPbiIds,
  affectedTaskIds, conflicts: { notEligible, crossSprint } } of error.

components/backlog/sprint-definition-banner.tsx:
- 'Sprint aanmaken'-knop sluit aan op createSprintWithSelectionAction;
  toast bij conflicts, success-toast anders, router.refresh() voor SSR
  cycle. Pending draft wordt door de action zelf nog niet expliciet gewist
  — dat gebeurt via revalidatePath en kan in ST-1340 finetuned worden.

Tests: __tests__/actions/create-sprint-with-selection.test.ts (6 cases)
dekken intent-resolve, override-respect, cross-sprint conflict, transactie-
binding van story.status + task.sprint_id, return-shape, en error-pad.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 16:58:15 +02:00
..
backlog-card.tsx Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
backlog-hydration-wrapper.tsx feat(PBI-74): Zustand product-workspace rearchitecture (Stories 1-8) (#180) 2026-05-10 02:25:19 +02:00
backlog-split-pane.tsx feat(PBI-74): Zustand product-workspace rearchitecture (Stories 1-8) (#180) 2026-05-10 02:25:19 +02:00
empty-panel.tsx Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
new-sprint-metadata-dialog.tsx feat(PBI-79/ST-1337): state A′ UI — metadata dialog + sticky banner + PbiList ombouw 2026-05-11 16:48:51 +02:00
new-sprint-trigger.tsx feat(PBI-79/ST-1337): state A′ UI — metadata dialog + sticky banner + PbiList ombouw 2026-05-11 16:48:51 +02:00
pbi-dialog.tsx Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
pbi-list.tsx feat(PBI-79/ST-1337): state A′ UI — metadata dialog + sticky banner + PbiList ombouw 2026-05-11 16:48:51 +02:00
sprint-definition-banner.tsx feat(PBI-79/ST-1339): createSprintWithSelectionAction + banner wire-up 2026-05-11 16:58:15 +02:00
sprint-draft-banner.tsx feat(PBI-79/ST-1337): state A′ UI — metadata dialog + sticky banner + PbiList ombouw 2026-05-11 16:48:51 +02:00
story-dialog.tsx Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
story-panel.tsx feat(PBI-79/ST-1337): state A′ UI — metadata dialog + sticky banner + PbiList ombouw 2026-05-11 16:48:51 +02:00
task-panel.tsx feat(PBI-74): Zustand product-workspace rearchitecture (Stories 1-8) (#180) 2026-05-10 02:25:19 +02:00
url-task-sync.tsx feat(PBI-74): Zustand product-workspace rearchitecture (Stories 1-8) (#180) 2026-05-10 02:25:19 +02:00