feat(A1): Minimum Usability Slice — CadenceInstance, Today-Übung, Gate-Fortschritt
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 4m54s
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 13s
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 4m54s
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 13s
PO No-Go A1 adressieren: Tages-Tracking mit Messnotiz, Work-UI für Übung, Next-Action-Link, Gate-Fortschritt in Kontrolle, Eingang aus A1-Nav entfernt. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0baa5952bc
commit
b7d88ce24a
25 files changed
+936
-31
No files matched your search
@@ -37,6 +37,7 @@ export function InitiativeCompositionSurface({
|
||||
uiFeatures: ops.uiFeatures,
|
||||
dataSlices: ops.dataSlices,
|
||||
onAcceptBacklogProposal,
|
||||
refreshOm: ops.refreshOm,
|
||||
}),
|
||||
[
|
||||
ops.initiativeId,
|
||||
@@ -53,6 +54,7 @@ export function InitiativeCompositionSurface({
|
||||
ops.uiFeatures,
|
||||
ops.dataSlices,
|
||||
onAcceptBacklogProposal,
|
||||
ops.refreshOm,
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -78,6 +78,16 @@ export const COMPOSITION_PROVIDERS = [
|
||||
scopeTypes: ['initiative'],
|
||||
order: 16,
|
||||
},
|
||||
{
|
||||
key: 'work.practice.today',
|
||||
kind: 'steering_element',
|
||||
steeringElement: 'recurring_rhythm',
|
||||
slotKeys: ['work.today.primary'],
|
||||
componentKey: 'WorkTodayPracticePanel',
|
||||
requiresCapability: 'kairo.recurring.read',
|
||||
scopeTypes: ['initiative'],
|
||||
order: 5,
|
||||
},
|
||||
{
|
||||
key: 'steering.next_action',
|
||||
kind: 'steering_element',
|
||||
|
||||
@@ -7,6 +7,7 @@ import { RecurringRhythmPanel } from '../components/RecurringRhythmPanel.jsx'
|
||||
import { AgentSlotsPanel } from '../components/AgentSlotsPanel.jsx'
|
||||
import { SteeringProposalsPanel } from '../components/SteeringProposalsPanel.jsx'
|
||||
import { NextActionWidget } from '../widgets/NextActionWidget.jsx'
|
||||
import { WorkTodayPracticePanel } from '../components/WorkTodayPracticePanel.jsx'
|
||||
import { WorkActionsPanel } from './WorkActionsPanel.jsx'
|
||||
|
||||
/** Roadblocker-Strip — extrahiert aus InitiativeOverviewPage für Composition. */
|
||||
@@ -45,6 +46,7 @@ export const PROVIDER_COMPONENTS = {
|
||||
RoadblockersStrip,
|
||||
WidgetHost,
|
||||
WorkActionsPanel,
|
||||
WorkTodayPracticePanel,
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -201,6 +201,18 @@ export function buildProviderProps(provider, input) {
|
||||
initiativeId: ops.initiativeId,
|
||||
recurringItems: ops.recurringItems || [],
|
||||
}
|
||||
case 'WorkTodayPracticePanel':
|
||||
return {
|
||||
initiativeId: ops.initiativeId,
|
||||
recurringItems: ops.recurringItems || [],
|
||||
canManage: capabilities.has('kairo.recurring.manage'),
|
||||
busy: ops.formBusy,
|
||||
onCompleted: async () => {
|
||||
if (typeof ops.refreshOm === 'function') {
|
||||
await ops.refreshOm(['recurring', 'steering_snapshot'])
|
||||
}
|
||||
},
|
||||
}
|
||||
case 'NextActionWidget': {
|
||||
const nextActionUi = resolveNextActionUi(elements, input.steeringSnapshot)
|
||||
return {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { COMPOSITION_PROVIDERS } from './compositionProviders.js'
|
||||
import {
|
||||
resolveSteeringComposition,
|
||||
@@ -265,19 +265,39 @@ describe('resolveSteeringComposition', () => {
|
||||
const result = resolveSteeringComposition({
|
||||
surfaceKey: 'work.today',
|
||||
scope: 'initiative',
|
||||
capabilities: CAPS,
|
||||
steeringElements: ['next_action_primary', 'critical_path'],
|
||||
capabilities: new Set([...CAPS, 'kairo.recurring.read']),
|
||||
steeringElements: ['next_action_primary', 'recurring_rhythm', 'critical_path'],
|
||||
steeringSnapshot: { counts: {}, next_actions: [{ kind: 'action', title: 'X' }] },
|
||||
opsContext: { initiativeId: 'init-1' },
|
||||
})
|
||||
expect(result.slots['work.today.primary']?.some((p) => p.key === 'steering.next_action')).toBe(
|
||||
true,
|
||||
)
|
||||
expect(result.slots['work.today.primary']?.some((p) => p.key === 'work.practice.today')).toBe(
|
||||
true,
|
||||
)
|
||||
expect(result.slots['work.today.actions']?.some((p) => p.key === 'work.actions.today')).toBe(
|
||||
true,
|
||||
)
|
||||
})
|
||||
|
||||
it('buildProviderProps wires WorkTodayPracticePanel complete refresh', async () => {
|
||||
const provider = COMPOSITION_PROVIDERS.find((p) => p.key === 'work.practice.today')
|
||||
const refreshOm = vi.fn().mockResolvedValue(undefined)
|
||||
const props = buildProviderProps(provider, {
|
||||
opsContext: {
|
||||
initiativeId: 'init-1',
|
||||
recurringItems: [{ id: 'rec-1', status: 'active', title: 'Spagat' }],
|
||||
formBusy: false,
|
||||
refreshOm,
|
||||
},
|
||||
capabilities: new Set([...CAPS, 'kairo.recurring.read', 'kairo.recurring.manage']),
|
||||
})
|
||||
expect(props.canManage).toBe(true)
|
||||
await props.onCompleted()
|
||||
expect(refreshOm).toHaveBeenCalledWith(['recurring', 'steering_snapshot'])
|
||||
})
|
||||
|
||||
it('activates sprint backlog provider when active work cycle', () => {
|
||||
const result = resolveSteeringComposition({
|
||||
surfaceKey: 'work.sprint',
|
||||
|
||||
Reference in new issue
Block a user