-
Notifications
You must be signed in to change notification settings - Fork 30
🤖 feat: line-delta git status indicator with toggle #1108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
When in line-delta mode with no outgoing changes but behind remote, show a muted ↓N indicator so users can hover to see details and toggle to divergence view.
633f810 to
208fb23
Compare
The GitStatusVariations story already covers git status display. The deleted stories weren't properly showing the indicators.
- Add outgoingAdditions/outgoingDeletions to fixtures - Add ws-diverged with large counts to test abbreviation (12.3k) - Auto-expand project so workspaces are visible on load - Update comment to document what each workspace demonstrates
- Generate deterministic hex hashes (no Math.random) - Match parseGitShowBranchForStatus expectations
Avoid storybook git command mocking by exercising GitStatusIndicatorView with explicit props (line-delta, divergence, behind-only).
The MCP screenshot tests occasionally miss the tool-call-end event even after stream-end; poll briefly for chrome_take_screenshot to reduce flake.
5841bf1 to
3abe481
Compare
- Remove component-level story (repo only uses App.* stories) - Improve executeBash mock to support both GitStatusStore + tooltip branch details - Add play interaction to GitStatusVariations to prove toggle works
3abe481 to
52ac176
Compare
Changes the GitStatusIndicator to show line deltas (additions/deletions) by default instead of commit divergence (ahead/behind). Users can toggle between views via the tooltip.
Summary
+{additions} -{deletions}with GitHub-style coloring (green/red when working, muted when idle)Lines/Commitssegmented control to switch views globally (persisted to localStorage)Implementation
GitStatustype withoutgoingAdditions,outgoingDeletions,incomingAdditions,incomingDeletionsgit diff --numstatagainst merge-baseGIT_STATUS_INDICATOR_MODE_KEYfor persisted global preferenceGenerated with
mux