Give every public route its own description, and keep canonicals and structured data on the host that serves the page.
Decorative images on the marketing pages stay quiet, and every dialog close button is named Close. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0b6e8b00dd
commit
c180e79c38
52 files changed
+363
-209
No files matched your search
@@ -3,6 +3,7 @@ import {
|
||||
GOVERNANCE_TEMPLATE_CATALOG,
|
||||
GOVERNANCE_TEMPLATE_HOME_SLUGS,
|
||||
getGovernanceTemplatesForHome,
|
||||
templateReviewDocument,
|
||||
} from "../../lib/templates/governanceTemplateCatalog";
|
||||
|
||||
/**
|
||||
@@ -48,4 +49,19 @@ describe("governanceTemplateCatalog (Figma 21764-16435)", () => {
|
||||
]);
|
||||
expect(getGovernanceTemplatesForHome()).toHaveLength(4);
|
||||
});
|
||||
|
||||
it("puts the template name in the review document title", () => {
|
||||
expect(templateReviewDocument("consensus", null)).toEqual({
|
||||
title: "Consensus",
|
||||
description:
|
||||
"Important decisions require unanimous agreement. Proposals pass only if no serious objections remain.",
|
||||
});
|
||||
expect(
|
||||
templateReviewDocument("consensus", {
|
||||
title: "Saved Consensus",
|
||||
description: "Saved description",
|
||||
})?.title,
|
||||
).toBe("Saved Consensus");
|
||||
expect(templateReviewDocument("missing-slug", null)).toBeNull();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user