feat(ui): show comment and sub-issue counts on issue detail tabs#1927
feat(ui): show comment and sub-issue counts on issue detail tabs#1927bluzername wants to merge 1 commit intopaperclipai:masterfrom
Conversation
The Comments and Sub-issues tabs in issue detail page was showing just the label without any count. User had to click each tab to find out if there are any comments or sub-issues. Now tabs show count when items exist: - "Comments (5)" when there are 5 comments - "Sub-issues (3)" when there are 3 child issues - Just "Comments" or "Sub-issues" when count is zero This match the pattern already used by "Linked Approvals" tab in the same page which show the count.
Greptile SummaryThis PR adds comment and sub-issue counts to the two main tabs on the issue detail page, matching the existing pattern already used by the "Linked Approvals" tab. The implementation is minimal (2 lines), uses already-loaded data, and handles the loading/empty states correctly.\n\nChanges:\n- Confidence Score: 5/5Safe to merge — the code change is correct and minimal, the only outstanding items are PR description improvements (thinking path + screenshots). Both changed lines are logically correct: No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "feat(ui): show counts on issue detail Co..." | Re-trigger Greptile |
Thinking Path
Problem
When looking at an issue detail page, the tabs at the bottom show "Comments", "Sub-issues", "Activity" - but no counts. I cannot see if there are 0 or 50 comments without clicking the tab. Same for sub-issues.
This is specially annoying when triaging issues because I want to quickly see which issues have discussion (comments) and which are broken down into sub-tasks (sub-issues) without clicking back and forth between tabs.
The "Linked Approvals" tab further down already show a count in parentheses, so the pattern exist in the same page but was not applied to the main tabs.
What I changed
Added count display to Comments and Sub-issues tabs:
Both use data already loaded and available in the component (
commentsfrom useQuery andchildIssuesfrom useMemo).How to test
1 file, 2 lines changed.