- Detect and route jj repositories alongside git - Thread VCS kind through status and UI labels - Add jj driver contract coverage and shared freshness helper
Showing the changes to packages/shared/src (2 of 30 files). Show all
Unified · Split
| @@ -81,6 +81,7 @@ describe("applyGitStatusStreamEvent", () => { · 80 unmodified lines | ||
| 81 | 81 | }; |
| 82 | 82 | |
| 83 | 83 | expect(applyGitStatusStreamEvent(null, { _tag: "remoteUpdated", remote })).toEqual({ |
| 84 | + kind: "unknown", | |
| 84 | 85 | isRepo: true, |
| 85 | 86 | hasPrimaryRemote: false, |
| 86 | 87 | isDefaultRef: false, |
| @@ -96,6 +97,7 @@ describe("applyGitStatusStreamEvent", () => { · 9 unmodified lines | ||
| 96 | 97 | |
| 97 | 98 | it("preserves local-only fields when applying a remote update", () => { |
| 98 | 99 | const current: VcsStatusResult = { |
| 100 | + kind: "git", | |
| 99 | 101 | isRepo: true, |
| 100 | 102 | sourceControlProvider: { |
| 101 | 103 | kind: "github", |
| @@ -226,6 +226,7 @@ function toRemoteStatusPart(status: VcsStatusResult): VcsStatusRemoteResult { · 225 unmodified lines | ||
| 226 | 226 | |
| 227 | 227 | function toLocalStatusPart(status: VcsStatusResult): VcsStatusLocalResult { |
| 228 | 228 | return { |
| 229 | + kind: status.kind, | |
| 229 | 230 | isRepo: status.isRepo, |
| 230 | 231 | ...(status.sourceControlProvider |
| 231 | 232 | ? { sourceControlProvider: status.sourceControlProvider } |
| @@ -251,6 +252,7 @@ export function applyGitStatusStreamEvent( · 19 unmodified lines | ||
| 251 | 252 | if (current === null) { |
| 252 | 253 | return mergeGitStatusParts( |
| 253 | 254 | { |
| 255 | + kind: "unknown", | |
| 254 | 256 | isRepo: true, |
| 255 | 257 | hasPrimaryRemote: false, |
| 256 | 258 | isDefaultRef: false, |