refactor: remove legacy workspace UI state
This commit is contained in:
@@ -36,8 +36,8 @@ test("submitting includes browser-local migrated preferences and calls onCreated
|
||||
workspace: "default", provider: "zai", model: "glm-5.2", thinking: "low",
|
||||
})),
|
||||
http.get("/api/workspaces", () => HttpResponse.json([{
|
||||
id: "default", name: "default", file: "default.yaml", displayName: "Default",
|
||||
revision: { state: "operational" },
|
||||
id: "default", name: "default", file: "default.yaml", displayName: "Default", language: "en",
|
||||
revision: workspaceRevisionFixture("default"),
|
||||
}])),
|
||||
http.get("/api/workspaces/default", () => HttpResponse.json({
|
||||
workspace: canonicalWorkspaceFixture("default", ["zai/glm-5.2"], "zai/glm-5.2"),
|
||||
@@ -67,7 +67,7 @@ test("first-run direct dialog creation waits for registry policy without a mount
|
||||
let policyRequestStarted = false;
|
||||
const policyMayFinish = new Promise<void>((resolve) => { releasePolicy = resolve; });
|
||||
const revision = {
|
||||
id: "psd-clinical", commit: "a".repeat(40), blob: "b".repeat(40), snapshotPath: "/snapshot", state: "operational" as const,
|
||||
id: "psd-clinical", commit: "a".repeat(40), blob: "b".repeat(40), snapshotPath: "/snapshot",
|
||||
};
|
||||
localStorage.setItem("thothii.workspace-registry.v1.preferences", JSON.stringify({
|
||||
workspaceId: "psd-clinical", provider: "deepseek", model: "deepseek-v4-pro", thinking: "medium",
|
||||
@@ -76,7 +76,7 @@ test("first-run direct dialog creation waits for registry policy without a mount
|
||||
http.get("/api/workspaces", () => {
|
||||
summaryRequestStarted = true;
|
||||
return HttpResponse.json([{
|
||||
id: "psd-clinical", name: "psd-clinical", file: "psd-clinical.yaml", displayName: "PSD Clinical",
|
||||
id: "psd-clinical", name: "psd-clinical", file: "psd-clinical.yaml", displayName: "PSD Clinical", language: "en",
|
||||
revision,
|
||||
}]);
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user