You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: 🤖 Trigger refresh after Track All to update UI state (#321)
Follow-up to PR #318 (untracked files feature). Includes two
improvements:
## 1. Trigger refresh after Track All
After staging untracked files via Track All button, the UI should
automatically refresh to reflect the changes (updated hunks, tree, and
untracked count).
**Implementation:**
- Pass `onRefresh` callback from ReviewPanel through ReviewControls to
UntrackedStatus
- Call `onRefresh()` after successful `git add` operation in Track All
handler
- This refresh only happens from user action (clicking Track All),
preventing infinite loops
## 2. Rename 'Dirty' to 'Uncommitted' for clarity
The checkbox was labeled "Dirty" but actually includes ALL uncommitted
changes (staged + unstaged) via `git diff HEAD`. "Uncommitted" is more
accurate and less ambiguous.
**Breaking change:** localStorage keys changed from
`review-include-dirty` to `review-include-uncommitted`. Users will lose
this preference per workspace (acceptable for early development phase).
## Testing
1. Open Code Review panel
2. Create an untracked file
3. Click the untracked badge to open tooltip
4. Click "Track All" button
5. ✅ UI automatically refreshes showing the files are now staged
6. ✅ Untracked count updates to 0
7. ✅ Hunks and tree reflect the new staged changes
8. ✅ Checkbox now labeled "Uncommitted" instead of "Dirty"
_Generated with `cmux`_
0 commit comments