Scrum4Me/components
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
..
admin Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
auth Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
backlog feat(PBI-79/ST-1339): createSprintWithSelectionAction + banner wire-up 2026-05-11 16:58:15 +02:00
dashboard Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
dialogs Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
entity-dialog Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
ideas Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
jobs feat(PBI-76): migrate localStorage prefs to user-settings store (Phase 1) (#188) 2026-05-10 15:13:39 +02:00
loading refactor(PBI-77): standaardiseer loading-skeletons rond shadcn Skeleton (#186) 2026-05-10 12:59:08 +02:00
mobile Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
notifications Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
products Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
settings Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
shared feat(PBI-79/ST-1333): active-sprint null-contract + clearActiveSprintAction 2026-05-11 13:35:32 +02:00
solo Load/render workspace alignment (#182) 2026-05-10 07:34:58 +02:00
split-pane feat(PBI-76): migrate cookie-based prefs to user-settings (Phase 2) (#189) 2026-05-10 21:20:29 +02:00
sprint feat(PBI-76): migrate localStorage prefs to user-settings store (Phase 1) (#188) 2026-05-10 15:13:39 +02:00
ui Sprint: pbi-55 (#160) 2026-05-07 22:57:57 +02:00
markdown.tsx Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00