Implement core-values screen

This commit is contained in:
adilallo
2026-04-15 22:14:46 -06:00
parent b15f0d6226
commit beae150f02
16 changed files with 460 additions and 77 deletions
@@ -17,10 +17,13 @@ describe("getProportionBarProgressForCreateFlowStep", () => {
);
});
it("uses 2-0 on community-save and review (end of Create Community segment)", () => {
it("uses 2-0 on community-save, review, and core-values (Create Community segment / same fill)", () => {
expect(getProportionBarProgressForCreateFlowStep("community-save")).toBe(
"2-0",
);
expect(getProportionBarProgressForCreateFlowStep("review")).toBe("2-0");
expect(getProportionBarProgressForCreateFlowStep("core-values")).toBe(
"2-0",
);
});
});
+3 -2
View File
@@ -36,6 +36,7 @@ describe("flowSteps", () => {
it("isValidStep reflects FLOW_STEP_ORDER membership", () => {
expect(isValidStep("community-size")).toBe(true);
expect(isValidStep("confirm-stakeholders")).toBe(true);
expect(isValidStep("core-values")).toBe(true);
expect(isValidStep("nope")).toBe(false);
expect(isValidStep(null)).toBe(false);
});
@@ -65,7 +66,7 @@ describe("flowSteps", () => {
it("skipCommunitySave does not change steps outside the save segment", () => {
const opts = { skipCommunitySave: true } as const;
expect(getNextStep("community-size", opts)).toBe("community-upload");
expect(getNextStep("review", opts)).toBe("cards");
expect(getPreviousStep("cards", opts)).toBe("review");
expect(getNextStep("review", opts)).toBe("core-values");
expect(getPreviousStep("cards", opts)).toBe("core-values");
});
});