AP2.2d: B2b Product-Backlog und B3 Sprint-Backlog in UI.
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 2m40s
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 19s
Test Suite / playwright-smoke (push) Successful in 13s
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 2m40s
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 19s
Test Suite / playwright-smoke (push) Successful in 13s
Zeitbox-API im Frontend, Plan/Ausführen Sprint-Ansichten, Backlog-Convert in aktiven Sprint. agile_iteration bei aktiver Zeitbox für continuous_product. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0b57e2ec75
commit
82a5b9adec
27 files changed
+646
-27
No files matched your search
@@ -15,6 +15,8 @@ export function ActionForm({
|
||||
initial = {},
|
||||
projects = [],
|
||||
roadmapItems = [],
|
||||
workCycles = [],
|
||||
activeWorkCycle = null,
|
||||
actors = [],
|
||||
actorsLoading = false,
|
||||
actorsError = null,
|
||||
@@ -37,6 +39,7 @@ export function ActionForm({
|
||||
due_at: form.due_at.value ? new Date(form.due_at.value).toISOString() : null,
|
||||
project_id: form.project_id?.value || undefined,
|
||||
roadmap_item_id: form.roadmap_item_id?.value || undefined,
|
||||
work_cycle_id: form.work_cycle_id?.value || undefined,
|
||||
assigned_actor_ids: selected,
|
||||
})
|
||||
}
|
||||
@@ -44,6 +47,9 @@ export function ActionForm({
|
||||
const defaultActors = initial.assigned_actor_ids || []
|
||||
const leafProjects = getLeafProjects(projects)
|
||||
const projectOptions = flattenLeafProjectOptions(projects)
|
||||
const cycleOptions = workCycles.filter((c) => c.status !== 'completed')
|
||||
const defaultCycleId =
|
||||
initial.work_cycle_id || (activeWorkCycle?.id && !initial.id ? activeWorkCycle.id : '')
|
||||
|
||||
return (
|
||||
<form className="form workspace-form" onSubmit={handleSubmit}>
|
||||
@@ -100,6 +106,20 @@ export function ActionForm({
|
||||
roadmapItems={roadmapItems}
|
||||
defaultValue={initial.roadmap_item_id || ''}
|
||||
/>
|
||||
{cycleOptions.length > 0 && (
|
||||
<label>
|
||||
Sprint / Zeitbox (optional)
|
||||
<select name="work_cycle_id" defaultValue={defaultCycleId}>
|
||||
<option value="">— kein Sprint —</option>
|
||||
{cycleOptions.map((cycle) => (
|
||||
<option key={cycle.id} value={cycle.id}>
|
||||
{cycle.title}
|
||||
{cycle.status === 'active' ? ' (aktiv)' : ''}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
)}
|
||||
<ActorSelect
|
||||
actors={actors}
|
||||
defaultSelected={defaultActors}
|
||||
|
||||
@@ -54,6 +54,8 @@ export function ActionHubCard({
|
||||
initiativeId,
|
||||
projects = [],
|
||||
roadmapItems = [],
|
||||
workCycles = [],
|
||||
activeWorkCycle = null,
|
||||
detailMode = false,
|
||||
}) {
|
||||
const due = formatDue(action.due_at)
|
||||
@@ -66,6 +68,8 @@ export function ActionHubCard({
|
||||
initial={action}
|
||||
projects={projects}
|
||||
roadmapItems={roadmapItems}
|
||||
workCycles={workCycles}
|
||||
activeWorkCycle={activeWorkCycle}
|
||||
actors={actors}
|
||||
actorsLoading={actorsLoading}
|
||||
actorsError={actorsError}
|
||||
|
||||
@@ -11,8 +11,9 @@ const HINTS = {
|
||||
link: { to: '/plan/gates', label: 'Gate-Graph öffnen' },
|
||||
},
|
||||
'initiative.product': {
|
||||
text: 'Product: Eingang triagieren, committete Actions — optional Sprint-Zeitbox.',
|
||||
link: { to: '/plan/inbox', label: 'Zum Eingang' },
|
||||
text: 'Product: Eingang triagieren → committen in Sprint-Backlog (aktive Zeitbox).',
|
||||
link: { to: '/plan/sprint', label: 'Sprint planen' },
|
||||
secondaryLink: { to: '/work/sprint', label: 'Sprint ausführen' },
|
||||
},
|
||||
'initiative.program': {
|
||||
text: 'Programm: Gate-Horizont und Abschluss im Blick behalten.',
|
||||
@@ -30,6 +31,14 @@ export function ArchetypeSteeringHints({ archetypeKey }) {
|
||||
<Link to={scopedPath(hint.link.to)} className="link-inline">
|
||||
{hint.link.label}
|
||||
</Link>
|
||||
{hint.secondaryLink && (
|
||||
<>
|
||||
{' · '}
|
||||
<Link to={scopedPath(hint.secondaryLink.to)} className="link-inline">
|
||||
{hint.secondaryLink.label}
|
||||
</Link>
|
||||
</>
|
||||
)}
|
||||
</p>
|
||||
)
|
||||
}
|
||||
@@ -19,6 +19,8 @@ export function BacklogSection({
|
||||
onConvert,
|
||||
onDelete,
|
||||
busy,
|
||||
sectionTitle = 'Product Backlog',
|
||||
sectionLead = 'Eingang vor dem Commit — triagieren, dann in Arbeitspaket (Sprint) umwandeln.',
|
||||
}) {
|
||||
const [modalMode, setModalMode] = useState(null)
|
||||
const [dragItemId, setDragItemId] = useState('')
|
||||
@@ -106,10 +108,8 @@ export function BacklogSection({
|
||||
<section className="card backlog-section">
|
||||
<div className="section-header">
|
||||
<div>
|
||||
<h2>Backlog</h2>
|
||||
<p className="section-lead muted">
|
||||
Reihenfolge per Drag & Drop (Desktop) oder ↑/↓ (Mobile).
|
||||
</p>
|
||||
<h2>{sectionTitle}</h2>
|
||||
<p className="section-lead muted">{sectionLead}</p>
|
||||
</div>
|
||||
{canManage && (
|
||||
<button
|
||||
|
||||
@@ -7,6 +7,8 @@ export function InitiativeActionsHub({
|
||||
actions,
|
||||
projects = [],
|
||||
roadmapItems = [],
|
||||
workCycles = [],
|
||||
activeWorkCycle = null,
|
||||
actionContextById,
|
||||
hideDone,
|
||||
onHideDoneChange,
|
||||
@@ -27,16 +29,15 @@ export function InitiativeActionsHub({
|
||||
actorsError,
|
||||
actorsUsedFallback,
|
||||
onReloadActors,
|
||||
sectionTitle = 'Arbeitspakete',
|
||||
sectionLead = 'Committete operative Einheit — Aufgaben im Detail. Blocker, Nachweise und Reviews hängen am Arbeitspaket.',
|
||||
}) {
|
||||
return (
|
||||
<section className="card initiative-actions-hub">
|
||||
<div className="section-header">
|
||||
<div>
|
||||
<h2>Arbeitspakete</h2>
|
||||
<p className="section-lead muted">
|
||||
Committete operative Einheit — Aufgaben im Detail. Blocker, Nachweise und Reviews
|
||||
hängen am Arbeitspaket.
|
||||
</p>
|
||||
<h2>{sectionTitle}</h2>
|
||||
<p className="section-lead muted">{sectionLead}</p>
|
||||
</div>
|
||||
<div className="section-actions">
|
||||
<label className="checkbox-label inline-filter">
|
||||
@@ -64,6 +65,8 @@ export function InitiativeActionsHub({
|
||||
<ActionForm
|
||||
projects={projects}
|
||||
roadmapItems={roadmapItems}
|
||||
workCycles={workCycles}
|
||||
activeWorkCycle={activeWorkCycle}
|
||||
actors={actors}
|
||||
actorsLoading={actorsLoading}
|
||||
actorsError={actorsError}
|
||||
@@ -104,6 +107,8 @@ export function InitiativeActionsHub({
|
||||
initiativeId={initiativeId}
|
||||
projects={projects}
|
||||
roadmapItems={roadmapItems}
|
||||
workCycles={workCycles}
|
||||
activeWorkCycle={activeWorkCycle}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -38,6 +38,8 @@ export function PlanActionsSection({
|
||||
onReloadActors,
|
||||
busy,
|
||||
executionGraph = null,
|
||||
sectionTitle = 'Arbeit',
|
||||
sectionLead = 'Committete Arbeitspakete und zugehörige Aufgaben — Ausführung über die Objektseite.',
|
||||
}) {
|
||||
const [showCreate, setShowCreate] = useState(false)
|
||||
const [expandedActions, setExpandedActions] = useState(() => new Set())
|
||||
@@ -73,10 +75,8 @@ export function PlanActionsSection({
|
||||
<section className="card plan-actions-section">
|
||||
<div className="section-header">
|
||||
<div>
|
||||
<h2>Arbeit</h2>
|
||||
<p className="section-lead muted">
|
||||
Committete Arbeitspakete und zugehörige Aufgaben — Ausführung über die Objektseite.
|
||||
</p>
|
||||
<h2>{sectionTitle}</h2>
|
||||
<p className="section-lead muted">{sectionLead}</p>
|
||||
</div>
|
||||
<div className="section-actions">
|
||||
<label className="checkbox-label inline-filter">
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
import { useState } from 'react'
|
||||
import { StatusBadge } from './StatusBadge.jsx'
|
||||
import { EmptyState } from './EmptyState.jsx'
|
||||
|
||||
export function WorkCyclesPanel({
|
||||
workCycles = [],
|
||||
activeWorkCycle = null,
|
||||
canManage,
|
||||
onCreate,
|
||||
onActivate,
|
||||
busy = false,
|
||||
}) {
|
||||
const [title, setTitle] = useState('')
|
||||
const [goal, setGoal] = useState('')
|
||||
const [activateOnCreate, setActivateOnCreate] = useState(true)
|
||||
|
||||
async function handleSubmit(e) {
|
||||
e.preventDefault()
|
||||
const trimmed = title.trim()
|
||||
if (!trimmed) return
|
||||
await onCreate({
|
||||
title: trimmed,
|
||||
goal_description: goal.trim(),
|
||||
status: activateOnCreate ? 'active' : 'planned',
|
||||
})
|
||||
setTitle('')
|
||||
setGoal('')
|
||||
}
|
||||
|
||||
return (
|
||||
<section className="card work-cycles-panel">
|
||||
<div className="section-header">
|
||||
<div>
|
||||
<h2>Sprint / Zeitbox</h2>
|
||||
<p className="section-lead muted">
|
||||
Aktive Zeitbox definiert den Sprint-Backlog — committete Actions mit Zeitbox-Zuweisung
|
||||
erscheinen unter Ausführen → Sprint.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{activeWorkCycle ? (
|
||||
<p className="work-cycle-active-banner">
|
||||
Aktiv: <strong>{activeWorkCycle.title}</strong>
|
||||
{activeWorkCycle.goal_description && (
|
||||
<span className="muted"> — {activeWorkCycle.goal_description}</span>
|
||||
)}
|
||||
{typeof activeWorkCycle.open_action_count === 'number' && (
|
||||
<span className="muted"> ({activeWorkCycle.open_action_count} offene APs)</span>
|
||||
)}
|
||||
</p>
|
||||
) : (
|
||||
<p className="muted">Keine aktive Zeitbox — alle committeten Actions gelten als Product-Ist.</p>
|
||||
)}
|
||||
|
||||
{canManage && (
|
||||
<form className="form inline-form-block" onSubmit={handleSubmit}>
|
||||
<label>
|
||||
Titel
|
||||
<input
|
||||
value={title}
|
||||
onChange={(e) => setTitle(e.target.value)}
|
||||
placeholder="z. B. Iteration R1"
|
||||
maxLength={255}
|
||||
required
|
||||
/>
|
||||
</label>
|
||||
<label>
|
||||
Ziel (optional)
|
||||
<input
|
||||
value={goal}
|
||||
onChange={(e) => setGoal(e.target.value)}
|
||||
placeholder="Sprint-Ziel"
|
||||
/>
|
||||
</label>
|
||||
<label className="checkbox-label">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={activateOnCreate}
|
||||
onChange={(e) => setActivateOnCreate(e.target.checked)}
|
||||
/>
|
||||
Sofort aktivieren
|
||||
</label>
|
||||
<button type="submit" className="btn btn-primary" disabled={busy}>
|
||||
{busy ? 'Anlegen …' : 'Zeitbox anlegen'}
|
||||
</button>
|
||||
</form>
|
||||
)}
|
||||
|
||||
{workCycles.length === 0 ? (
|
||||
<EmptyState message="Noch keine Zeitboxen angelegt." />
|
||||
) : (
|
||||
<ul className="item-list">
|
||||
{workCycles.map((cycle) => (
|
||||
<li key={cycle.id} className="list-item card-list-item work-cycle-row">
|
||||
<div>
|
||||
<strong>{cycle.title}</strong>{' '}
|
||||
<StatusBadge status={cycle.status} />
|
||||
{cycle.goal_description && (
|
||||
<p className="muted item-meta">{cycle.goal_description}</p>
|
||||
)}
|
||||
</div>
|
||||
{canManage && cycle.status !== 'active' && (
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-secondary btn-sm"
|
||||
disabled={busy}
|
||||
onClick={() => onActivate(cycle.id)}
|
||||
>
|
||||
Aktivieren
|
||||
</button>
|
||||
)}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user