AP1.12c: Reihenfolge der Gates per DnD und Pfeiltasten.
Deploy Development / deploy (push) Successful in 50s
Test Suite / pytest-backend (push) Successful in 2m6s
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 15s
Deploy Development / deploy (push) Successful in 50s
Test Suite / pytest-backend (push) Successful in 2m6s
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 15s
RoadmapPlanSection nutzt sort_order wie Backlog und Projekte; handleReorderRoadmapItems im Operations-Context. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b1686f3a98
commit
83fdb9a2a2
3 files changed
+150
-50
No files matched your search
@@ -565,6 +565,24 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
}
|
||||
}
|
||||
|
||||
async function handleReorderRoadmapItems(patches) {
|
||||
if (!patches?.length) return true
|
||||
setFormBusy(true)
|
||||
setError(null)
|
||||
try {
|
||||
await Promise.all(
|
||||
patches.map((patch) => updateRoadmapItem(patch.id, { sort_order: patch.sort_order })),
|
||||
)
|
||||
await load()
|
||||
return true
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
return false
|
||||
} finally {
|
||||
setFormBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
const milestones = useMemo(
|
||||
() => roadmapItems.filter((item) => item.item_type === 'milestone'),
|
||||
[roadmapItems]
|
||||
@@ -759,6 +777,7 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
handleDeleteProject,
|
||||
handleReorderProjects,
|
||||
handleReorderBacklog,
|
||||
handleReorderRoadmapItems,
|
||||
handleCreateEvidence,
|
||||
handleEvidenceStatus,
|
||||
handleDeleteEvidence,
|
||||
|
||||
Reference in new issue
Block a user