2.0 KiB
2.0 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec |
|---|---|---|---|---|---|---|
| 02-frontend-actions | Frontend detach actions | done | 1 | plan.md | ../../specs/tasks/subtask-detachment.md |
Task 02: Frontend detach actions
Acceptance
- A single subtask exposes
Detach from parentin the sidebar context menu and in both task-card menus; root and bulk menus do not. - Confirmation states that hierarchy changes while shared workspace access remains, and successful submission cannot be duplicated.
- The Office
No parentpicker and mobile task actions invoke the canonical detach endpoint.
Verification
cd apps/web && rtk pnpm test -- components/task/task-switcher.test.tsx components/kanban-card-menu-items.test.tsx components/task/simple/components/parent-picker.test.tsx lib/kanban/map-task.test.ts
cd apps/web && rtk pnpm run typecheck
Files likely touched
apps/web/lib/api/domains/kanban-api.tsapps/web/lib/api/index.tsapps/web/lib/kanban/map-task.tsapps/web/lib/state/slices/kanban/types.tsapps/web/hooks/use-detach-task.tsapps/web/components/task/task-detach-confirm-dialog.tsxapps/web/components/task/task-switcher-context-menu.tsxapps/web/components/task/task-switcher.tsxapps/web/components/task/task-session-sidebar.tsxapps/web/components/task/mobile/session-task-switcher-sheet.tsxapps/web/components/kanban-card-menu-items.tsxapps/web/components/kanban-card.tsxapps/web/components/task/simple/components/parent-picker.tsx- Adjacent component and hook test files.
Dependencies
None. Implement against the approved HTTP contract; integrated verification depends on Task 01.
Inputs
- Spec sections: What, API surface, Scenarios.
- Existing menu patterns in
task-switcher-context-menu.tsxandkanban-card-menu-items.tsx. - Mobile parity rules in
.agents/skills/mobile-parity/SKILL.md.
Output contract
Report UI/API changes, tests run, files changed, blockers, mobile risks, and update this task plus plan.md to done when acceptance passes.