AP1.5e: Projekt-Detail, Bearbeitung und Lifecycle in der Ausführung.
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Failing after 1m48s
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) Successful in 43s
Test Suite / pytest-backend (push) Failing after 1m48s
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
Detail-Route mit vollem Formular, Struktur-Navigator statt Inline-CRUD, Lifecycle sichtbar im Vorhaben-Header und auf Ausführung (0.15.1-ap1.5e).
This commit is contained in:
1 parent
94e815e88a
commit
33831a8c2c
13 files changed
+827
-173
No files matched your search
@@ -5,9 +5,10 @@ import { PriorityBadge } from '../components/PriorityBadge.jsx'
|
||||
import { InitiativeSubNav } from '../components/InitiativeSubNav.jsx'
|
||||
import { ErrorState } from '../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../components/LoadingState.jsx'
|
||||
import { LIFECYCLE_LABELS } from '../constants/operating.js'
|
||||
|
||||
function InitiativeLayoutInner() {
|
||||
const { initiative, loading, error, reload } = useInitiativeOperations()
|
||||
const { initiative, loading, error, reload, steeringSnapshot } = useInitiativeOperations()
|
||||
|
||||
if (loading) {
|
||||
return (
|
||||
@@ -31,6 +32,11 @@ function InitiativeLayoutInner() {
|
||||
)
|
||||
}
|
||||
|
||||
const lifecycleLabel =
|
||||
steeringSnapshot?.lifecycle_label ||
|
||||
LIFECYCLE_LABELS[steeringSnapshot?.lifecycle_state] ||
|
||||
steeringSnapshot?.lifecycle_state
|
||||
|
||||
return (
|
||||
<div className="app-page initiative-layout">
|
||||
<nav className="breadcrumb">
|
||||
@@ -48,6 +54,11 @@ function InitiativeLayoutInner() {
|
||||
<div className="detail-badges">
|
||||
<StatusBadge kind="initiative" status={initiative.status} />
|
||||
<PriorityBadge priority={initiative.priority} />
|
||||
{lifecycleLabel && (
|
||||
<span className="badge status-badge status-active initiative-header-lifecycle">
|
||||
{lifecycleLabel}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
Reference in new issue
Block a user