feat(work-item): add sub-group-by (swimlanes) to project work items - #309
Conversation
Add an optional secondary grouping to the project work-item layouts. From the Display panel, once a primary Group by is chosen, a new "Sub-group by" control offers every other dimension (it can't equal the primary; "None" turns it off). - List: primary groups become sections, each split into nested sub-group sections. - Board: sub-groups become horizontal swimlanes, one band of primary-group columns per sub-group. Implemented as a parallel buildSubGroupedIssues on top of the existing buildGroupedIssues (reusing each dimension's ordering + titles), so the flat GroupedIssuesResult that other layouts consume is unchanged. Drag-and-drop is disabled in swimlane mode to keep the cross-dimension drop unambiguous. The sub-group control is hidden in the module view, which doesn't render swimlanes. Closes Devlaner#177 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 15 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@martian56 this one's green with no CodeRabbit comments — sub-group-by / swimlanes for the work-item layouts. Good to merge when you get a chance. |
Feature summary
Work-item layouts now support an optional second grouping dimension: the List nests sub-group sections inside each group, and the Board renders swimlanes.
Linked issues / discussion
Closes #177
User-facing behavior
In a project's work items, open Display. After picking a primary Group by, a new Sub-group by control appears offering every other dimension (states, priority, cycle, module, labels, assignees, created by) — it can't equal the primary group-by, and "None" turns it off.
The choice persists per project (localStorage) alongside the other display options.
What changed
UI (
apps/web/)lib/issueListGroupAndSort.ts: newbuildSubGroupedIssues+subGroupKey, layered on top of the existingbuildGroupedIssues(reusing each dimension's ordering and titles). Returnsnullwhen sub-grouping doesn't apply, so callers fall back to the flat grouping.lib/projectIssuesDisplay.ts+projectIssuesEvents.ts: addedsubGroupByto the display state, persistence, and event payload, with anormalizeSubGroupByguard (sub-group is cleared when it equals the primary or the primary is "None").ProjectIssuesDisplayPanel.tsx: new "Sub-group by" section (hidden until a primary group is chosen; excludes the primary; gated by anenableSubGroupprop).IssueLayoutList.tsx/IssueLayoutBoard.tsx: nested-section and swimlane rendering when a sub-grouping is present.IssueListPage.tsx: builds and threads the sub-grouped result to both layouts.ModuleDetailHeader.tsx: passesenableSubGroup={false}(the module view doesn't render swimlanes).API / Database
Why this design
The flat
GroupedIssuesResultis consumed by several layouts (spreadsheet, gantt, calendar, …). Rather than change its shape, sub-grouping is a parallel structure that only List and Board opt into, so the other layouts are untouched. Both dimensions' key/order/title logic is reused frombuildGroupedIssues(via a sharedsubGroupKey) so a sub-grouping is always consistent with that dimension's normal grouping. Drag-and-drop is disabled in swimlane mode so a drop isn't ambiguously both a column and a lane change.Test plan
npm run validate(typecheck + lint + prettier) greenOut of scope (follow-ups)
display_filters)AI assistance
Claude Code (Claude Opus 4.8)— and AI-assisted commits include aCo-Authored-By:trailerChecklist