feat: grouped issue display with bordered tables#2
Merged
erikreinert merged 3 commits intomainfrom Feb 19, 2026
Merged
Conversation
Add progress-fetching logic to the issue list command that collects all parent issue IDs (from both the parentMap of filter-excluded parents and parents present in the result set) and calls GetBatchSubIssueProgress in a single batch query. The result is stored as a map[int]SubIssueProgress for the grouped renderer to display done/total counts on parent headers. The query only runs in human-readable mode when parent issues exist.
Use RenderGroupedTable as the default list renderer (non-tree mode), replacing the flat table. Refactor grouped output to use box-drawing borders (┌├└) that connect parent title headers to child tables, add title truncation to fit terminal width, and extract helper functions (buildParentTitle, buildTitleBox, colorTableInnerWidth). Add comprehensive tests for RenderGroupedTable covering grouping, progress display, filtered parents, standalone fallback, ordering, and edge cases. Add DB test for the parent-fetching pattern used by the CLI to resolve filtered-out parents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RenderGroupedTableas the default list renderer (non-tree mode), withRenderTableretained for--treemodeTest plan
go test ./internal/render/...to verify grouped table rendering tests passgo test ./internal/db/...to verify parent-fetching pattern tests passdocket issue listand verify issues with parents display in bordered groupsdocket issue list --treeand verify tree mode still works as beforedocket issue list --jsonand verify JSON output is unchanged (flat)docket issue list --status todo) correctly fetch and display parent headers for excluded parents