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
@@ -1,10 +1,19 @@
|
||||
/** Fallback-Labels bis API geladen (AP1.10a). */
|
||||
/** Fallback-Labels bis API geladen (AP1.10a / AP2.0). */
|
||||
export const INITIATIVE_ARCHETYPE_LABELS = {
|
||||
'initiative.generic': 'Allgemeines Vorhaben',
|
||||
'initiative.program': 'Programm / Mega-Vorhaben',
|
||||
'initiative.product': 'Produkt / Release',
|
||||
'initiative.maturity_journey': 'Reifegrad-Entwicklung',
|
||||
'initiative.linear_project': 'Lineares Vorhaben',
|
||||
'initiative.recurring_program': 'Dauerprogramm / Rhythmus',
|
||||
'initiative.support_queue': 'Inbox / Queue',
|
||||
'initiative.program': 'Programm (begrenzt)',
|
||||
'initiative.product': 'Produkt (kontinuierlich)',
|
||||
'initiative.dispute_case': 'Verfahren / Konflikt',
|
||||
'initiative.content_project': 'Inhalt / Kapitel',
|
||||
}
|
||||
|
||||
export function initiativeArchetypeLabel(key) {
|
||||
return INITIATIVE_ARCHETYPE_LABELS[key] || key || 'Allgemeines Vorhaben'
|
||||
export function initiativeArchetypeLabel(key, archetypes = []) {
|
||||
if (!key) return 'Allgemeines Vorhaben'
|
||||
const fromApi = archetypes.find((item) => item.key === key)
|
||||
if (fromApi?.label) return fromApi.label
|
||||
return INITIATIVE_ARCHETYPE_LABELS[key] || key
|
||||
}
|
||||
Reference in new issue
Block a user