Enhanced git tracking for TUI dashboard - #7
Merged
Merged
Conversation
… status Replace binary dirty/clean with staged/modified/untracked counts in the dashboard and CLI. Add last commit info, default branch divergence, and GitHub PR status (via gh CLI) to the workspace detail pane and status command. PR queries fan out in parallel with graceful degradation when gh is unavailable.
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.
What
Add richer git information to the TUI dashboard and CLI: detailed dirty counts (staged/modified/untracked), last commit info, default branch divergence, and GitHub PR status.
Why
The dashboard previously showed only binary dirty/clean status. Detailed counts, commit context, and PR awareness make the workspace list far more useful at a glance — reducing context switches to separate git/gh commands.
How
internal/git: AddedDirtyCountstruct withDirtyStatus()(parses--porcelainoutput) andCommitInfo/LastCommit()(parsesgit log -1)internal/gh: New package wrappinggh pr viewwith graceful degradation when gh is unavailable or repo has no GitHub remote● 2↑ 3~ 1?counts + PR badges; detail pane adds Last Commit, Divergence, and PR rows; PR queries fan out in parallel via goroutinesws status: Enriched output with staged/modified/untracked counts, last commit, PR info; JSON output addsstaged,modified,untracked,last_commit,prfields (backward-compatdirtybool preserved)workspace_status: Same enriched JSON responseTest plan
go build ./...— compiles cleanlygo vet ./...— no issuesgo test -race -count=1 ./...— all 19 packages passfr8 dashboard— verify workspace list shows detailed dirty counts, PR badges, last commit in detail panefr8 ws status— verify enriched outputghnot installed — PR fields gracefully absent