History

Complete orchestration V2 frontend cutover

- Migrate web and mobile state, commands, and persistence to V2 projections - Render conversations from authoritative visible turn items - Harden runtime policy, launch handling, attachments, and cache invalidation

Julius Marminge committed 4 months ago

Commit 3991a001 parent 75e1269111 files · +6259 −9197Browse files

Showing the changes to apps/web/src/diffPanelStore.test.ts (1 of 111 files). Show all

Unified · Split

apps/web/src/diffPanelStore.test.ts+5−5
@@ -1,5 +1,5 @@
1import { scopeThreadRef } from "@t3tools/client-runtime/environment";1import { scopeThreadRef } from "@t3tools/client-runtime/environment";
2import { EnvironmentId, ThreadId, TurnId } from "@t3tools/contracts";2import { EnvironmentId, ThreadId, RunId } from "@t3tools/contracts";
3import { beforeEach, describe, expect, it } from "vite-plus/test";3import { beforeEach, describe, expect, it } from "vite-plus/test";
4 4
5import { selectThreadDiffPanelSelection, useDiffPanelStore } from "./diffPanelStore";5import { selectThreadDiffPanelSelection, useDiffPanelStore } from "./diffPanelStore";
@@ -31,7 +31,7 @@ describe("diffPanelStore", () => { · 25 unmodified lines
31 31
32 it("clears incompatible selection fields when changing scopes", () => {32 it("clears incompatible selection fields when changing scopes", () => {
33 const store = useDiffPanelStore.getState();33 const store = useDiffPanelStore.getState();
34 store.selectTurn(THREAD_REF, TurnId.make("turn-1"), "src/app.ts");34 store.selectTurn(THREAD_REF, RunId.make("turn-1"), "src/app.ts");
35 store.selectGitScope(THREAD_REF, "unstaged");35 store.selectGitScope(THREAD_REF, "unstaged");
36 36
37 expect(37 expect(
@@ -45,7 +45,7 @@ describe("diffPanelStore", () => { · 7 unmodified lines
45 });45 });
46 46
47 it("increments the reveal request when opening the same turn file again", () => {47 it("increments the reveal request when opening the same turn file again", () => {
48 const turnId = TurnId.make("turn-1");48 const turnId = RunId.make("turn-1");
49 useDiffPanelStore.getState().selectTurn(THREAD_REF, turnId, "src/app.ts");49 useDiffPanelStore.getState().selectTurn(THREAD_REF, turnId, "src/app.ts");
50 useDiffPanelStore.getState().selectTurn(THREAD_REF, turnId, "src/app.ts");50 useDiffPanelStore.getState().selectTurn(THREAD_REF, turnId, "src/app.ts");
51 51
@@ -65,8 +65,8 @@ describe("diffPanelStore", () => { · 13 unmodified lines
65 });65 });
66 66
67 it("reconciles a missing turn selection to the latest available turn", () => {67 it("reconciles a missing turn selection to the latest available turn", () => {
68 const missingTurnId = TurnId.make("turn-missing");68 const missingTurnId = RunId.make("turn-missing");
69 const latestTurnId = TurnId.make("turn-latest");69 const latestTurnId = RunId.make("turn-latest");
70 useDiffPanelStore.getState().selectTurn(THREAD_REF, missingTurnId, "src/app.ts");70 useDiffPanelStore.getState().selectTurn(THREAD_REF, missingTurnId, "src/app.ts");
71 useDiffPanelStore.getState().reconcileTurnSelection(THREAD_REF, [latestTurnId]);71 useDiffPanelStore.getState().reconcileTurnSelection(THREAD_REF, [latestTurnId]);
72 72