Create flow centralization and cleanup

This commit is contained in:
adilallo
2026-04-30 08:11:55 -06:00
parent a37a72c71d
commit b7446873cd
26 changed files with 709 additions and 361 deletions
@@ -0,0 +1,13 @@
import { describe, expect, it } from "vitest";
import { CREATE_FLOW_SCREEN_REGISTRY } from "../../app/(app)/create/utils/createFlowScreenRegistry";
import { VALID_STEPS } from "../../app/(app)/create/utils/flowSteps";
describe("create flow registry vs valid steps (CR-92 §3)", () => {
it("CREATE_FLOW_SCREEN_REGISTRY defines every VALID_STEPS id", () => {
const keys = new Set(Object.keys(CREATE_FLOW_SCREEN_REGISTRY));
for (const step of VALID_STEPS) {
expect(keys.has(step), `missing registry entry for ${step}`).toBe(true);
}
expect(keys.size).toBe(VALID_STEPS.length);
});
});