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
|
|
@ -258,8 +258,10 @@ describe("CommandPalette", () => {
|
|||
expect(wrapper.find("[data-test=palette]").exists()).toBe(true);
|
||||
expect(document.activeElement).toBe(wrapper.find("[data-test=palette-input]").element);
|
||||
expect(rows(wrapper)).toEqual([
|
||||
"vcs.openChanges",
|
||||
"project.close",
|
||||
"palette.open",
|
||||
"vcs.commit",
|
||||
"editor.complete",
|
||||
"find.open",
|
||||
"goto.classOpen",
|
||||
|
|
@ -271,6 +273,7 @@ describe("CommandPalette", () => {
|
|||
"problems.open",
|
||||
"editor.quickDocumentation",
|
||||
"app.quit",
|
||||
"vcs.refresh",
|
||||
"editor.reveal",
|
||||
"settings.open",
|
||||
"view.toggleProjectTree",
|
||||
|
|
@ -309,7 +312,7 @@ describe("CommandPalette", () => {
|
|||
await press({ key: "ArrowUp" });
|
||||
expect(wrapper.find("[aria-selected=true]").attributes("data-command")).toBe("terminal.open");
|
||||
await press({ key: "ArrowDown" });
|
||||
expect(wrapper.find("[aria-selected=true]").attributes("data-command")).toBe("project.close");
|
||||
expect(wrapper.find("[aria-selected=true]").attributes("data-command")).toBe("vcs.openChanges");
|
||||
});
|
||||
|
||||
it("dims disabled commands, which Enter and clicks do not run", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue