fix: Sprint-AP Bearbeiten, Sprint-Verschiebung und klarere Aktionsleiste.
Test Suite / pytest-backend (push) Waiting to run
Test Suite / lint-backend (push) Waiting to run
Test Suite / compose-smoke (push) Waiting to run
Test Suite / k6 /api/health Baseline (push) Blocked by required conditions
Test Suite / playwright-smoke (push) Blocked by required conditions
Deploy Development / deploy (push) Has been cancelled
Test Suite / pytest-backend (push) Waiting to run
Test Suite / lint-backend (push) Waiting to run
Test Suite / compose-smoke (push) Waiting to run
Test Suite / k6 /api/health Baseline (push) Blocked by required conditions
Test Suite / playwright-smoke (push) Blocked by required conditions
Deploy Development / deploy (push) Has been cancelled
Behebt editingActionId-Bug in Plan/Work-Sprint; Schnellzuweisung AP zu anderem Sprint ohne Voll-Reload. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
04d1dbf1f9
commit
ee1e1c0671
9 files changed
+178
-40
No files matched your search
@@ -118,7 +118,7 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [error, setError] = useState(null)
|
||||
const [showActionForm, setShowActionForm] = useState(false)
|
||||
const [editingAction, setEditingAction] = useState(null)
|
||||
const [editingActionId, setEditingActionId] = useState(null)
|
||||
const [formBusy, setFormBusy] = useState(false)
|
||||
const [hideDone, setHideDone] = useState(true)
|
||||
const [selectedWorkCycleId, setSelectedWorkCycleId] = useState('')
|
||||
@@ -364,7 +364,7 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
if (capabilities.has('kairo.action.manage')) {
|
||||
await setActionAssignments(actionId, payload.assigned_actor_ids || [])
|
||||
}
|
||||
setEditingAction(null)
|
||||
setEditingActionId(null)
|
||||
await load()
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
@@ -373,6 +373,20 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
}
|
||||
}
|
||||
|
||||
async function handleMoveActionToSprint(action, targetCycleId) {
|
||||
if (!action?.id || !targetCycleId || action.work_cycle_id === targetCycleId) return
|
||||
setFormBusy(true)
|
||||
setError(null)
|
||||
try {
|
||||
const updated = await updateAction(action.id, { work_cycle_id: targetCycleId })
|
||||
setActions((prev) => prev.map((a) => (a.id === action.id ? updated : a)))
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
} finally {
|
||||
setFormBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
async function handleQuickStatus(action, status) {
|
||||
if (!capabilities.has('kairo.action.manage')) return
|
||||
try {
|
||||
@@ -966,8 +980,8 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
error,
|
||||
showActionForm,
|
||||
setShowActionForm,
|
||||
editingAction,
|
||||
setEditingAction,
|
||||
editingActionId,
|
||||
setEditingActionId,
|
||||
formBusy,
|
||||
hideDone,
|
||||
setHideDone,
|
||||
@@ -983,6 +997,7 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
handleMethodProfileChange,
|
||||
handleCreateAction,
|
||||
handleUpdateAction,
|
||||
handleMoveActionToSprint,
|
||||
handleQuickStatus,
|
||||
handleCreateBlocker,
|
||||
handleCreateBlockerForAction,
|
||||
|
||||
Reference in new issue
Block a user