|
2 | 2 |
|
3 | 3 | ## Tasks |
4 | 4 |
|
5 | | -- [ ] 1. Lock `/tasks` workbench tab behavior with tests |
6 | | - - [ ] 1.1 Add or update a `/tasks` page test that renders `TasksPage` with desktop viewport state. |
7 | | - - [ ] 1.2 Mock `OfficeWorkflowFlowPanel`, `OfficeAgentInspectorPanel`, `OfficeMemoryReportsPanel`, and `OfficeWorkflowHistoryPanel` with visible test ids. |
8 | | - - [ ] 1.3 Assert the page contains tab triggers for `任务`, `团队流`, `Agent`, `记忆`, and `历史`. |
9 | | - - [ ] 1.4 Assert the page does not contain a `发起` tab trigger. |
10 | | - - [ ] 1.5 Assert the task tab renders `TasksCockpitDetail`. |
11 | | - - [ ] 1.6 Run the page test with `npx vitest run --pool=forks --poolOptions.forks.singleFork <test-path>` and confirm it fails before implementation. |
| 5 | +- [x] 1. Lock `/tasks` workbench tab behavior with tests |
| 6 | + - [x] 1.1 Add or update a `/tasks` page test that renders `TasksPage` with desktop viewport state. |
| 7 | + - [x] 1.2 Mock `OfficeWorkflowFlowPanel`, `OfficeAgentInspectorPanel`, `OfficeMemoryReportsPanel`, and `OfficeWorkflowHistoryPanel` with visible test ids. |
| 8 | + - [x] 1.3 Assert the page contains tab triggers for `任务`, `团队流`, `Agent`, `记忆`, and `历史`. |
| 9 | + - [x] 1.4 Assert the page does not contain a `发起` tab trigger. |
| 10 | + - [x] 1.5 Assert the task tab renders `TasksCockpitDetail`. |
| 11 | + - [x] 1.6 Run the page test with `npx vitest run --pool=forks --poolOptions.forks.singleFork <test-path>` and confirm it fails before implementation. |
12 | 12 |
|
13 | | -- [ ] 2. Add the task center workbench tabs |
14 | | - - [ ] 2.1 In `client/src/pages/tasks/TasksPage.tsx`, add local active-tab state for `task`, `flow`, `agent`, `memory`, and `history`. |
15 | | - - [ ] 2.2 Add a `Tabs` shell around the main task content. |
16 | | - - [ ] 2.3 Render `TasksCockpitDetail` in the `task` tab. |
17 | | - - [ ] 2.4 Render `OfficeWorkflowFlowPanel` in the `flow` tab. |
18 | | - - [ ] 2.5 Render `OfficeAgentInspectorPanel` or an explicit empty state in the `agent` tab. |
19 | | - - [ ] 2.6 Render `OfficeMemoryReportsPanel` in the `memory` tab. |
20 | | - - [ ] 2.7 Render `OfficeWorkflowHistoryPanel` in the `history` tab. |
21 | | - - [ ] 2.8 Do not render a `launch` tab or trigger on `/tasks`. |
| 13 | +- [x] 2. Add the task center workbench tabs |
| 14 | + - [x] 2.1 In `client/src/pages/tasks/TasksPage.tsx`, add local active-tab state for `task`, `flow`, `agent`, `memory`, and `history`. |
| 15 | + - [x] 2.2 Add a `Tabs` shell around the main task content. |
| 16 | + - [x] 2.3 Render `TasksCockpitDetail` in the `task` tab. |
| 17 | + - [x] 2.4 Render `OfficeWorkflowFlowPanel` in the `flow` tab. |
| 18 | + - [x] 2.5 Render `OfficeAgentInspectorPanel` or an explicit empty state in the `agent` tab. |
| 19 | + - [x] 2.6 Render `OfficeMemoryReportsPanel` in the `memory` tab. |
| 20 | + - [x] 2.7 Render `OfficeWorkflowHistoryPanel` in the `history` tab. |
| 21 | + - [x] 2.8 Do not render a `launch` tab or trigger on `/tasks`. |
22 | 22 |
|
23 | | -- [ ] 3. Wire workflow context into `/tasks` |
24 | | - - [ ] 3.1 Import and use `useWorkflowStore` in `TasksPage`. |
25 | | - - [ ] 3.2 Resolve the active workflow for the selected task using existing office utilities. |
26 | | - - [ ] 3.3 Preserve task selection when workflow history selects a mission. |
27 | | - - [ ] 3.4 Disable or show empty states for tabs whose data is not available. |
| 23 | +- [x] 3. Wire workflow context into `/tasks` |
| 24 | + - [x] 3.1 Import and use `useWorkflowStore` in `TasksPage`. |
| 25 | + - [x] 3.2 Resolve the active workflow for the selected task using existing office utilities. |
| 26 | + - [x] 3.3 Preserve task selection when workflow history selects a mission. |
| 27 | + - [x] 3.4 Disable or show empty states for tabs whose data is not available. |
28 | 28 |
|
29 | | -- [ ] 4. Preserve width and detail behavior |
30 | | - - [ ] 4.1 Keep the existing `RightInfoPanel` full-width behavior in `/tasks`. |
31 | | - - [ ] 4.2 Keep the `TasksCockpitDetail` full-detail dialog behavior. |
32 | | - - [ ] 4.3 Run `client/src/components/tasks/__tests__/TasksCockpitDetail.test.tsx` and `client/src/components/tasks/__tests__/RightInfoPanel.test.tsx`. |
| 29 | +- [x] 4. Preserve width and detail behavior |
| 30 | + - [x] 4.1 Keep the existing `RightInfoPanel` full-width behavior in `/tasks`. |
| 31 | + - [x] 4.2 Keep the `TasksCockpitDetail` full-detail dialog behavior. |
| 32 | + - [x] 4.3 Run `client/src/components/tasks/__tests__/TasksCockpitDetail.test.tsx` and `client/src/components/tasks/__tests__/RightInfoPanel.test.tsx`. |
33 | 33 |
|
34 | 34 | - [ ] 5. Verify task center |
35 | | - - [ ] 5.1 Run the new `/tasks` tests. |
36 | | - - [ ] 5.2 Run the UI targeted suite that covers `TasksQueueRail`, `TasksCockpitDetail`, `RightInfoPanel`, and `App.shell-layout`. |
| 35 | + - [x] 5.1 Run the new `/tasks` tests. |
| 36 | + - [x] 5.2 Run the UI targeted suite that covers `TasksQueueRail`, `TasksCockpitDetail`, `RightInfoPanel`, and `App.shell-layout`. |
37 | 37 | - [ ] 5.3 Manually inspect `http://localhost:3000/tasks` and confirm no `发起` tab is visible. |
0 commit comments