Show seven cards on the four method decks and open each as a routing overlay of its parts, so groups write from empty fields with Generate draft, search the full deck, and see unselected scope chips with enough contrast.

This commit is contained in:
adilallo committed 2026-11-05 22:43:30 -07:00
1 parent dea7dd7fbd
commit 46656f52d3
28 files changed
+1349 -318

No files matched your search

@@ -0,0 +1,36 @@
import { describe, expect, it } from "vitest";
import { formatRecommendationWhyLine } from "../../lib/create/formatRecommendationWhyLine";
import type { GroupAnswers } from "../../lib/create/deckTypes";
import messages from "../../messages/en/index";
const copy = messages.create.customRule.recommendations;
const emptyAnswers: GroupAnswers = {
size: null,
mainKind: null,
otherKinds: [],
scale: [],
stage: null,
traits: {},
};
describe("formatRecommendationWhyLine", () => {
it("builds a fit line from kind and size", () => {
expect(
formatRecommendationWhyLine(
{ kind: "fit", matched: ["kind"] },
{ ...emptyAnswers, mainKind: "workersCoop", size: "sixToTwelve" },
copy,
),
).toBe("Fits a worker co-op of 6 to 12 people");
});
it("builds an added line from the setup answer", () => {
expect(
formatRecommendationWhyLine(
{ kind: "added", answer: "employer" },
emptyAnswers,
copy,
),
).toBe("Added because you said you pay some people to do your work");
});
});