Repository navigation
feat(web): add tags support to task columns and localization - #667
Conversation
There was a problem hiding this comment.
ℹ️ No critical issues — one scoping note on where "Tags" is offered.
Reviewed changes
getTaskColumnKeysgains atagsbranch: a task returns one key per non-empty tag, so it appears in each tag group; tagless tasks fall back to["__none"]—apps/web/src/components/projects/interactions/view-utils.ts:257.BUILTIN_COLUMN_BYgains thetagsentry, surfacing Tags in the "Column by" dropdown —view-utils.ts:323.- All 9 locale files add the
viewUtils.columnBy.tagslabel.
The Table and Board paths work as described: getColumnGroupDefs returns [] for tags (same as number/text custom fields), and both views build columns at render time from loaded task values, so multi-tag tasks land in every tag group and untagged tasks in "None".
ℹ️ "Tags" is offered for layouts that can't group by it
The "Column by" control is rendered for every layout (view-settings-panel.tsx:1471), but RoadmapView maps groupDefs straight into its group list with no dynamic fallback (roadmap-view.tsx:631). Since getColumnGroupDefs("tags") is [], a Roadmap view whose column_by is tags renders an empty task area while tasks still exist. This gap is pre-existing for number/text custom fields, but the new tags option makes it reachable for a built-in value — worth either hiding tags for the Roadmap layout or giving RoadmapView the same render-time fallback Table and Board use.
Technical details
# Roadmap groups empty when grouped by a dynamic ([]) column_by
## Affected sites
- `apps/web/src/components/projects/interactions/interaction-layout.tsx:2202` — passes the view's `columnBy` into `RoadmapView`.
- `apps/web/src/components/projects/interactions/roadmap-view.tsx:207` — `groupDefs = getColumnGroupDefs(columnBy, ...)` with no dynamic fallback.
- `apps/web/src/components/projects/interactions/roadmap-view.tsx:631` — `.map` over `groupDefs`; empty list renders no groups.
- `apps/web/src/components/projects/interactions/view-utils.ts:86` — `getColumnGroupDefs` has no `tags` branch (nor any for number/text), so returns `[]`.
- Compare `list-view.tsx:178` and `board-view.tsx:553`, which detect empty defs and synthesize columns from `getTaskColumnKeys`.
## Required outcome
A Roadmap view set to group by `tags` should either not offer `tags` (or other dynamic dimensions) in "Column by", or render the same per-value groups Table/Board produce.
## Suggested approach (optional)
- Simplest: filter `columnByOpts` by layout so dynamic-only values aren't offered on Roadmap.
- More complete: lift the Table/Board dynamic-group builder into `view-utils.ts` and reuse it in `RoadmapView`.
- Adding a small unit test for the new `getTaskColumnKeys(..., "tags", ...)` branch (multi-tag → all keys, no tags → `["__none"]`) in `view-utils.test.ts` would lock in the core new behavior.deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
…up columns - Introduced `groupBy` and `groupKey` options in the ListTasks API to filter tasks by specific groups. - Implemented `listTaskColumns` function to retrieve columns for a specified group-by dimension. - Updated the TaskRepository interface and its implementation to support fetching group columns based on filters. - Enhanced the TaskService to delegate group column retrieval to the repository. - Added new tests for group filtering and column listing in both unit and integration test suites. - Updated HTTP handlers to parse and handle new query parameters for grouping tasks and listing columns.
There was a problem hiding this comment.
Important
The new per-column grouping path hides tasks in two view configurations: Roadmap grouped by Tags (the buildDynamicGroupDefs fallback is unreachable) and any Board/List with Assignee swimlanes while Column by is Tags/Reporter/a free-valued custom field. Both are described inline.
Reviewed changes
- API grouping:
GET /projects/{id}/tasksgainsgroup_by/group_key(status, sprint, assignee, reporter, type, importance, tags, custom fields, plus__none/__backlog/__unassignedsentinels), threaded through domain (TaskGroup), repo (applyTaskGroup), service and handler. - Columns endpoint: new
GET /projects/{id}/tasks/columns?column_by=…lists data-derived columns (tags, assignees, reporters, free-valued custom fields), narrowed by the view's filters and read scope, and rejects fixed-column dimensions. - Web per-column pagination: Table/Board now fetch each column's tasks through
group_by/group_keyfor every "Column by" value; API-listeddynamicColumnsdrivegetColumnGroupDefs. - Roadmap grouping: adds
buildDynamicGroupDefsso Roadmap can group the tasks it has loaded by value. - Multi-assignee / unset checkbox: a task now appears under every assignee; an unset checkbox counts as "No".
- Tests: Postgres + handler tests for every group dimension and the columns query; web unit tests for the API params, API-listed columns and multi-assignee grouping.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Cleared
apiColumnsPendingwhen the columns request errors, so the view falls back to grouping the tasks it can load instead of hanging on its skeleton. - Returned no tag columns from
getColumnGroupDefsuntil the API lists them, which makes Roadmap'sbuildDynamicGroupDefsfallback reachable again for tagged tasks. - Stripped
dynamicColumnsinsidegetSwimlaneDefs, so Assignee swimlanes no longer inherit the column_by key space. - Made
IsGroupKeyNonedimension-aware (sprint__backlog, assignee__unassigned,__noneelsewhere, none for importance) and documented the sentinel contract. - Added Postgres group-key cases (importance has no sentinel, cross-dimension sentinel is an ordinary key, sprint sentinel) and web unit tests for empty tag columns and swimlane isolation.
All four issues from the previous review are addressed and their threads resolved.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues — two robustness notes inline on the new numeric grouping.
Reviewed changes
- Added a
truncatedsignal to the columns endpoint:MaxGroupColumnsis shared from the domain,ListGroupColumnsreturns up to one extra row, andListTaskColumnstrims to the cap and reportstruncated; the web view renders a banner when it is set. - Grouped number custom fields numerically —
trim_scale(n)::textfor the column key and::numericfor the group filter — so1and1.0collapse into one column, with a guard for malformed keys. - Returned
apierr.New(CodeBadRequest, …)instead offmt.Errorffor the fixed-column dimensions. - Corrected
buildColumnFilterto always return options (the| nulland its dead caller guards are gone) and added thecolumnsTruncatedstring to all nine locales.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the delta since the prior pullfrog review (f38f203 → 7866d47).
- Replaced the
strconv.ParseFloatmalformed-key guard withdecimalKeyRe, a Go mirror ofcustomFieldNumericExpr's decimal grammar, so a hex-floatgroup_keynow selects nothing instead of reaching::numericand 500ing. - Routed the number custom-field group filter and the number columns listing through
customFieldNumericExpr, removing the bare::numericcast whose safety depended onjsonb_typeof/predicate evaluation order. - Added a Postgres test case covering a hex-float number group key.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

Summary
Part of #641. Tags can now be used under Column by in Table and Board views, and — because fixing that exposed the same flaw for other groupings — the columns of every "Column by" option now come from the API, with each column loading its own tasks with pagination.
Why
Only Status, Sprint and Type had per-column API queries. Every other grouping (Assignee, Reporter, Importance, Tags, custom fields) fetched a single small page (5 tasks in Table) and built its groups client-side from those tasks. In a project where the first tasks have no tags, grouping by Tags showed only a "None" column; counts and "load more" were also wrong for the other groupings. A task with several assignees was only listed under its first assignee, and tasks with an unset checkbox field appeared in no column.
API (
services/api)GET /projects/{id}/tasksacceptsgroup_by+group_keyand returns only the tasks in that column. Supported: status, sprint, assignee, reporter, type, importance (bucket 0–4), tags and custom fields.__none/__backlog/__unassignedselect the tasks without a value. The group is ANDed with all other filters, and the total count follows it. A custom field's type is resolved server-side.GET /projects/{id}/tasks/columns?column_by=…lists the columns that come from the data: tags, assignees, reporters and distinct values of free-valued custom fields (number sorted numerically). It takes the same filters as the task list, respects the caller's task read scope, and returns at most 100 columns. Fixed-column dimensions (status, sprint, type, importance) are rejected with 400.Web (
apps/web)group_by/group_key, for every "Column by" option in Table and Board.buildDynamicGroupDefs, so grouping by Tags no longer renders an empty Roadmap.Not included
Testing
internal/...suite, including the Postgres package.tsc -band the interaction/i18n tests pass.Type of Change
Checklist
🤖 Generated with Claude Code