fix(studio): refine preset surfaces and repair gallery interactions
Quality / quality (ubuntu-latest) (push) Failing after 11m2s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
Clintchiz committed 2026-10-19 19:10:44 +05:30
1 parent f642a84c58
commit bb40dffee8
20 files changed
+345 -72

No files matched your search

@@ -33,3 +33,18 @@ test("choosing a new preset stays undoable and never mutates the catalog", () =>
session.undo();
expect(session.valid.id).toBe("square");
});
test("revised directions stay distinct and Editorial status tokens remain monochrome", () => {
const organic = ["soft", "forest", "ember"].map((id) => STUDIO_PRESETS[id]!);
expect(new Set(organic.map((s) => s.modes!.light!["color.bg"]!.value)).size).toBe(3);
expect(new Set(organic.map((s) => s.tokens["shape.control"]!.value)).size).toBe(3);
for (const tokens of [
STUDIO_PRESETS.editorial!.tokens,
...Object.values(STUDIO_PRESETS.editorial!.modes!),
]) {
for (const name of ["success", "warning", "danger", "info"]) {
const color = String(tokens[`color.${name}`]!.value);
expect(color).toMatch(/^#([0-9a-f]{2})\1\1$/i);
}
}
});