AP2.2b/c: A1-Stufenwechsel, Team-Fix, Agent-Anlage, Steuerungs-Hinweise.

AP2.0e rotiert Recurring bei maturity_stage reached. Maturity-Strategie priorisiert Routinen. Team zeigt Namen und Agent-Formular. Archetyp-Hints in Kontrolle und Stufe-A-Gruppierung bei Anlage.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-12 16:19:55 +02:00
1 parent 2b0d5dd3d9
commit 0b57e2ec75
18 files changed
+507 -107

No files matched your search

@@ -0,0 +1,35 @@
import { Link } from 'react-router-dom'
import { scopedPath } from '../utils/routes.js'
const HINTS = {
'initiative.maturity_journey': {
text: 'Reifegrad: Heutige Übung (Rhythmus) und aktive Stufe steuern den nächsten Schritt.',
link: { to: '/control/journey', label: 'Rhythmen & Journey' },
},
'initiative.linear_project': {
text: 'Linear: Nächster Schritt am kritischen Pfad — Abhängigkeiten im Gate-Graph.',
link: { to: '/plan/gates', label: 'Gate-Graph öffnen' },
},
'initiative.product': {
text: 'Product: Eingang triagieren, committete Actions — optional Sprint-Zeitbox.',
link: { to: '/plan/inbox', label: 'Zum Eingang' },
},
'initiative.program': {
text: 'Programm: Gate-Horizont und Abschluss im Blick behalten.',
link: { to: '/plan/gates', label: 'Phasen / Gates' },
},
}
export function ArchetypeSteeringHints({ archetypeKey }) {
const hint = HINTS[archetypeKey]
if (!hint) return null
return (
<p className="steering-archetype-hints muted">
{hint.text}{' '}
<Link to={scopedPath(hint.link.to)} className="link-inline">
{hint.link.label}
</Link>
</p>
)
}
+21 -6
View File
@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react'
import { INITIATIVE_STATUSES, PRIORITIES } from '../constants/status.js'
import { INITIATIVE_STATUS_LABELS, PRIORITY_LABELS } from '../constants/status.js'
import { INITIATIVE_ARCHETYPE_LABELS } from '../constants/initiativeArchetypes.js'
import { INITIATIVE_ARCHETYPE_LABELS, STUFE_A_ARCHETYPE_KEYS } from '../constants/initiativeArchetypes.js'
import { listEntityArchetypes, getArchetypeStarterPreview } from '../api/entityArchetypes.js'
import {
getInitiativeFields,
@@ -129,6 +129,8 @@ export function InitiativeForm({
const formReady = archetypes && !fieldsLoading
const selectedArchetype = (archetypes || []).find((item) => item.key === archetypeKey)
const stufeA = (archetypes || []).filter((item) => STUFE_A_ARCHETYPE_KEYS.has(item.key))
const otherArchetypes = (archetypes || []).filter((item) => !STUFE_A_ARCHETYPE_KEYS.has(item.key))
return (
<form className="form workspace-form initiative-form" onSubmit={handleSubmit}>
@@ -146,11 +148,24 @@ export function InitiativeForm({
onChange={(e) => setArchetypeKey(e.target.value)}
disabled={!archetypes}
>
{(archetypes || []).map((item) => (
<option key={item.key} value={item.key}>
{item.label}
</option>
))}
{stufeA.length > 0 && (
<optgroup label="MVP Stufe A (empfohlen)">
{stufeA.map((item) => (
<option key={item.key} value={item.key}>
{item.label}
</option>
))}
</optgroup>
)}
{otherArchetypes.length > 0 && (
<optgroup label="Weitere Archetypen">
{otherArchetypes.map((item) => (
<option key={item.key} value={item.key}>
{item.label}
</option>
))}
</optgroup>
)}
</select>
{selectedArchetype?.description && (
<span className="muted form-hint">{selectedArchetype.description}</span>
@@ -5,6 +5,7 @@ import {
} 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'
@@ -106,6 +107,7 @@ export function SteeringSnapshotPanel({
{steering_guidance && (
<p className="steering-guidance">{steering_guidance}</p>
)}
<ArchetypeSteeringHints archetypeKey={archetype_key} />
</div>
<span className="badge status-badge status-active steering-lifecycle-badge">
{displayLabel}