feat(web): show, add and remove task tags and filter by tag in the companion #186

Closed
maximus wants to merge 5 commits from issue-179-web-task-tags into issue-165-account-switch

5 commits

Author SHA1 Message Date
le king fu
6388ffa307 Merge branch 'issue-165-account-switch' into issue-179-web-task-tags 2026-11-03 21:12:53 -05:00
le king fu
fd509fbfac test(web): pin dueDate with a tag filter and a non-integer priority
Review of PR #186: both behaviour changes of the shared task query were
untested; removing either condition left the suite green.

Refs #179

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 20:42:15 -05:00
le king fu
a09bd68b70 Merge branch 'issue-165-account-switch' into issue-179-web-task-tags 2026-11-03 20:41:37 -05:00
le king fu
d98b3e5bff fix(web): check the task owner in loadTaskTags too
A link joins two owned rows: REVIEW.md asks for the ownership check on both
sides, so loadTaskTags also joins sl_tasks on the account (still one query).

Refs #179

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 21:19:43 -05:00
le king fu
99cc2fc1c4 feat(web): show, add and remove task tags and filter by tag in the companion
- web/src/lib/taskQueries.ts: list task query (existing filters + tags),
  subtasks, loadTaskTags (one query, live tags of the account only) and the
  account tags, shared by the list page and GET /api/lists/[id]/tasks.
- ?tags= validated by zod (at most 20 UUIDs, count checked first); the tag
  filter joins sl_tags on the account and deleted_at IS NULL; 400 on a
  malformed value.
- TaskItem: tag pills on tasks and subtasks; the detail view adds an
  existing tag and removes one through the task-tag API.
- Sidebar: a click on a tag filters the current view by ?tags=<id>, a second
  click removes it; FilterBar shows the active tag filter.
- FR/EN strings.

Refs #179
Refs #168

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 21:16:47 -05:00