AP2.2f: Scrum Sprint-Review, Reaktivierung und Carryover beim Abschluss.
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 2m58s
Test Suite / lint-backend (push) Successful in 4s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 19s
Test Suite / playwright-smoke (push) Successful in 1m1s

Offene APs können beim Abschluss in den Eingang oder einen anderen Sprint überführt werden; abgeschlossene Sprints sind reaktivierbar.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-24 17:40:59 +02:00
1 parent e65838118c
commit 04d1dbf1f9
14 files changed
+719 -31

No files matched your search

@@ -77,6 +77,7 @@ import {
createWorkCycle,
activateWorkCycle,
completeWorkCycle,
reactivateWorkCycle,
} from '../api/workCycles.js'
import { useCapabilities } from '../hooks/useCapabilities.js'
import { useActors } from '../hooks/useActors.js'
@@ -587,6 +588,42 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
}
}
async function handleCompleteWorkCycleWithCarryover(workCycleId, dispositions) {
setFormBusy(true)
setError(null)
try {
for (const [actionId, item] of Object.entries(dispositions || {})) {
if (item.disposition === 'backlog') {
const result = await unplanActionToBacklog(actionId, { carryover: true })
applyUnplanResult(result)
} else if (item.disposition === 'move' && item.targetCycleId) {
const updated = await updateAction(actionId, { work_cycle_id: item.targetCycleId })
setActions((prev) => prev.map((a) => (a.id === actionId ? updated : a)))
}
}
await completeWorkCycle(id, workCycleId)
await load({ silent: true })
} catch (err) {
setError(err.message)
throw err
} finally {
setFormBusy(false)
}
}
async function handleReactivateWorkCycle(workCycleId) {
setFormBusy(true)
try {
await reactivateWorkCycle(id, workCycleId)
await load({ silent: true })
setSelectedWorkCycleId(workCycleId)
} catch (err) {
setError(err.message)
} finally {
setFormBusy(false)
}
}
async function handleDeleteBacklog(itemId) {
try {
await deleteBacklogItem(itemId)
@@ -962,6 +999,8 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
handleCreateWorkCycle,
handleActivateWorkCycle,
handleCompleteWorkCycle,
handleCompleteWorkCycleWithCarryover,
handleReactivateWorkCycle,
handleDeleteBacklog,
handleCreateRoadmapItem,
handleRoadmapItemStatus,