Erfassen und Transparent: Archetyp, Methode und Auspraegung in der UI sichtbar.
Test Suite / pytest-backend (push) Failing after 2s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Failing after 50s
Test Suite / pytest-backend (push) Failing after 2s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Failing after 50s
Method-Profiles-API und Auswahl beim Anlegen/Profil; Steuerungs-Meta in Listen und Plan; Projekt-Archetyp-Spiegel, Next-Action-Links und Umlaut-Fix fuer testbare Guidance. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
95b743d6fd
commit
efb45a3ee6
31 files changed
+965
-65
No files matched your search
@@ -4,6 +4,9 @@ import {
|
||||
NEXT_ACTION_KIND_LABELS,
|
||||
} from '../constants/operating.js'
|
||||
import { MILESTONE_STATUS_LABELS } from '../constants/status.js'
|
||||
import { methodDescriptionForKey } from '../utils/archetypes.js'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { scopedPath } from '../utils/routes.js'
|
||||
|
||||
function formatDate(iso) {
|
||||
if (!iso) return '—'
|
||||
@@ -52,6 +55,7 @@ export function SteeringSnapshotPanel({
|
||||
archetype_key,
|
||||
archetype_label,
|
||||
method_profile_key,
|
||||
method_profile_label,
|
||||
steering_guidance,
|
||||
attention_items = [],
|
||||
signals = [],
|
||||
@@ -71,6 +75,27 @@ export function SteeringSnapshotPanel({
|
||||
{ label: 'Blocker', value: counts.blockers_open, warn: counts.blockers_open > 0 },
|
||||
]
|
||||
|
||||
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">
|
||||
@@ -92,7 +117,13 @@ export function SteeringSnapshotPanel({
|
||||
{(archetype_label || archetype_key) && (
|
||||
<p className="steering-archetype-row muted">
|
||||
Archetyp: <strong>{archetype_label || archetype_key}</strong>
|
||||
{method_profile_key ? ` · Ausprägung: ${method_profile_key}` : ''}
|
||||
{method_profile_label || method_profile_key ? (
|
||||
<>
|
||||
{' '}
|
||||
· Ausprägung:{' '}
|
||||
<strong>{method_profile_label || method_profile_key}</strong>
|
||||
</>
|
||||
) : null}
|
||||
</p>
|
||||
)}
|
||||
{(method_label || canManageMethod) && (
|
||||
@@ -115,6 +146,9 @@ export function SteeringSnapshotPanel({
|
||||
) : (
|
||||
<strong>{method_label || method_key}</strong>
|
||||
)}
|
||||
{methodDescription && (
|
||||
<span className="steering-method-description muted">{methodDescription}</span>
|
||||
)}
|
||||
</p>
|
||||
)}
|
||||
|
||||
@@ -133,7 +167,7 @@ export function SteeringSnapshotPanel({
|
||||
|
||||
{(attention_items?.length > 0 || signals?.length > 0) && (
|
||||
<p className="muted snapshot-signals snapshot-attention">
|
||||
Attention:{' '}
|
||||
Aufmerksamkeit:{' '}
|
||||
{(attention_items.length > 0
|
||||
? attention_items.map((a) => a.label)
|
||||
: signals.map((s) => SIGNAL_LABELS[s] || s)
|
||||
@@ -146,19 +180,25 @@ export function SteeringSnapshotPanel({
|
||||
<div className="steering-next-actions">
|
||||
<h3>Nächste Schritte</h3>
|
||||
<ol className="item-list compact-list">
|
||||
{next_actions.map((item, i) => (
|
||||
{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.reason_code ? ` · ${item.reason_code}` : ''}
|
||||
{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>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user