Open each core value as a card of meaning and signals steps, so groups write their own words from an empty field with Generate draft, skip values without blocking the flow, and Customize without keeping helper text as the description.

This commit is contained in:
adilallo committed 2026-11-05 21:28:00 -07:00
1 parent 2a7b9e6da7
commit 64a542f456
25 files changed
+877 -354

No files matched your search

@@ -135,6 +135,29 @@ describe("ModalTextAreaField behavior", () => {
expect(onChange).toHaveBeenCalledWith("Catalog first draft");
});
it("hides Generate draft on a filled field and shows the filled hint", () => {
renderWithProviders(
<ModalTextAreaField
label="Core principle"
value="Community words"
onChange={() => {}}
generateDraftText="Catalog first draft"
generateDraftLabel="Generate draft"
generateDraftHint="See our first draft for this value"
filledHint="These are your community's words. Change anything that does not fit."
/>,
);
expect(
screen.queryByRole("button", { name: "Generate draft" }),
).not.toBeInTheDocument();
expect(
screen.getByText(
"These are your community's words. Change anything that does not fit.",
),
).toBeInTheDocument();
});
it("hides Generate draft when there is no catalog copy", () => {
renderWithProviders(
<ModalTextAreaField