Keep the review card’s fallback color on the draft so a reload does not pick a new one.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilalloandCursor committed 2026-09-29 14:01:38 -06:00
1 parent 56adcd59fd
commit 6d536880fe
8 files changed
+165 -8

No files matched your search

+14
View File
@@ -148,6 +148,20 @@ describe("createFlowStateSchema", () => {
expect(r.success).toBe(true);
});
it("accepts previewSurfaceColor hsl fills", () => {
const r = createFlowStateSchema.safeParse({
previewSurfaceColor: "hsl(12, 50%, 80%)",
});
expect(r.success).toBe(true);
});
it("rejects previewSurfaceColor that is not an hsl fill", () => {
const r = createFlowStateSchema.safeParse({
previewSurfaceColor: "red",
});
expect(r.success).toBe(false);
});
it("accepts templateReviewBackSlug", () => {
const r = createFlowStateSchema.safeParse({
templateReviewBackSlug: "mutual-aid-mondays",