Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: allow review diffs for registered projects #4288

ClosedStiensWout(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/4288/headopened View on GitHub

Showing 3 changed files with 78 additions and 21 deletions.

x
0 of 3 viewed, 3 left
55 additions and 0 deletionsapps/server/src/review/ReviewService.test.tsModified
View file
@@ -1,19 +1,36 @@
import * as NodeServices from "@effect/platform-node/NodeServices";
import { assert, describe, it } from "@effect/vitest";
+import { type OrchestrationProject, ProjectId } from "@t3tools/contracts";
import * as Effect from "effect/Effect";
import * as FileSystem from "effect/FileSystem";
import * as Layer from "effect/Layer";
+import * as Option from "effect/Option";
import * as PlatformError from "effect/PlatformError";
​
import { ServerConfig } from "../config.ts";
+import * as ProjectionSnapshotQuery from "../orchestration/Services/ProjectionSnapshotQuery.ts";
import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";
import * as VcsDriverRegistry from "../vcs/VcsDriverRegistry.ts";
import * as ReviewService from "./ReviewService.ts";
​
+function makeProject(workspaceRoot: string): OrchestrationProject {
+ return {
+ id: ProjectId.make("project-1"),
+ title: "Project",
+ workspaceRoot,
+ defaultModelSelection: null,
+ scripts: [],
+ createdAt: "2026-01-01T00:00:00.000Z",
+ updatedAt: "2026-01-01T00:00:00.000Z",
+ deletedAt: null,
+ };
+}
+​
function makeLayer(input: {
readonly workspaceRoot: string;