Skip to content

Commit 49127a8

Browse files
committed
Refine office launch cockpit and loading screen
1 parent cada0d1 commit 49127a8

27 files changed

Lines changed: 1807 additions & 1272 deletions

.kiro/specs/ui-redesign-composer-only-center-input/tasks.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
## Tasks
44

55
- [ ] 1. Lock composer-only center expectations with tests
6-
- [ ] 1.1 Update `OfficeTaskCockpit.test.tsx` to assert exactly one `UnifiedLaunchComposer`.
7-
- [ ] 1.2 Add an assertion that the default center does not render a large autopilot guidance panel.
8-
- [ ] 1.3 Add or update launch tests so key composer actions remain visible.
6+
- [x] 1.1 Update `OfficeTaskCockpit.test.tsx` to assert exactly one `UnifiedLaunchComposer`.
7+
- [x] 1.2 Add an assertion that the default center does not render a large autopilot guidance panel.
8+
- [x] 1.3 Add or update launch tests so key composer actions remain visible.
99
- [ ] 1.4 Run the targeted tests and confirm the large-panel absence assertion fails before implementation if the panel is still present.
1010

11-
- [ ] 2. Simplify the center composer stack
12-
- [ ] 2.1 In `OfficeTaskCockpit.tsx`, keep the composer in the center-bottom launcher stage.
13-
- [ ] 2.2 Remove default center rendering of non-composer autopilot guidance.
14-
- [ ] 2.3 Keep temporary clarification rendering above the composer only when `currentDialog` exists.
15-
- [ ] 2.4 Keep pending-launch status compact and avoid a large default panel.
11+
- [x] 2. Simplify the center composer stack
12+
- [x] 2.1 In `OfficeTaskCockpit.tsx`, keep the composer in the center-bottom launcher stage.
13+
- [x] 2.2 Remove default center rendering of non-composer autopilot guidance.
14+
- [x] 2.3 Keep temporary clarification rendering above the composer only when `currentDialog` exists.
15+
- [x] 2.4 Keep pending-launch status compact and avoid a large default panel.
1616

17-
- [ ] 3. Tune composer visual treatment
18-
- [ ] 3.1 Adjust the composer container to match the compact rounded reference shape.
19-
- [ ] 3.2 Ensure the send button is visually clear on the right side.
20-
- [ ] 3.3 Keep secondary actions compact and readable.
21-
- [ ] 3.4 Ensure action labels do not overlap at desktop and tablet widths.
17+
- [x] 3. Tune composer visual treatment
18+
- [x] 3.1 Adjust the composer container to match the compact rounded reference shape.
19+
- [x] 3.2 Ensure the send button is visually clear on the right side.
20+
- [x] 3.3 Keep secondary actions compact and readable.
21+
- [x] 3.4 Ensure action labels do not overlap at desktop and tablet widths.
2222

23-
- [ ] 4. Preserve launch functionality
24-
- [ ] 4.1 Verify attachment controls still work through existing callbacks.
25-
- [ ] 4.2 Verify create-task access remains present.
26-
- [ ] 4.3 Verify advanced/more actions remain present.
27-
- [ ] 4.4 Verify launch submission uses existing `UnifiedLaunchComposer` behavior.
23+
- [x] 4. Preserve launch functionality
24+
- [x] 4.1 Verify attachment controls still work through existing callbacks.
25+
- [x] 4.2 Verify create-task access remains present.
26+
- [x] 4.3 Verify advanced/more actions remain present.
27+
- [x] 4.4 Verify launch submission uses existing `UnifiedLaunchComposer` behavior.
2828

2929
- [ ] 5. Verify composer-only center
30-
- [ ] 5.1 Run `npx vitest run --pool=forks --poolOptions.forks.singleFork client/src/components/office/OfficeTaskCockpit.test.tsx client/src/components/launch/__tests__/LaunchPanelShell.test.tsx client/src/components/launch/__tests__/LaunchPanelIntegration.test.tsx`.
30+
- [x] 5.1 Run `npx vitest run --pool=forks --poolOptions.forks.singleFork client/src/components/office/OfficeTaskCockpit.test.tsx client/src/components/launch/__tests__/LaunchPanelShell.test.tsx client/src/components/launch/__tests__/LaunchPanelIntegration.test.tsx`.
3131
- [ ] 5.2 Manually inspect home desktop and confirm the center shows only the compact composer over the scene.
3232
- [ ] 5.3 Update the UI progress SVG after implementation.

.kiro/specs/ui-redesign-home-cockpit-shell-convergence/tasks.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22

33
## Tasks
44

5-
- [ ] 1. Lock the home shell behavior with tests
6-
- [ ] 1.1 Update `client/src/components/office/OfficeTaskCockpit.test.tsx` so the mocked `TasksQueueRail` has a `data-testid="tasks-queue-rail"` marker.
7-
- [ ] 1.2 Add a test asserting `OfficeTaskCockpit` does not render `data-testid="tasks-queue-rail"` on the home cockpit.
8-
- [ ] 1.3 Add a test asserting `OfficeTaskCockpit` still renders exactly one `data-testid="unified-launch-composer"`.
9-
- [ ] 1.4 Add a test asserting the home right drawer exposes `launch`, `task`, `flow`, `agent`, `memory`, and `history` tab triggers.
10-
- [ ] 1.5 Add a test asserting `data-testid="office-scene-hud"` remains present.
11-
- [ ] 1.6 Run `npx vitest run --pool=forks --poolOptions.forks.singleFork client/src/components/office/OfficeTaskCockpit.test.tsx` and confirm the new drawer-removal test fails before implementation.
5+
- [x] 1. Lock the home shell behavior with tests
6+
- [x] 1.1 Update `client/src/components/office/OfficeTaskCockpit.test.tsx` so the mocked `TasksQueueRail` has a `data-testid="tasks-queue-rail"` marker.
7+
- [x] 1.2 Add a test asserting `OfficeTaskCockpit` does not render `data-testid="tasks-queue-rail"` on the home cockpit.
8+
- [x] 1.3 Add a test asserting `OfficeTaskCockpit` still renders exactly one `data-testid="unified-launch-composer"`.
9+
- [x] 1.4 Add a test asserting the home right drawer exposes `launch`, `task`, `flow`, `agent`, `memory`, and `history` tab triggers.
10+
- [x] 1.5 Add a test asserting `data-testid="office-scene-hud"` remains present.
11+
- [x] 1.6 Run `npx vitest run --pool=forks --poolOptions.forks.singleFork client/src/components/office/OfficeTaskCockpit.test.tsx` and confirm the new drawer-removal test fails before implementation.
1212

13-
- [ ] 2. Remove the home left task queue drawer
14-
- [ ] 2.1 In `client/src/components/office/OfficeTaskCockpit.tsx`, remove the left `Splitter.Panel` that renders `TasksQueueRail`.
15-
- [ ] 2.2 Remove the `TasksQueueRail` import from `OfficeTaskCockpit.tsx` if it is no longer used.
16-
- [ ] 2.3 Adjust the remaining `Splitter.Panel` sizes so the center stage expands into the freed space.
17-
- [ ] 2.4 Ensure `selectedDetail`, `activeTaskId`, `filteredTasks`, and task selection logic are not removed if still used by the right drawer and launch flows.
18-
- [ ] 2.5 Run the `OfficeTaskCockpit.test.tsx` target and confirm the drawer-removal tests pass.
13+
- [x] 2. Remove the home left task queue drawer
14+
- [x] 2.1 In `client/src/components/office/OfficeTaskCockpit.tsx`, remove the left `Splitter.Panel` that renders `TasksQueueRail`.
15+
- [x] 2.2 Remove the `TasksQueueRail` import from `OfficeTaskCockpit.tsx` if it is no longer used.
16+
- [x] 2.3 Adjust the remaining `Splitter.Panel` sizes so the center stage expands into the freed space.
17+
- [x] 2.4 Ensure `selectedDetail`, `activeTaskId`, `filteredTasks`, and task selection logic are not removed if still used by the right drawer and launch flows.
18+
- [x] 2.5 Run the `OfficeTaskCockpit.test.tsx` target and confirm the drawer-removal tests pass.
1919

20-
- [ ] 3. Move center autopilot guidance to the right drawer launch tab
21-
- [ ] 3.1 Identify the existing center autopilot/launch guidance inside `launcherFloatingStack`, `launcherDock`, and `launcherContextDock`.
22-
- [ ] 3.2 Keep the actual `UnifiedLaunchComposer` in the center-bottom composer.
23-
- [ ] 3.3 Move non-composer launch guidance into the right drawer `launch` tab content.
24-
- [ ] 3.4 Keep clarification as a separate overlay without duplicating the composer.
25-
- [ ] 3.5 Run `OfficeTaskCockpit.test.tsx` and confirm exactly one composer still renders.
20+
- [x] 3. Move center autopilot guidance to the right drawer launch tab
21+
- [x] 3.1 Identify the existing center autopilot/launch guidance inside `launcherFloatingStack`, `launcherDock`, and `launcherContextDock`.
22+
- [x] 3.2 Keep the actual `UnifiedLaunchComposer` in the center-bottom composer.
23+
- [x] 3.3 Move non-composer launch guidance into the right drawer `launch` tab content.
24+
- [x] 3.4 Keep clarification as a separate overlay without duplicating the composer.
25+
- [x] 3.5 Run `OfficeTaskCockpit.test.tsx` and confirm exactly one composer still renders.
2626

2727
- [ ] 4. Final home cockpit verification
28-
- [ ] 4.1 Run `npx vitest run --pool=forks --poolOptions.forks.singleFork client/src/components/office/OfficeTaskCockpit.test.tsx client/src/components/office/__tests__/OfficeTaskCockpit.cards-integration.test.tsx client/src/components/office/office-task-cockpit-utils.test.ts`.
28+
- [x] 4.1 Run `npx vitest run --pool=forks --poolOptions.forks.singleFork client/src/components/office/OfficeTaskCockpit.test.tsx client/src/components/office/__tests__/OfficeTaskCockpit.cards-integration.test.tsx client/src/components/office/office-task-cockpit-utils.test.ts`.
2929
- [ ] 4.2 Manually inspect `http://localhost:3000/` on desktop after implementation and confirm there is no home left task queue drawer.
3030
- [ ] 4.3 Confirm the center scene is not covered by a large autopilot panel.
31-
- [ ] 4.4 Confirm the right drawer still has six tabs on home.
31+
- [x] 4.4 Confirm the right drawer still has six tabs on home.

.kiro/specs/ui-redesign-task-center-workbench-tabs/tasks.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,36 @@
22

33
## Tasks
44

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.
1212

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`.
2222

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.
2828

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`.
3333

3434
- [ ] 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`.
3737
- [ ] 5.3 Manually inspect `http://localhost:3000/tasks` and confirm no `发起` tab is visible.

0 commit comments

Comments
 (0)