2 Commits
Author SHA1 Message Date
LABCAT 7f147568ea fix(hunk-actions): use native menu items, drop hardcoded label
- Render each hunk action as a DropdownMenuItem (Stage/Unstage/Discard hunk N
  with +/- counts) so Base UI keyboard navigation, highlight, Escape, and
  close-on-activate apply. Plain div/button rows are gone.
- Row labels reuse the already-translated diffView.hunk.stageTitle /
  unstageTitle / discardTitle strings; no new i18n keys, no hardcoded English.
- Disable the file-level actions while a hunk action is in flight for
  consistency (server serializes per directory regardless).
2026-09-09 21:43:18 +12:00
LABCAT aeafc9c095 feat(git): per-hunk stage, unstage, and discard actions in Changes view
Implements the hunk-level actions promised by the 1.13.0 changelog entry.
Each expanded file diff with 2+ hunks gets a Hunks menu (next to the
file actions) listing every hunk with its +/- counts and Stage/Unstage
+ Discard buttons, wired to the existing stageGitHunk/unstageGitHunk/
revertGitHunk API and POST /api/git/apply-hunk backend.
2026-09-09 20:58:47 +12:00