M4.2: Changes tool window with staging and commit
A Changes tab in the bottom panel (ui/src/components/vcs/changes/): the project's changed files from git.status in Staged, Changes and Untracked groups, re-read on start, project open, gitChanged and vcs.refresh (serialised). A checkbox per file and per group stages or unstages through git.stage / git.unstage (a staged rename passes both paths); Space stages, Enter or a double-click runs vcs.showDiff when provided, else opens the file. A message box with Amend and Commit (also Mod+Enter) runs flushDirty() first, cancels when a save fails, then git.commit and toasts the short hash. All git calls go through runWaiting. UI commands vcs.openChanges (Mod+Alt+G), vcs.commit (Mod+K, focuses the message box) and vcs.refresh in a new Git menu group; gitChanged added to EngineEventPayload. 19 Vitest tests; palette, menu and catalog tests follow the new commands. Docs: architecture, gaps G8, Git parity row 4% (est.), ui/tooling checklists, roadmap M4 row, ROADMAP depth ~5.4% and log, README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8701f50d37
commit
f67f6b9f7c
18 changed files with 1792 additions and 23 deletions
|
|
@ -134,6 +134,15 @@ export type EngineEventPayload =
|
|||
path: unknown;
|
||||
/** `[{range, severity, message, source?, code?}]`, empty when cleared; unchecked. */
|
||||
items: unknown;
|
||||
}
|
||||
| {
|
||||
kind: "gitChanged";
|
||||
/** Whether a usable git was found; unchecked. */
|
||||
available: unknown;
|
||||
/** The repository summary of `git.status`, or null; unchecked. */
|
||||
repo: unknown;
|
||||
/** Always true: re-query `git.status`. */
|
||||
filesChanged: unknown;
|
||||
};
|
||||
|
||||
/** Callback receiving engine events. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue