feat: add commit and ref counters to repo tab view#761
Open
Jay-Madden wants to merge 4 commits intocharmbracelet:mainfrom
Open
feat: add commit and ref counters to repo tab view#761Jay-Madden wants to merge 4 commits intocharmbracelet:mainfrom
Jay-Madden wants to merge 4 commits intocharmbracelet:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #761 +/- ##
==========================================
+ Coverage 51.96% 52.87% +0.91%
==========================================
Files 157 160 +3
Lines 13454 11627 -1827
==========================================
- Hits 6991 6148 -843
+ Misses 5891 4906 -985
- Partials 572 573 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
liuzhen9320
added a commit
to liuzhen9320/app-soft-serve
that referenced
this pull request
Nov 6, 2025
rhystmorgan
added a commit
to rhystmorgan/soft-serve
that referenced
this pull request
Jan 4, 2026
Integrate PR charmbracelet#761 functionality to display dynamic counters in tab headers: - Enhance tabs component with IdentifiableTab structure - Add SetTabValueMsg for dynamic tab text updates - Implement ResetTabNames() to clear counters between repos - Add commit counter: "Commits (N)" format - Add branch/ref counter: "Branches (N)" format - Ensure clean navigation with automatic counter reset Based on charmbracelet#761 by Jay-Madden 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
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.
One of the main things I look for information wise when browsing repos is how many commits/branches it has. Softserve didnt easily show me that so i went ahead and added it to the tab view where it felt natural.
I am currently running this happily on my forked build on my own server, but I figured I would offer the patch upstream as well. I haven't created a discussion but I can create one if needed?
Example:

The tab handling is a bit odd in that its a single tab instance for all repos, so i added the
ResetTabNames()to the init to prevent other repos counts from showing up on new repos. It's not my favorite way to do it but short of making all repos their own "instance" of repo i think it's workable enough.CONTRIBUTING.md.