Skip to content

Enhanced git tracking for TUI dashboard - #7

Merged
htcarr3 merged 1 commit into
mainfrom
improvements-021426-2
Feb 15, 2026
Merged

Enhanced git tracking for TUI dashboard#7
htcarr3 merged 1 commit into
mainfrom
improvements-021426-2

Conversation

@htcarr3

@htcarr3 htcarr3 commented Feb 15, 2026

Copy link
Copy Markdown
Contributor

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: Added DirtyCount struct with DirtyStatus() (parses --porcelain output) and CommitInfo/LastCommit() (parses git log -1)
  • internal/gh: New package wrapping gh pr view with graceful degradation when gh is unavailable or repo has no GitHub remote
  • TUI dashboard: Status line shows ● 2↑ 3~ 1? counts + PR badges; detail pane adds Last Commit, Divergence, and PR rows; PR queries fan out in parallel via goroutines
  • CLI ws status: Enriched output with staged/modified/untracked counts, last commit, PR info; JSON output adds staged, modified, untracked, last_commit, pr fields (backward-compat dirty bool preserved)
  • MCP workspace_status: Same enriched JSON response

Test plan

  • go build ./... — compiles cleanly
  • go vet ./... — no issues
  • go test -race -count=1 ./... — all 19 packages pass
  • Manual: fr8 dashboard — verify workspace list shows detailed dirty counts, PR badges, last commit in detail pane
  • Manual: fr8 ws status — verify enriched output
  • Manual: test with gh not installed — PR fields gracefully absent

… 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.
@htcarr3
htcarr3 merged commit 22dcf98 into main Feb 15, 2026
6 checks passed
@htcarr3
htcarr3 deleted the improvements-021426-2 branch February 15, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant