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