AP1.2c: IA-Skeleton — Workspace-Portfolio, Initiative-Übersicht, Unterseiten
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 1m26s
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 17s
Test Suite / playwright-smoke (push) Successful in 12s
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 1m26s
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 17s
Test Suite / playwright-smoke (push) Successful in 12s
Neue Navigation: Steuerung/Plan/Ausführung/Eingang/Journey. InitiativeOperationsContext, Action-Detail-Route, NextActionWidget portfolio/initiative, Portfolio-Widget auf Workspace. Omnibus InitiativeDetail entfernt. Version 0.12.0-ap1.2c.
This commit is contained in:
1 parent
2796965aed
commit
687aad6cbd
23 files changed
+1171
-265
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import { ACTION_STATUSES, ACTION_STATUS_LABELS } from '../constants/status.js'
|
||||
import { StatusBadge } from './StatusBadge.jsx'
|
||||
import { PriorityBadge } from './PriorityBadge.jsx'
|
||||
@@ -49,6 +50,8 @@ export function ActionHubCard({
|
||||
actorsError,
|
||||
actorsUsedFallback,
|
||||
onReloadActors,
|
||||
initiativeId,
|
||||
detailMode = false,
|
||||
}) {
|
||||
const due = formatDue(action.due_at)
|
||||
const isBlocked = action.status === 'blocked' || context?.has_open_blocker
|
||||
@@ -166,6 +169,14 @@ export function ActionHubCard({
|
||||
>
|
||||
Bearbeiten
|
||||
</button>
|
||||
{initiativeId && !detailMode && (
|
||||
<Link
|
||||
to={`/initiatives/${initiativeId}/actions/${action.id}`}
|
||||
className="btn btn-secondary btn-sm"
|
||||
>
|
||||
Details
|
||||
</Link>
|
||||
)}
|
||||
</footer>
|
||||
)}
|
||||
</article>
|
||||
|
||||
@@ -3,6 +3,7 @@ import { ActionForm } from './ActionForm.jsx'
|
||||
import { EmptyState } from './EmptyState.jsx'
|
||||
|
||||
export function InitiativeActionsHub({
|
||||
initiativeId,
|
||||
actions,
|
||||
actionContextById,
|
||||
hideDone,
|
||||
@@ -95,6 +96,7 @@ export function InitiativeActionsHub({
|
||||
actorsError={actorsError}
|
||||
actorsUsedFallback={actorsUsedFallback}
|
||||
onReloadActors={onReloadActors}
|
||||
initiativeId={initiativeId}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
|
||||
const AREAS = [
|
||||
{
|
||||
to: 'plan',
|
||||
title: 'Plan',
|
||||
description: 'Meilensteine und Roadmap — überprüfbare Zielpunkte pflegen.',
|
||||
},
|
||||
{
|
||||
to: 'execution',
|
||||
title: 'Ausführung',
|
||||
description: 'Arbeitspakete, Zuweisungen, Blocker am Objekt.',
|
||||
},
|
||||
{
|
||||
to: 'inbox',
|
||||
title: 'Eingang',
|
||||
description: 'Backlog triagieren und in Arbeitspakete überführen.',
|
||||
},
|
||||
{
|
||||
to: 'journey',
|
||||
title: 'Nachvollziehbarkeit',
|
||||
description: 'Entscheidungen, Reviews, Nachweise über die Zeit.',
|
||||
},
|
||||
]
|
||||
|
||||
export function InitiativeNavCards({ initiativeId, counts = {} }) {
|
||||
return (
|
||||
<section className="initiative-nav-cards">
|
||||
<h2 className="initiative-nav-cards-title">Pflege & Planung</h2>
|
||||
<div className="initiative-nav-cards-grid">
|
||||
{AREAS.map((area) => {
|
||||
const hint =
|
||||
area.to === 'inbox' && counts.backlog
|
||||
? `${counts.backlog} Backlog`
|
||||
: area.to === 'execution' && counts.actionsOpen
|
||||
? `${counts.actionsOpen} offen`
|
||||
: area.to === 'plan' && counts.milestones
|
||||
? `${counts.milestones} Meilensteine`
|
||||
: null
|
||||
return (
|
||||
<Link
|
||||
key={area.to}
|
||||
to={`/initiatives/${initiativeId}/${area.to}`}
|
||||
className="initiative-nav-card card"
|
||||
>
|
||||
<h3>{area.title}</h3>
|
||||
<p className="muted">{area.description}</p>
|
||||
{hint && <span className="initiative-nav-card-hint">{hint}</span>}
|
||||
</Link>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { NavLink, useParams } from 'react-router-dom'
|
||||
|
||||
const TABS = [
|
||||
{ to: '', label: 'Steuerung', end: true },
|
||||
{ to: 'plan', label: 'Plan' },
|
||||
{ to: 'execution', label: 'Ausführung' },
|
||||
{ to: 'inbox', label: 'Eingang' },
|
||||
{ to: 'journey', label: 'Nachvollziehbarkeit' },
|
||||
]
|
||||
|
||||
export function InitiativeSubNav() {
|
||||
const { id } = useParams()
|
||||
const base = `/initiatives/${id}`
|
||||
|
||||
return (
|
||||
<nav className="initiative-subnav" aria-label="Vorhaben-Bereiche">
|
||||
{TABS.map((tab) => (
|
||||
<NavLink
|
||||
key={tab.to || 'overview'}
|
||||
to={tab.to ? `${base}/${tab.to}` : base}
|
||||
end={tab.end}
|
||||
className={({ isActive }) =>
|
||||
`initiative-subnav-link${isActive ? ' initiative-subnav-link--active' : ''}`
|
||||
}
|
||||
>
|
||||
{tab.label}
|
||||
</NavLink>
|
||||
))}
|
||||
</nav>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user