538813de02
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
3.2 KiB
3.2 KiB
id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
| id | title | status | wave | depends_on | plan | requirements | acceptance_criteria | system_design | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 03-add-desktop-thread-view-controls | Add desktop Threads view controls | done | 3 |
|
plan.md |
|
|
|
Task 03: Add Desktop Threads View Controls
Summary
Add the active-view selector and editor before the desktop task-listing view icons. Reuse generalized sidebar editor primitives with Threads-owned state and registries.
In scope
- Add optional task-view control slots to
KanbanHeader. - Render the active-view selector and settings button on Threads.
- Add create, switch, rename, Save, Save as, discard, and delete actions.
- Add task-scope selection with search, checkboxes, Select all, and Clear all.
- Add Threads filter, sort, limit, hidden-count, and Reapply sort controls.
- Disable Save for an empty selected scope and expose the validation reason.
- Generalize sidebar clause and editor primitives without changing sidebar behavior.
- Hide
KanbanDisplayDropdownon Threads. - Add all user-facing text to the five locale catalogs.
Out of scope
- Phone drawer presentation and browser-level E2E.
Acceptance
- Controls appear directly before the task-listing view icons.
- The editor remains inside the viewport and owns one vertical scroll area.
- View actions update the query and persist through Task 01 state actions.
- Empty and capped results keep the controls available and explain the result.
- Keyboard users can complete every view and clause action and regain focus.
Verification
Write failing header, selector, editor, task-picker, and sidebar-regression tests first. Then run:
(cd apps && pnpm --filter @kandev/web test -- --run components/threads/thread-view-controls.test.tsx components/threads/thread-view-editor.test.tsx components/task/sidebar-filter/sidebar-filter-editor.test.tsx components/kanban/kanban-header.test.tsx)
(cd apps/web && pnpm run i18n:check)
(cd apps/web && pnpm run typecheck)
Files likely touched
apps/web/components/kanban/kanban-header.tsxapps/web/components/threads/thread-view-controls.tsxapps/web/components/threads/thread-view-editor.tsxapps/web/components/threads/thread-task-picker.tsxapps/web/components/task/sidebar-filter/apps/web/app/threads/threads-page-client.tsxapps/web/src/locales/*/threads.json
Dependencies
- Task 02 supplies the query result, counts, and reset action.
Risks
- Preserve the sidebar editor behavior while extracting shared primitives.
- Keep long view names and filter labels inside the header and popover.
Parallelism
sequential