Update create flow pages

This commit is contained in:
adilallo
2026-04-13 18:24:13 -06:00
parent a39b4aa04b
commit a0de78c020
66 changed files with 1028 additions and 538 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ describe("flowSteps", () => {
});
it("isValidStep reflects FLOW_STEP_ORDER membership", () => {
expect(isValidStep("select")).toBe(true);
expect(isValidStep("community-size")).toBe(true);
expect(isValidStep("confirm-stakeholders")).toBe(true);
expect(isValidStep("nope")).toBe(false);
expect(isValidStep(null)).toBe(false);
+4 -2
View File
@@ -1,5 +1,5 @@
import { describe, it, expect } from "vitest";
import { hasCreateFlowUserInput } from "../../app/create/hasCreateFlowUserInput";
import { hasCreateFlowUserInput } from "../../app/create/utils/hasCreateFlowUserInput";
describe("hasCreateFlowUserInput", () => {
it("returns false for empty state", () => {
@@ -7,7 +7,9 @@ describe("hasCreateFlowUserInput", () => {
});
it("ignores currentStep alone", () => {
expect(hasCreateFlowUserInput({ currentStep: "text" })).toBe(false);
expect(hasCreateFlowUserInput({ currentStep: "informational" })).toBe(
false,
);
});
it("returns true for non-empty title", () => {