Improve git status details and streamline quick action flows
- add working-tree file/line stats to git status contracts, server responses, and tests - refactor web git queries/mutations into shared React Query helpers - update git quick-action logic/UI to prefer commit/push/PR flows and clearer disabled states - hide branch toolbar for non-repos and tighten related chat/toolbar behavior
This commit is contained in:
1 parent
5a30594009
commit
85eb379dd7
12 files changed
+871
-353
No files matched your search
@@ -557,6 +557,11 @@ describe("WebSocket Server", () => {
|
||||
status: vi.fn().mockResolvedValue({
|
||||
branch: "feature/test",
|
||||
hasWorkingTreeChanges: true,
|
||||
workingTree: {
|
||||
files: [{ path: "src/index.ts", insertions: 7, deletions: 2 }],
|
||||
insertions: 7,
|
||||
deletions: 2,
|
||||
},
|
||||
hasUpstream: false,
|
||||
aheadCount: 0,
|
||||
behindCount: 0,
|
||||
@@ -581,6 +586,11 @@ describe("WebSocket Server", () => {
|
||||
expect(response.result).toEqual({
|
||||
branch: "feature/test",
|
||||
hasWorkingTreeChanges: true,
|
||||
workingTree: {
|
||||
files: [{ path: "src/index.ts", insertions: 7, deletions: 2 }],
|
||||
insertions: 7,
|
||||
deletions: 2,
|
||||
},
|
||||
hasUpstream: false,
|
||||
aheadCount: 0,
|
||||
behindCount: 0,
|
||||
|
||||
Reference in new issue
Block a user