AP1.12c: Reorder für Projekte und Backlog per sort_order.
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped

Migration 015 für Backlog sort_order; DnD auf Desktop, Pfeile auf Mobile; PATCH-Batches für Geschwister.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-09 11:35:08 +02:00
1 parent e50c04c96f
commit a99d4a8974
15 files changed
+709 -130

No files matched your search

@@ -510,6 +510,42 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
}
}
async function handleReorderProjects(patches) {
if (!patches?.length) return true
setFormBusy(true)
setError(null)
try {
await Promise.all(
patches.map((patch) => updateProject(patch.id, { sort_order: patch.sort_order })),
)
setProjects(await listInitiativeProjects(id))
return true
} catch (err) {
setError(err.message)
return false
} finally {
setFormBusy(false)
}
}
async function handleReorderBacklog(patches) {
if (!patches?.length) return true
setFormBusy(true)
setError(null)
try {
await Promise.all(
patches.map((patch) => updateBacklogItem(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]
@@ -701,6 +737,8 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
handleCreateProject,
handleUpdateProject,
handleDeleteProject,
handleReorderProjects,
handleReorderBacklog,
handleCreateEvidence,
handleEvidenceStatus,
handleDeleteEvidence,