feat(AP2.2b, UX): Linear E2E, Composition-Kernel und Steering-Paritaet
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 4m24s
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 12s
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 4m24s
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 12s
AP2.2b: Integrationstests Neue-Kueche-Happy-Path, Truth Table und Execution Plan abgeschlossen. UX Composition Kernel (Control/Plan/Cockpit-Slots), CriticalPathPanel aus Kernel-Read-Model mit Gate-Horizont, Next Action elementgesteuert ohne Snapshot-Doppelung, Product-Continuous-Copy und Plan/Arbeit ueber Kernel planning_debt. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b6434bcc50
commit
43d33d0edb
22 files changed
+1527
-243
No files matched your search
@@ -8,7 +8,6 @@ import { StatusBadge } from './StatusBadge.jsx'
|
||||
import { ExecutionFlowBadge } from './ExecutionFlowBadge.jsx'
|
||||
import {
|
||||
buildCriticalPathSteps,
|
||||
findNextReadyOnCriticalPath,
|
||||
summarizeCriticalPath,
|
||||
} from '../utils/executionGraph.js'
|
||||
import { actionPath, scopedPath } from '../utils/routes.js'
|
||||
@@ -16,39 +15,47 @@ import { actionPath, scopedPath } from '../utils/routes.js'
|
||||
export function CriticalPathPanel({
|
||||
initiativeId,
|
||||
actions = [],
|
||||
graphState: kernelGraphState = null,
|
||||
graphLoading = false,
|
||||
scopeRoadmapItemId = null,
|
||||
embedded = true,
|
||||
}) {
|
||||
const [graphState, setGraphState] = useState(null)
|
||||
const [loading, setLoading] = useState(true)
|
||||
const useKernelGraph = kernelGraphState != null || graphLoading
|
||||
const [fallbackGraphState, setFallbackGraphState] = useState(null)
|
||||
const [fallbackLoading, setFallbackLoading] = useState(!useKernelGraph)
|
||||
const [error, setError] = useState(null)
|
||||
|
||||
useEffect(() => {
|
||||
if (!initiativeId) {
|
||||
setGraphState(null)
|
||||
setLoading(false)
|
||||
if (!initiativeId || useKernelGraph) {
|
||||
setFallbackGraphState(null)
|
||||
setFallbackLoading(false)
|
||||
return undefined
|
||||
}
|
||||
let cancelled = false
|
||||
setLoading(true)
|
||||
setFallbackLoading(true)
|
||||
setError(null)
|
||||
getInitiativeExecutionGraphState(initiativeId)
|
||||
getInitiativeExecutionGraphState(initiativeId, {
|
||||
scopeRoadmapItemId: scopeRoadmapItemId || undefined,
|
||||
})
|
||||
.then((data) => {
|
||||
if (!cancelled) setGraphState(data)
|
||||
if (!cancelled) setFallbackGraphState(data)
|
||||
})
|
||||
.catch((err) => {
|
||||
if (!cancelled) setError(err.message)
|
||||
})
|
||||
.finally(() => {
|
||||
if (!cancelled) setLoading(false)
|
||||
if (!cancelled) setFallbackLoading(false)
|
||||
})
|
||||
return () => {
|
||||
cancelled = true
|
||||
}
|
||||
}, [initiativeId])
|
||||
}, [initiativeId, scopeRoadmapItemId, useKernelGraph])
|
||||
|
||||
const graphState = useKernelGraph ? kernelGraphState : fallbackGraphState
|
||||
const loading = useKernelGraph ? graphLoading : fallbackLoading
|
||||
|
||||
const steps = buildCriticalPathSteps(graphState, actions)
|
||||
const summary = summarizeCriticalPath(graphState, actions)
|
||||
const nextReady = findNextReadyOnCriticalPath(graphState, actions)
|
||||
|
||||
const body = (
|
||||
<>
|
||||
@@ -57,26 +64,11 @@ export function CriticalPathPanel({
|
||||
<ErrorState message={error} onRetry={() => window.location.reload()} />
|
||||
)}
|
||||
{!loading && !error && steps.length === 0 && (
|
||||
<EmptyState message="Noch kein kritischer Pfad — Arbeitspakete mit Abhängigkeiten unter Plan → Zielzustände / Durchführungsplan anlegen." />
|
||||
<EmptyState message="Noch kein kritischer Pfad im aktiven Gate-Horizont — Arbeitspakete mit Abhängigkeiten unter Plan → Zielzustände / Durchführungsplan anlegen." />
|
||||
)}
|
||||
{!loading && !error && steps.length > 0 && (
|
||||
<>
|
||||
<p className="critical-path-summary muted">{summary.message}</p>
|
||||
{nextReady && (
|
||||
<div className="critical-path-next card-list-item">
|
||||
<span className="badge status-badge status-active">Nächster Schritt</span>
|
||||
<strong>{nextReady.action.title}</strong>
|
||||
<p className="muted">
|
||||
Kritischer Pfad — ausführungsbereit, keine blockierenden Vorgänger.
|
||||
</p>
|
||||
<Link
|
||||
to={actionPath(nextReady.actionId)}
|
||||
className="btn btn-primary btn-sm"
|
||||
>
|
||||
Arbeitspaket öffnen
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
<ol className="critical-path-steps item-list">
|
||||
{steps.map((step) => (
|
||||
<li
|
||||
@@ -120,8 +112,8 @@ export function CriticalPathPanel({
|
||||
<div>
|
||||
<h2>Kritischer Pfad</h2>
|
||||
<p className="section-lead muted">
|
||||
Längster Abhängigkeitspfad aus dem Execution Graph — Steuerungsantwort für
|
||||
lineare Vorhaben (A2).
|
||||
Abhängigkeitspfad im aktiven Gate-Horizont — Steuerungsantwort für lineare
|
||||
Vorhaben (A2).
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
import {
|
||||
LIFECYCLE_LABELS,
|
||||
SIGNAL_LABELS,
|
||||
NEXT_ACTION_KIND_LABELS,
|
||||
} from '../constants/operating.js'
|
||||
import { MILESTONE_STATUS_LABELS } from '../constants/status.js'
|
||||
import { methodDescriptionForKey } from '../utils/archetypes.js'
|
||||
import { ArchetypeSteeringHints } from './ArchetypeSteeringHints.jsx'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { scopedPath } from '../utils/routes.js'
|
||||
|
||||
function formatDate(iso) {
|
||||
if (!iso) return '—'
|
||||
@@ -26,6 +23,7 @@ export function SteeringSnapshotPanel({
|
||||
canManageMethod = false,
|
||||
onMethodChange,
|
||||
methodBusy = false,
|
||||
showGateHorizon = false,
|
||||
}) {
|
||||
if (loading) {
|
||||
return (
|
||||
@@ -60,7 +58,6 @@ export function SteeringSnapshotPanel({
|
||||
signals = [],
|
||||
counts,
|
||||
upcoming_milestones = [],
|
||||
next_actions = [],
|
||||
active_work_cycle = null,
|
||||
} = snapshot
|
||||
const displayLabel =
|
||||
@@ -77,25 +74,6 @@ export function SteeringSnapshotPanel({
|
||||
|
||||
const methodDescription = methodDescriptionForKey(method_key, methods)
|
||||
|
||||
function nextActionLink(item) {
|
||||
if (item.action_id) {
|
||||
return { to: `/actions/${item.action_id}`, label: 'Arbeitspaket öffnen' }
|
||||
}
|
||||
if (item.backlog_item_id && item.initiative_id) {
|
||||
return {
|
||||
to: scopedPath('/plan/inbox', { initiativeId: item.initiative_id }),
|
||||
label: 'Zum Eingang',
|
||||
}
|
||||
}
|
||||
if (item.kind === 'create_action' && item.initiative_id) {
|
||||
return {
|
||||
to: scopedPath('/plan/work', { initiativeId: item.initiative_id }),
|
||||
label: 'Arbeitspaket anlegen',
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<section className="card steering-snapshot steering-snapshot--hero">
|
||||
<header className="steering-hero-header">
|
||||
@@ -182,35 +160,8 @@ export function SteeringSnapshotPanel({
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div className="steering-hero-columns">
|
||||
{next_actions.length > 0 && (
|
||||
<div className="steering-next-actions">
|
||||
<h3>Nächste Schritte</h3>
|
||||
<ol className="item-list compact-list">
|
||||
{next_actions.map((item, i) => {
|
||||
const link = nextActionLink(item)
|
||||
return (
|
||||
<li key={`${item.kind}-${i}`} className="list-item card-list-item compact">
|
||||
<div className="list-item-main">
|
||||
<span className="next-action-rank">{i + 1}</span>
|
||||
<strong>{item.title}</strong>
|
||||
<span className="muted list-item-sub">
|
||||
{NEXT_ACTION_KIND_LABELS[item.kind] || item.kind}
|
||||
{item.recommended_action ? ` — ${item.recommended_action}` : ''}
|
||||
</span>
|
||||
</div>
|
||||
{link && (
|
||||
<Link to={link.to} className="btn btn-primary btn-sm">
|
||||
{link.label}
|
||||
</Link>
|
||||
)}
|
||||
</li>
|
||||
)})}
|
||||
</ol>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{upcoming_milestones.length > 0 && (
|
||||
{(showGateHorizon && upcoming_milestones.length > 0) && (
|
||||
<div className="steering-hero-columns">
|
||||
<div className="steering-milestones">
|
||||
<h3>Meilenstein-Horizont</h3>
|
||||
<ul className="item-list compact-list">
|
||||
@@ -227,8 +178,8 @@ export function SteeringSnapshotPanel({
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{(counts.unlinked_blockers > 0 || counts.unlinked_evidence > 0) && (
|
||||
<p className="steering-unlinked-hint muted">
|
||||
|
||||
Reference in new issue
Block a user