Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): better right panel (new diffs styling) #5260

Mergedmaria-rcksmerged 15 commits intomain fromrefs/pull/5260/headmerged by juliusmarminge View on GitHub

Showing 23 changed files with 64 additions and 3 deletions (loading 20).

x
0 of 23 viewed, 23 left
1 addition and 0 deletionsapps/server/src/auth/RpcAuthorization.tsModified
View file
@@ -75,6 +75,7 @@
[WS_METHODS.vcsSwitchRef]: AuthOrchestrationOperateScope,
[WS_METHODS.vcsInit]: AuthOrchestrationOperateScope,
[WS_METHODS.reviewGetDiffPreview]: AuthReviewWriteScope,
+ [WS_METHODS.reviewGetDiffFileContents]: AuthReviewWriteScope,
[WS_METHODS.terminalOpen]: AuthTerminalOperateScope,
[WS_METHODS.terminalAttach]: AuthTerminalOperateScope,
[WS_METHODS.terminalWrite]: AuthTerminalOperateScope,
33 additions and 0 deletionsapps/server/src/review/ReviewService.test.tsModified
View file
@@ -57,6 +57,39 @@
}).pipe(Effect.provide(NodeServices.layer)),
);
​
+ it.effect("attributes file-content workspace violations to the file-content operation", () =>
+ Effect.gen(function* () {
+ const fs = yield* FileSystem.FileSystem;
+ const workspaceRoot = yield* fs.makeTempDirectoryScoped({ prefix: "t3-review-workspace-" });
+ const outsideRoot = yield* fs.makeTempDirectoryScoped({ prefix: "t3-review-outside-" });
+ const baseDir = yield* fs.makeTempDirectoryScoped({ prefix: "t3-review-base-" });
+ const detectCalls: Array<{ readonly cwd: string }> = [];
+​
+ const error = yield* Effect.gen(function* () {
+ const review = yield* ReviewService.ReviewService;
+ return yield* review
+ .getDiffFileContents({
+ cwd: outsideRoot,
+ sourceKind: "working-tree",