AP1.1b: Vorhaben-Detail als Steuerungsfläche — Action-Hub statt paralleler Listen
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 1m26s
Test Suite / lint-backend (push) Successful in 1s
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 46s
Test Suite / pytest-backend (push) Successful in 1m26s
Test Suite / lint-backend (push) Successful in 1s
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
Leitfrage oben, Maßnahmen mit verknüpftem Kontext aus dem Snapshot, vollständiges Meilenstein-Formular, Backlog/Entscheidungen/Nachweise unter Erweitert. Version 0.11.2-ap1.1b.
This commit is contained in:
1 parent
fc956d4ceb
commit
a520d54bcf
10 files changed
+852
-314
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import {
|
||||
LIFECYCLE_LABELS,
|
||||
PHASE_LABELS,
|
||||
@@ -69,35 +68,63 @@ export function SteeringSnapshotPanel({
|
||||
? null
|
||||
: PHASE_DESCRIPTIONS[operating_phase] || ''
|
||||
|
||||
return (
|
||||
<section className="card steering-snapshot">
|
||||
<div className="section-header">
|
||||
<h2>Steuerungszustand</h2>
|
||||
<span className="badge status-badge status-active">{displayLabel}</span>
|
||||
</div>
|
||||
const statPills = [
|
||||
{ label: 'Offen', value: counts.actions_open, warn: false },
|
||||
{ label: 'Blockiert', value: counts.actions_blocked, warn: counts.actions_blocked > 0 },
|
||||
{ label: 'Review', value: counts.actions_review_required, warn: counts.actions_review_required > 0 },
|
||||
{ label: 'Blocker', value: counts.blockers_open, warn: counts.blockers_open > 0 },
|
||||
]
|
||||
|
||||
{(method_label || canManageMethod) && (
|
||||
<p className="steering-method-row">
|
||||
<span className="muted">Methode: </span>
|
||||
{canManageMethod && methods.length > 0 ? (
|
||||
<select
|
||||
className="inline-select steering-method-select"
|
||||
value={method_key || 'generic_operating'}
|
||||
disabled={methodBusy}
|
||||
onChange={(e) => onMethodChange?.(e.target.value)}
|
||||
aria-label="Steuerungsmethode"
|
||||
return (
|
||||
<section className="card steering-snapshot steering-snapshot--hero">
|
||||
<header className="steering-hero-header">
|
||||
<div>
|
||||
<p className="steering-hero-kicker">Leitfrage</p>
|
||||
<h2 className="steering-hero-title">
|
||||
Wo stehe ich — und was ist als Nächstes dran?
|
||||
</h2>
|
||||
</div>
|
||||
<span className="badge status-badge status-active steering-lifecycle-badge">
|
||||
{displayLabel}
|
||||
</span>
|
||||
</header>
|
||||
|
||||
<div className="steering-hero-toolbar">
|
||||
{(method_label || canManageMethod) && (
|
||||
<p className="steering-method-row">
|
||||
<span className="muted">Methode: </span>
|
||||
{canManageMethod && methods.length > 0 ? (
|
||||
<select
|
||||
className="inline-select steering-method-select"
|
||||
value={method_key || 'generic_operating'}
|
||||
disabled={methodBusy}
|
||||
onChange={(e) => onMethodChange?.(e.target.value)}
|
||||
aria-label="Steuerungsmethode"
|
||||
>
|
||||
{methods.map((m) => (
|
||||
<option key={m.key} value={m.key}>
|
||||
{m.label}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
) : (
|
||||
<strong>{method_label || method_key}</strong>
|
||||
)}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<ul className="steering-stat-pills" aria-label="Kurzüberblick">
|
||||
{statPills.map((pill) => (
|
||||
<li
|
||||
key={pill.label}
|
||||
className={`steering-stat-pill${pill.warn ? ' steering-stat-pill--warn' : ''}`}
|
||||
>
|
||||
{methods.map((m) => (
|
||||
<option key={m.key} value={m.key}>
|
||||
{m.label}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
) : (
|
||||
<strong>{method_label || method_key}</strong>
|
||||
)}
|
||||
</p>
|
||||
)}
|
||||
<span className="steering-stat-pill-value">{pill.value}</span>
|
||||
<span className="steering-stat-pill-label">{pill.label}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{phaseDesc && <p className="steering-phase-desc">{phaseDesc}</p>}
|
||||
|
||||
@@ -107,76 +134,55 @@ export function SteeringSnapshotPanel({
|
||||
</p>
|
||||
)}
|
||||
|
||||
{next_actions.length > 0 && (
|
||||
<div className="steering-next-actions">
|
||||
<h3>Nächste Schritte für dieses Vorhaben</h3>
|
||||
<ol className="item-list compact-list">
|
||||
{next_actions.map((item, i) => (
|
||||
<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>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{upcoming_milestones.length > 0 && (
|
||||
<div className="steering-milestones">
|
||||
<h3>Meilenstein-Horizont</h3>
|
||||
<ul className="item-list compact-list">
|
||||
{upcoming_milestones.map((ms) => (
|
||||
<li key={ms.id} className="list-item card-list-item compact">
|
||||
<div className="list-item-main">
|
||||
<strong>{ms.title}</strong>
|
||||
<span className="muted list-item-sub">
|
||||
{MILESTONE_STATUS_LABELS[ms.status] || ms.status}
|
||||
{ms.target_date ? ` · Ziel: ${formatDate(ms.target_date)}` : ''}
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<dl className="snapshot-counts">
|
||||
<div>
|
||||
<dt>Offene Maßnahmen</dt>
|
||||
<dd>{counts.actions_open}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Blockiert</dt>
|
||||
<dd>{counts.actions_blocked}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Review nötig</dt>
|
||||
<dd>{counts.actions_review_required}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Offene Blocker</dt>
|
||||
<dd>{counts.blockers_open}</dd>
|
||||
</div>
|
||||
{(counts.unlinked_blockers > 0 || counts.unlinked_evidence > 0) && (
|
||||
<div className="snapshot-warn">
|
||||
<dt>Unverknüpft</dt>
|
||||
<dd>
|
||||
{counts.unlinked_blockers} Blocker, {counts.unlinked_evidence} Evidence
|
||||
</dd>
|
||||
<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) => (
|
||||
<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>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</div>
|
||||
)}
|
||||
</dl>
|
||||
|
||||
<p className="muted snapshot-hint">
|
||||
Steuerungszustand über Standard Lifecycle
|
||||
{lifecycle_state ? ` (${lifecycle_state})` : ''}.
|
||||
</p>
|
||||
{upcoming_milestones.length > 0 && (
|
||||
<div className="steering-milestones">
|
||||
<h3>Meilenstein-Horizont</h3>
|
||||
<ul className="item-list compact-list">
|
||||
{upcoming_milestones.map((ms) => (
|
||||
<li key={ms.id} className="list-item card-list-item compact">
|
||||
<div className="list-item-main">
|
||||
<strong>{ms.title}</strong>
|
||||
<span className="muted list-item-sub">
|
||||
{MILESTONE_STATUS_LABELS[ms.status] || ms.status}
|
||||
{ms.target_date ? ` · Ziel: ${formatDate(ms.target_date)}` : ''}
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{(counts.unlinked_blockers > 0 || counts.unlinked_evidence > 0) && (
|
||||
<p className="steering-unlinked-hint muted">
|
||||
{counts.unlinked_blockers > 0 && `${counts.unlinked_blockers} Blocker ohne Maßnahme`}
|
||||
{counts.unlinked_blockers > 0 && counts.unlinked_evidence > 0 && ' · '}
|
||||
{counts.unlinked_evidence > 0 && `${counts.unlinked_evidence} Nachweise ohne Maßnahme`}
|
||||
{' — unter „Erweitert“ verknüpfen oder aufräumen.'}
|
||||
</p>
|
||||
)}
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user