AP2.2d: B2b Product-Backlog und B3 Sprint-Backlog in UI.
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 2m40s
Test Suite / lint-backend (push) Successful in 2s
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 13s
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 2m40s
Test Suite / lint-backend (push) Successful in 2s
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 13s
Zeitbox-API im Frontend, Plan/Ausführen Sprint-Ansichten, Backlog-Convert in aktiven Sprint. agile_iteration bei aktiver Zeitbox für continuous_product. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0b57e2ec75
commit
82a5b9adec
27 files changed
+646
-27
No files matched your search
@@ -71,6 +71,12 @@ import {
|
||||
updateInitiativeSteeringMethod,
|
||||
updateInitiativeMethodProfile,
|
||||
} from '../api/steering.js'
|
||||
import {
|
||||
listInitiativeWorkCycles,
|
||||
getActiveWorkCycle,
|
||||
createWorkCycle,
|
||||
activateWorkCycle,
|
||||
} from '../api/workCycles.js'
|
||||
import { useCapabilities } from '../hooks/useCapabilities.js'
|
||||
import { useActors } from '../hooks/useActors.js'
|
||||
import { useSession } from './SessionContext.jsx'
|
||||
@@ -98,6 +104,8 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
const [decisions, setDecisions] = useState([])
|
||||
const [reviews, setReviews] = useState([])
|
||||
const [recurringItems, setRecurringItems] = useState([])
|
||||
const [workCycles, setWorkCycles] = useState([])
|
||||
const [activeWorkCycle, setActiveWorkCycle] = useState(null)
|
||||
const [steeringSnapshot, setSteeringSnapshot] = useState(null)
|
||||
const [steeringSnapshotLoading, setSteeringSnapshotLoading] = useState(false)
|
||||
const [steeringSnapshotError, setSteeringSnapshotError] = useState(null)
|
||||
@@ -135,6 +143,12 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
loads.push(listInitiativeDecisions(id).then(setDecisions).catch(() => setDecisions([])))
|
||||
loads.push(listInitiativeReviews(id).then(setReviews).catch(() => setReviews([])))
|
||||
loads.push(listInitiativeRecurring(id).then(setRecurringItems).catch(() => setRecurringItems([])))
|
||||
loads.push(listInitiativeWorkCycles(id).then(setWorkCycles).catch(() => setWorkCycles([])))
|
||||
loads.push(
|
||||
getActiveWorkCycle(id)
|
||||
.then((item) => setActiveWorkCycle(item || null))
|
||||
.catch(() => setActiveWorkCycle(null))
|
||||
)
|
||||
loads.push(
|
||||
listSteeringMethods().then(setSteeringMethods).catch(() => setSteeringMethods([]))
|
||||
)
|
||||
@@ -186,6 +200,20 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
[actions, hideDone, selectedProjectId, projects]
|
||||
)
|
||||
|
||||
const sprintActions = useMemo(() => {
|
||||
if (!activeWorkCycle?.id) return []
|
||||
const cycleId = activeWorkCycle.id
|
||||
let list = hideDone
|
||||
? actions.filter((a) => a.status !== 'done' && a.status !== 'discarded')
|
||||
: actions
|
||||
list = list.filter((a) => a.work_cycle_id === cycleId)
|
||||
if (selectedProjectId) {
|
||||
const subtreeIds = collectProjectSubtreeIds(projects, selectedProjectId)
|
||||
list = list.filter((a) => a.project_id && subtreeIds.has(a.project_id))
|
||||
}
|
||||
return list
|
||||
}, [actions, hideDone, activeWorkCycle?.id, selectedProjectId, projects])
|
||||
|
||||
const actionContextById = useMemo(
|
||||
() => Object.fromEntries((steeringSnapshot?.actions || []).map((a) => [a.id, a])),
|
||||
[steeringSnapshot]
|
||||
@@ -257,6 +285,8 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
clear_project: payload.project_id === '' || payload.project_id === null,
|
||||
roadmap_item_id: payload.roadmap_item_id || undefined,
|
||||
clear_roadmap_item: payload.roadmap_item_id === '' || payload.roadmap_item_id === null,
|
||||
work_cycle_id: payload.work_cycle_id || undefined,
|
||||
clear_work_cycle: payload.work_cycle_id === '' || payload.work_cycle_id === null,
|
||||
})
|
||||
if (capabilities.has('kairo.action.manage')) {
|
||||
await setActionAssignments(actionId, payload.assigned_actor_ids || [])
|
||||
@@ -393,7 +423,31 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
async function handleConvertBacklog(itemId) {
|
||||
setFormBusy(true)
|
||||
try {
|
||||
await convertBacklogToAction(itemId)
|
||||
await convertBacklogToAction(itemId, { assign_active_sprint: true })
|
||||
await load()
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
} finally {
|
||||
setFormBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
async function handleCreateWorkCycle(body) {
|
||||
setFormBusy(true)
|
||||
try {
|
||||
await createWorkCycle(id, body)
|
||||
await load()
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
} finally {
|
||||
setFormBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
async function handleActivateWorkCycle(workCycleId) {
|
||||
setFormBusy(true)
|
||||
try {
|
||||
await activateWorkCycle(id, workCycleId)
|
||||
await load()
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
@@ -727,6 +781,9 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
decisions,
|
||||
reviews,
|
||||
recurringItems,
|
||||
workCycles,
|
||||
activeWorkCycle,
|
||||
sprintActions,
|
||||
steeringSnapshot,
|
||||
steeringSnapshotLoading,
|
||||
steeringSnapshotError,
|
||||
@@ -764,6 +821,8 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
handleBacklogGate,
|
||||
handleBacklogStatus,
|
||||
handleConvertBacklog,
|
||||
handleCreateWorkCycle,
|
||||
handleActivateWorkCycle,
|
||||
handleDeleteBacklog,
|
||||
handleCreateRoadmapItem,
|
||||
handleRoadmapItemStatus,
|
||||
|
||||
Reference in new issue
Block a user