AP1.10a: Initiative-Standardfelder vision, Zielzustand und Archetyp-Schlüssel.
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 1m51s
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

Migration 016, Archetyp-Registry-API, erweitertes Profil-Modal und Plan-Profil-Ansicht.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-09 11:48:54 +02:00
1 parent 495993cad6
commit 408050bcb8
14 files changed
+342 -40

No files matched your search

+21 -4
View File
@@ -7,6 +7,7 @@ import { Modal } from '../../components/Modal.jsx'
import { InitiativeForm } from '../../components/InitiativeForm.jsx'
import { useInitiativeOperations } from '../../context/InitiativeOperationsContext.jsx'
import { useProgramScope } from '../../context/ProgramScopeContext.jsx'
import { initiativeArchetypeLabel } from '../../constants/initiativeArchetypes.js'
function PlanProfileInner() {
const ops = useInitiativeOperations()
@@ -52,20 +53,36 @@ function PlanProfileInner() {
</div>
</header>
{error && <p className="error">{error}</p>}
<div className="plan-profile__field">
<h3 className="plan-profile__label">Archetyp</h3>
<p>{initiativeArchetypeLabel(initiative.archetype_key)}</p>
</div>
{initiative.goal ? (
<div className="plan-profile__field">
<h3 className="plan-profile__label">Ziel</h3>
<h3 className="plan-profile__label">Kurzbeschreibung (Ziel)</h3>
<p>{initiative.goal}</p>
</div>
) : (
<p className="muted">Noch kein Ziel hinterlegt.</p>
<p className="muted">Noch keine Kurzbeschreibung hinterlegt.</p>
)}
{initiative.vision && (
<div className="plan-profile__field">
<h3 className="plan-profile__label">Vision</h3>
<p>{initiative.vision}</p>
</div>
)}
{initiative.target_state_summary && (
<div className="plan-profile__field">
<h3 className="plan-profile__label">Zielzustand</h3>
<p>{initiative.target_state_summary}</p>
</div>
)}
<p className="muted plan-profile__note">
Archetyp-Felder und dynamische Attribute folgen mit AP1.10 (Entity Field System).
Dynamische Zusatzfelder (EFS) folgen in AP1.10c.
</p>
</section>
<Modal open={editing} title="Vorhaben bearbeiten" onClose={() => setEditing(false)}>
<Modal open={editing} title="Vorhaben bearbeiten" onClose={() => setEditing(false)} size="lg">
<InitiativeForm
initial={initiative}
onSubmit={handleSave}