Implement core value modals

This commit is contained in:
adilallo committed 2026-04-15 23:13:28 -06:00
1 parent beae150f02
commit eedb70f9f3
15 files changed
+806 -101

No files matched your search

+19
View File
@@ -101,6 +101,25 @@ describe("createFlowStateSchema", () => {
});
expect(r.success).toBe(false);
});
it("accepts coreValueDetailsByChipId", () => {
const r = createFlowStateSchema.safeParse({
coreValueDetailsByChipId: {
"1": { meaning: "We care about access.", signals: "Blocking access." },
"uuid-here": { meaning: "", signals: "" },
},
});
expect(r.success).toBe(true);
});
it("rejects core value detail strings that are too long", () => {
const r = createFlowStateSchema.safeParse({
coreValueDetailsByChipId: {
"1": { meaning: "x".repeat(8001), signals: "y" },
},
});
expect(r.success).toBe(false);
});
});
describe("putDraftBodySchema", () => {