AP1.9d: Methoden-Default-UI und Product Language für Product-Flow.
Test Suite / lint-backend (push) Waiting to run
Test Suite / compose-smoke (push) Waiting to run
Test Suite / k6 /api/health Baseline (push) Blocked by required conditions
Test Suite / playwright-smoke (push) Blocked by required conditions
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Has been cancelled
Test Suite / lint-backend (push) Waiting to run
Test Suite / compose-smoke (push) Waiting to run
Test Suite / k6 /api/health Baseline (push) Blocked by required conditions
Test Suite / playwright-smoke (push) Blocked by required conditions
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Has been cancelled
Prozessleiste, archetypgebundene Modus-Defaults und Sprint/Arbeitspaket-Begriffe schließen den GUI-Kern für continuous_product vor Sprint-Planungs-Flows. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
82a5b9adec
commit
09826d146e
20 files changed
+796
-55
No files matched your search
@@ -108,7 +108,7 @@ export function ActionForm({
|
||||
/>
|
||||
{cycleOptions.length > 0 && (
|
||||
<label>
|
||||
Sprint / Zeitbox (optional)
|
||||
Sprint (optional)
|
||||
<select name="work_cycle_id" defaultValue={defaultCycleId}>
|
||||
<option value="">— kein Sprint —</option>
|
||||
{cycleOptions.map((cycle) => (
|
||||
|
||||
@@ -11,7 +11,7 @@ const HINTS = {
|
||||
link: { to: '/plan/gates', label: 'Gate-Graph öffnen' },
|
||||
},
|
||||
'initiative.product': {
|
||||
text: 'Product: Eingang triagieren → committen in Sprint-Backlog (aktive Zeitbox).',
|
||||
text: 'Product: Eingang triagieren → in Sprint-Backlog committen.',
|
||||
link: { to: '/plan/sprint', label: 'Sprint planen' },
|
||||
secondaryLink: { to: '/work/sprint', label: 'Sprint ausführen' },
|
||||
},
|
||||
|
||||
@@ -188,7 +188,7 @@ export function BacklogSection({
|
||||
onClick={() => onConvert(item.id)}
|
||||
disabled={busy}
|
||||
>
|
||||
In Maßnahme umwandeln
|
||||
In Arbeitspaket umwandeln
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
import { NavLink, useLocation } from 'react-router-dom'
|
||||
import { useProgramScope } from '../context/ProgramScopeContext.jsx'
|
||||
import { useMethodUiContext } from '../hooks/useMethodUiContext.js'
|
||||
import { resolveActiveProcessStepKey } from '../config/methodUiDefaults.js'
|
||||
|
||||
export function MethodProcessBar() {
|
||||
const location = useLocation()
|
||||
const { initiativeId, hrefWithScope } = useProgramScope()
|
||||
const { processSteps, archetypeKey, loading } = useMethodUiContext()
|
||||
|
||||
if (!initiativeId || loading || processSteps.length === 0) {
|
||||
return null
|
||||
}
|
||||
|
||||
const activeKey = resolveActiveProcessStepKey(location.pathname, processSteps)
|
||||
|
||||
return (
|
||||
<nav
|
||||
className="method-process-bar"
|
||||
aria-label={`Prozess — ${archetypeKey || 'Vorhaben'}`}
|
||||
>
|
||||
<ol className="method-process-bar__steps">
|
||||
{processSteps.map((step, index) => {
|
||||
const isActive = activeKey === step.key
|
||||
return (
|
||||
<li
|
||||
key={step.key}
|
||||
className={
|
||||
'method-process-bar__step' +
|
||||
(isActive ? ' method-process-bar__step--active' : '')
|
||||
}
|
||||
>
|
||||
{index > 0 && (
|
||||
<span className="method-process-bar__sep" aria-hidden="true">
|
||||
→
|
||||
</span>
|
||||
)}
|
||||
<NavLink
|
||||
to={hrefWithScope(step.to)}
|
||||
className={({ isActive: routerActive }) =>
|
||||
'method-process-bar__link' +
|
||||
(routerActive || isActive ? ' method-process-bar__link--active' : '')
|
||||
}
|
||||
>
|
||||
{step.label}
|
||||
</NavLink>
|
||||
</li>
|
||||
)
|
||||
})}
|
||||
</ol>
|
||||
</nav>
|
||||
)
|
||||
}
|
||||
@@ -8,11 +8,13 @@ import { useProgramScope } from '../context/ProgramScopeContext.jsx'
|
||||
import { buildProjectsByParent } from '../utils/projectTree.js'
|
||||
import { projectPath } from '../utils/routes.js'
|
||||
import {
|
||||
PLAN_OUTLINE_NODES,
|
||||
resolvePlanOutlineActiveKey,
|
||||
resolvePlanOutlineProjectId,
|
||||
resolvePlanOutlineActionId,
|
||||
} from '../plan/planOutlineNodes.js'
|
||||
import { resolvePlanOutlineNodes } from '../config/methodUiDefaults.js'
|
||||
import { getInitiative } from '../api/initiatives.js'
|
||||
import { getActiveWorkCycle } from '../api/workCycles.js'
|
||||
import { PlanOutlineWorkTree } from './PlanOutlineWorkTree.jsx'
|
||||
|
||||
function PlanOutlineProjectTree({ projects, parentId, activeProjectId, depth = 0 }) {
|
||||
@@ -60,6 +62,8 @@ export function PlanOutlineNav() {
|
||||
const [projects, setProjects] = useState([])
|
||||
const [openActions, setOpenActions] = useState([])
|
||||
const [executionGraph, setExecutionGraph] = useState(null)
|
||||
const [archetypeKey, setArchetypeKey] = useState(null)
|
||||
const [hasActiveSprint, setHasActiveSprint] = useState(false)
|
||||
const [structureOpen, setStructureOpen] = useState(
|
||||
activeKey === 'structure' || Boolean(activeProjectId),
|
||||
)
|
||||
@@ -75,6 +79,42 @@ export function PlanOutlineNav() {
|
||||
setWorkOpen(activeKey === 'work' || Boolean(activeActionId))
|
||||
}, [activeKey, activeActionId])
|
||||
|
||||
useEffect(() => {
|
||||
if (!initiativeId) {
|
||||
setArchetypeKey(null)
|
||||
setHasActiveSprint(false)
|
||||
return undefined
|
||||
}
|
||||
let cancelled = false
|
||||
Promise.all([
|
||||
getInitiative(initiativeId),
|
||||
getActiveWorkCycle(initiativeId).catch(() => null),
|
||||
])
|
||||
.then(([initiative, activeCycle]) => {
|
||||
if (cancelled) return
|
||||
setArchetypeKey(initiative?.archetype_key || null)
|
||||
setHasActiveSprint(Boolean(activeCycle?.id))
|
||||
})
|
||||
.catch(() => {
|
||||
if (!cancelled) {
|
||||
setArchetypeKey(null)
|
||||
setHasActiveSprint(false)
|
||||
}
|
||||
})
|
||||
return () => {
|
||||
cancelled = true
|
||||
}
|
||||
}, [initiativeId])
|
||||
|
||||
const outlineNodes = useMemo(
|
||||
() =>
|
||||
resolvePlanOutlineNodes({
|
||||
archetypeKey,
|
||||
hasActiveSprint,
|
||||
}),
|
||||
[archetypeKey, hasActiveSprint],
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
if (!initiativeId) {
|
||||
setProjects([])
|
||||
@@ -149,7 +189,7 @@ export function PlanOutlineNav() {
|
||||
</div>
|
||||
|
||||
<ul className="analysis-split__nav-list">
|
||||
{PLAN_OUTLINE_NODES.map((node) => {
|
||||
{outlineNodes.map((node) => {
|
||||
const needsInitiative = node.requiresInitiative && !initiativeId
|
||||
const isDisabled = node.disabled || needsInitiative
|
||||
const isStructure = node.key === 'structure'
|
||||
|
||||
@@ -148,7 +148,7 @@ export function SteeringSnapshotPanel({
|
||||
|
||||
{active_work_cycle && (
|
||||
<p className="steering-work-cycle-row">
|
||||
<span className="muted">Aktive Zeitbox: </span>
|
||||
<span className="muted">Aktiver Sprint: </span>
|
||||
<strong>{active_work_cycle.title}</strong>
|
||||
{active_work_cycle.goal_description && (
|
||||
<span className="steering-method-description muted">
|
||||
|
||||
@@ -31,10 +31,10 @@ export function WorkCyclesPanel({
|
||||
<section className="card work-cycles-panel">
|
||||
<div className="section-header">
|
||||
<div>
|
||||
<h2>Sprint / Zeitbox</h2>
|
||||
<h2>Sprint</h2>
|
||||
<p className="section-lead muted">
|
||||
Aktive Zeitbox definiert den Sprint-Backlog — committete Actions mit Zeitbox-Zuweisung
|
||||
erscheinen unter Ausführen → Sprint.
|
||||
Der aktive Sprint definiert den Sprint-Backlog — committete Arbeitspakete mit
|
||||
Sprint-Zuweisung erscheinen unter Ausführen → Sprint.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -50,7 +50,7 @@ export function WorkCyclesPanel({
|
||||
)}
|
||||
</p>
|
||||
) : (
|
||||
<p className="muted">Keine aktive Zeitbox — alle committeten Actions gelten als Product-Ist.</p>
|
||||
<p className="muted">Kein aktiver Sprint — committete Arbeitspakete gelten als Product-Ist.</p>
|
||||
)}
|
||||
|
||||
{canManage && (
|
||||
@@ -82,13 +82,13 @@ export function WorkCyclesPanel({
|
||||
Sofort aktivieren
|
||||
</label>
|
||||
<button type="submit" className="btn btn-primary" disabled={busy}>
|
||||
{busy ? 'Anlegen …' : 'Zeitbox anlegen'}
|
||||
{busy ? 'Anlegen …' : 'Sprint anlegen'}
|
||||
</button>
|
||||
</form>
|
||||
)}
|
||||
|
||||
{workCycles.length === 0 ? (
|
||||
<EmptyState message="Noch keine Zeitboxen angelegt." />
|
||||
<EmptyState message="Noch keine Sprints angelegt." />
|
||||
) : (
|
||||
<ul className="item-list">
|
||||
{workCycles.map((cycle) => (
|
||||
|
||||
Reference in new issue
Block a user