AP2.2b: Kritischer Pfad in Kontrolle für A2 Linear.
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 2m57s
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 18s
Test Suite / playwright-smoke (push) Successful in 20s
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 2m57s
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 18s
Test Suite / playwright-smoke (push) Successful in 20s
CriticalPathPanel aus Execution Graph, Next-Action-Begruendung und Integrationstest fuer sequential_dependency. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f6aba94864
commit
00567bb097
8 files changed
+469
-1
No files matched your search
@@ -2,11 +2,22 @@ import { Link } from 'react-router-dom'
|
||||
import { scopedPath } from '../../utils/routes.js'
|
||||
import { useInitiativeOperations } from '../../context/InitiativeOperationsContext.jsx'
|
||||
import { SteeringSnapshotPanel } from '../../components/SteeringSnapshotPanel.jsx'
|
||||
import { CriticalPathPanel } from '../../components/CriticalPathPanel.jsx'
|
||||
import { NextActionWidget } from '../../widgets/NextActionWidget.jsx'
|
||||
|
||||
function usesCriticalPathControl(initiative, steeringSnapshot) {
|
||||
const archetypeKey = initiative?.archetype_key
|
||||
const methodKey = steeringSnapshot?.method_key
|
||||
return (
|
||||
archetypeKey === 'initiative.linear_project' || methodKey === 'sequential_dependency'
|
||||
)
|
||||
}
|
||||
|
||||
export function InitiativeOverviewPage() {
|
||||
const {
|
||||
initiativeId,
|
||||
initiative,
|
||||
actions,
|
||||
error,
|
||||
steeringSnapshot,
|
||||
steeringSnapshotLoading,
|
||||
@@ -18,6 +29,7 @@ export function InitiativeOverviewPage() {
|
||||
} = useInitiativeOperations()
|
||||
|
||||
const counts = steeringSnapshot?.counts || {}
|
||||
const showCriticalPath = usesCriticalPathControl(initiative, steeringSnapshot)
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -35,6 +47,10 @@ export function InitiativeOverviewPage() {
|
||||
/>
|
||||
)}
|
||||
|
||||
{showCriticalPath && capabilities.has('kairo.action.read') && (
|
||||
<CriticalPathPanel initiativeId={initiativeId} actions={actions} />
|
||||
)}
|
||||
|
||||
{capabilities.has('kairo.workspace.read') && (
|
||||
<NextActionWidget
|
||||
scope="initiative"
|
||||
@@ -42,6 +58,16 @@ export function InitiativeOverviewPage() {
|
||||
items={steeringSnapshot?.next_actions}
|
||||
loading={steeringSnapshotLoading}
|
||||
embedded
|
||||
title={
|
||||
showCriticalPath
|
||||
? 'Nächster Schritt am kritischen Pfad'
|
||||
: undefined
|
||||
}
|
||||
subtitle={
|
||||
showCriticalPath
|
||||
? 'Empfehlung aus sequential_dependency — bereite Arbeitspakete zuerst.'
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
Reference in new issue
Block a user