fix: Sprint-Planung einsehbar und Eingang ohne Voll-Reload.
Deploy Development / deploy (push) Successful in 52s
Test Suite / pytest-backend (push) Successful in 2m46s
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) Successful in 12s
Deploy Development / deploy (push) Successful in 52s
Test Suite / pytest-backend (push) Successful in 2m46s
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) Successful in 12s
Geplante Sprints in Plan anwaehlbar, lokales Update beim Commit, Sprint-Auswahl bleibt erhalten. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
c19b6296ed
commit
e221b5b09f
8 files changed
+269
-70
No files matched your search
@@ -5,6 +5,7 @@ import { LoadingState } from '../../components/LoadingState.jsx'
|
||||
export function InitiativeInboxPage() {
|
||||
const {
|
||||
initiative,
|
||||
initiativeId,
|
||||
backlogItems,
|
||||
roadmapItems,
|
||||
workCycles,
|
||||
@@ -25,7 +26,7 @@ export function InitiativeInboxPage() {
|
||||
return null
|
||||
}
|
||||
|
||||
if (loading) {
|
||||
if (loading && initiative === null) {
|
||||
return <LoadingState message="Lade Eingang …" />
|
||||
}
|
||||
|
||||
@@ -36,6 +37,7 @@ export function InitiativeInboxPage() {
|
||||
{error && <p className="error">{error}</p>}
|
||||
<BacklogSection
|
||||
items={backlogItems}
|
||||
initiativeId={initiativeId}
|
||||
roadmapItems={roadmapItems}
|
||||
workCycles={workCycles}
|
||||
activeWorkCycle={activeWorkCycle}
|
||||
|
||||
@@ -5,14 +5,19 @@ import { WorkCyclesPanel } from '../../components/WorkCyclesPanel.jsx'
|
||||
import { InitiativeActionsHub } from '../../components/InitiativeActionsHub.jsx'
|
||||
import { LoadingState } from '../../components/LoadingState.jsx'
|
||||
import { useInitiativeOperations } from '../../context/InitiativeOperationsContext.jsx'
|
||||
import { countActionsByWorkCycle } from '../../utils/workCycleActions.js'
|
||||
|
||||
function PlanSprintInner() {
|
||||
const ops = useInitiativeOperations()
|
||||
const {
|
||||
initiativeId,
|
||||
activeWorkCycle,
|
||||
selectedWorkCycleId,
|
||||
setSelectedWorkCycleId,
|
||||
selectedWorkCycle,
|
||||
selectedSprintActions,
|
||||
workCycles,
|
||||
sprintActions,
|
||||
actions,
|
||||
projects,
|
||||
roadmapItems,
|
||||
capabilities,
|
||||
@@ -40,17 +45,28 @@ function PlanSprintInner() {
|
||||
handleCreateBlockerForAction,
|
||||
} = ops
|
||||
|
||||
const actionCountByCycleId = useMemo(
|
||||
() => countActionsByWorkCycle(actions, { hideDone }),
|
||||
[actions, hideDone],
|
||||
)
|
||||
|
||||
const createSprintAction = useMemo(
|
||||
() => async (payload) => {
|
||||
await handleCreateAction({
|
||||
...payload,
|
||||
work_cycle_id: payload.work_cycle_id || activeWorkCycle?.id || undefined,
|
||||
work_cycle_id: payload.work_cycle_id || selectedWorkCycleId || activeWorkCycle?.id || undefined,
|
||||
})
|
||||
},
|
||||
[handleCreateAction, activeWorkCycle?.id],
|
||||
[handleCreateAction, selectedWorkCycleId, activeWorkCycle?.id],
|
||||
)
|
||||
|
||||
if (loading) {
|
||||
const sprintLead = selectedWorkCycle
|
||||
? selectedWorkCycle.status === 'active'
|
||||
? `Aktiver Sprint „${selectedWorkCycle.title}" — committet aus Eingang oder direkt hier.`
|
||||
: `Geplanter Sprint „${selectedWorkCycle.title}" — Arbeitspakete aus dem Eingang erscheinen hier nach dem Commit.`
|
||||
: 'Wähle einen Sprint in der Liste.'
|
||||
|
||||
if (loading && workCycles.length === 0) {
|
||||
return <LoadingState message="Lade Sprint-Planung …" />
|
||||
}
|
||||
|
||||
@@ -60,16 +76,19 @@ function PlanSprintInner() {
|
||||
<WorkCyclesPanel
|
||||
workCycles={workCycles}
|
||||
activeWorkCycle={activeWorkCycle}
|
||||
selectedSprintId={selectedWorkCycleId}
|
||||
actionCountByCycleId={actionCountByCycleId}
|
||||
canManage={capabilities.has('kairo.milestone.manage')}
|
||||
onCreate={handleCreateWorkCycle}
|
||||
onActivate={handleActivateWorkCycle}
|
||||
onComplete={handleCompleteWorkCycle}
|
||||
onSelectSprint={setSelectedWorkCycleId}
|
||||
busy={formBusy}
|
||||
/>
|
||||
{activeWorkCycle && (
|
||||
{selectedWorkCycleId && selectedWorkCycle && (
|
||||
<InitiativeActionsHub
|
||||
initiativeId={initiativeId}
|
||||
actions={sprintActions}
|
||||
actions={selectedSprintActions}
|
||||
projects={projects}
|
||||
roadmapItems={roadmapItems}
|
||||
actionContextById={actionContextById}
|
||||
@@ -93,9 +112,9 @@ function PlanSprintInner() {
|
||||
actorsUsedFallback={actorsUsedFallback}
|
||||
onReloadActors={reloadActors}
|
||||
workCycles={workCycles}
|
||||
activeWorkCycle={activeWorkCycle}
|
||||
sectionTitle="Sprint-Backlog"
|
||||
sectionLead="Arbeitspakete im aktiven Sprint — committet aus dem Product Backlog (Eingang) oder direkt hier."
|
||||
activeWorkCycle={selectedWorkCycle}
|
||||
sectionTitle={`Sprint-Backlog — ${selectedWorkCycle.title}`}
|
||||
sectionLead={sprintLead}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user