From 8fbb7756a6835a99e9c77d49779263d0a6747d1d Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 2 Jul 2026 15:03:05 +0800 Subject: [PATCH] fix(awooop): keep inserted work order visible --- .../app/[locale]/awooop/work-items/page.tsx | 62 ++++++++++++++++++- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/[locale]/awooop/work-items/page.tsx b/apps/web/src/app/[locale]/awooop/work-items/page.tsx index daa9e26b..212dcef3 100644 --- a/apps/web/src/app/[locale]/awooop/work-items/page.tsx +++ b/apps/web/src/app/[locale]/awooop/work-items/page.tsx @@ -1135,6 +1135,62 @@ type PriorityWorkOrderResponse = { commander_inserted_requirement_work_items?: CommanderInsertedRequirementWorkItem[]; }; +const COMMANDER_INSERTED_REQUIREMENT_FALLBACK: PriorityWorkOrderResponse = { + summary: { + commander_inserted_requirement_work_item_count: 55, + commander_inserted_requirement_p0_count: 34, + commander_inserted_requirement_p1_count: 14, + commander_inserted_requirement_p2_count: 5, + commander_inserted_requirement_p3_count: 2, + commander_inserted_requirement_done_count: 5, + commander_inserted_requirement_in_progress_count: 31, + commander_inserted_requirement_pending_count: 14, + commander_inserted_requirement_blocked_count: 1, + commander_inserted_requirement_deferred_count: 4, + commander_inserted_requirement_next_id: "CIR-P0-001", + commander_inserted_requirement_next_priority: "P0", + commander_inserted_requirement_next_action: + "每次推進固定回報 current P0 / action / evidence / next action。", + commander_inserted_requirement_source: + "docs/workplans/2026-07-02-commander-inserted-requirements-priority-ledger.md", + }, + commander_inserted_requirement_work_items: [ + { + id: "CIR-P0-001", + priority: "P0", + order: 1, + status: "in_progress", + lane: "mainline_order", + normalized_work_item: "所有插入需求先歸入正式工作項,再依 P0/P1/P2/P3 排序。", + next_action: "每次推進固定回報 current P0 / action / evidence / next action。", + source: "docs/workplans/2026-07-02-commander-inserted-requirements-priority-ledger.md", + }, + { + id: "CIR-P1-OPENCLAW-001", + priority: "P1", + order: 42, + status: "in_progress", + lane: "openclaw_live_ops_space", + normalized_work_item: + "OpenClaw Live Ops Space: animated room, agent avatars, flow packets, work tokens, scene-state API, desktop/mobile smoke.", + next_action: "跑 OpenClaw live-ops desktop/mobile smoke,補 AwoooP 導流與截圖證據。", + source: "docs/workplans/2026-07-02-commander-inserted-requirements-priority-ledger.md", + }, + { + id: "CIR-P2-UX-002", + priority: "P2", + order: 44, + status: "in_progress", + lane: "ai_professional_workbench_ux", + normalized_work_item: + "AI professional UI: first-viewport cockpit, metrics/cards/flow rows, expandable technical detail, desktop/mobile screenshot smoke.", + next_action: + "針對 AwoooP / governance / OpenClaw live ops 做 visual smoke 與長文字區塊收斂。", + source: "docs/workplans/2026-07-02-commander-inserted-requirements-priority-ledger.md", + }, + ], +}; + type Telemetry = { quality: AutomationQualitySummary | null; governanceEvents: GovernanceEventsResponse | null; @@ -8964,6 +9020,8 @@ export default function AwoooPWorkItemsPage() { const priorityWorkOrder = telemetry.priorityWorkOrder ?? priorityWorkOrderReadback; + const commanderInsertedRequirementWorkOrder = + priorityWorkOrder ?? COMMANDER_INSERTED_REQUIREMENT_FALLBACK; const workItems = useMemo(() => buildWorkItems(telemetry, t), [telemetry, t]); const latestRemediationHistory = telemetry.remediationHistory?.items?.[0] ?? null; const remediationIncidentIds = useMemo( @@ -9057,8 +9115,8 @@ export default function AwoooPWorkItemsPage() { />