AP2.2d: Sprint-Planung, Abschluss und Product-Fallback.
Deploy Development / deploy (push) Successful in 48s
Test Suite / pytest-backend (push) Successful in 2m56s
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 18s
Test Suite / playwright-smoke (push) Has been cancelled

Backlog committet in gewaehlten Sprint, Sprint complete-Endpoint, continuous_product-Ansicht ohne aktiven Sprint.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-12 19:21:49 +02:00
1 parent 09826d146e
commit f6aba94864
11 files changed
+422 -17

No files matched your search

@@ -4,8 +4,11 @@ import { LoadingState } from '../../components/LoadingState.jsx'
export function InitiativeInboxPage() {
const {
initiative,
backlogItems,
roadmapItems,
workCycles,
activeWorkCycle,
capabilities,
formBusy,
error,
@@ -14,6 +17,7 @@ export function InitiativeInboxPage() {
handleUpdateBacklog,
handleReorderBacklog,
handleConvertBacklog,
handleBulkConvertBacklog,
handleDeleteBacklog,
} = useInitiativeOperations()
@@ -25,17 +29,23 @@ export function InitiativeInboxPage() {
return <LoadingState message="Lade Eingang …" />
}
const isProductArchetype = initiative?.archetype_key === 'initiative.product'
return (
<>
{error && <p className="error">{error}</p>}
<BacklogSection
items={backlogItems}
roadmapItems={roadmapItems}
workCycles={workCycles}
activeWorkCycle={activeWorkCycle}
sprintPlanningEnabled={isProductArchetype}
canManage={capabilities.has('kairo.backlog.manage')}
onCreate={handleCreateBacklog}
onUpdate={handleUpdateBacklog}
onReorder={handleReorderBacklog}
onConvert={handleConvertBacklog}
onBulkConvert={handleBulkConvertBacklog}
onDelete={handleDeleteBacklog}
busy={formBusy}
/>
@@ -33,6 +33,7 @@ function PlanSprintInner() {
reloadActors,
handleCreateWorkCycle,
handleActivateWorkCycle,
handleCompleteWorkCycle,
handleCreateAction,
handleUpdateAction,
handleQuickStatus,
@@ -62,6 +63,7 @@ function PlanSprintInner() {
canManage={capabilities.has('kairo.milestone.manage')}
onCreate={handleCreateWorkCycle}
onActivate={handleActivateWorkCycle}
onComplete={handleCompleteWorkCycle}
busy={formBusy}
/>
{activeWorkCycle && (
+55 -9
View File
@@ -41,6 +41,7 @@ function WorkSprintInner() {
initiative,
steeringSnapshot,
steeringSnapshotLoading,
visibleActions,
} = ops
const defaultWorkCycleId = activeWorkCycle?.id || ''
@@ -66,16 +67,61 @@ function WorkSprintInner() {
{error && <p className="error">{error}</p>}
{!activeWorkCycle && isProductArchetype && (
<section className="card">
<EmptyState
message="Kein aktiver Sprint — lege unter Plan → Sprint einen Sprint an und aktiviere ihn."
<>
<section className="card sprint-context-banner">
<h2>Product-Ist (ohne aktiven Sprint)</h2>
<p className="section-lead muted">
Kein aktiver Sprint — Kairo steuert nach{' '}
<strong>continuous_product</strong> (wirkungsvollster Schritt). Sprint-Planung
unter{' '}
<Link to={hrefWithScope('/plan/sprint')} className="link-inline">
Plan → Sprint
</Link>
.
</p>
</section>
<NextActionWidget
scope="initiative"
initiativeId={initiativeId}
items={steeringSnapshot?.next_actions}
loading={steeringSnapshotLoading}
embedded
title="Nächster Schritt (Product)"
subtitle="Empfehlung ohne Sprint-Zeitbox — committete Arbeitspakete im Vorhaben."
/>
<p>
<Link to={hrefWithScope('/plan/sprint')} className="link-inline">
Zur Sprint-Planung
</Link>
</p>
</section>
<InitiativeActionsHub
initiativeId={initiativeId}
actions={visibleActions}
projects={projects}
roadmapItems={roadmapItems}
actionContextById={actionContextById}
hideDone={hideDone}
onHideDoneChange={setHideDone}
showForm={showActionForm}
onToggleForm={() => setShowActionForm((v) => !v)}
editingActionId={editingAction?.id}
onEditAction={setEditingAction}
onCancelEdit={() => setEditingAction(null)}
onCreateAction={handleCreateAction}
onUpdateAction={handleUpdateAction}
onQuickStatus={handleQuickStatus}
onCreateBlockerForAction={handleCreateBlockerForAction}
canManage={capabilities.has('kairo.action.manage')}
canManageBlocker={capabilities.has('kairo.blocker.manage')}
formBusy={formBusy}
actors={actors}
actorsLoading={actorsLoading}
actorsError={actorsError}
actorsUsedFallback={actorsUsedFallback}
onReloadActors={reloadActors}
workCycles={ops.workCycles}
activeWorkCycle={activeWorkCycle}
sectionTitle="Committete Arbeitspakete"
sectionLead="Ohne aktiven Sprint — alle offenen Arbeitspakete im Product-Vorhaben."
/>
</>
)}
{activeWorkCycle && (