Keep the template picker in the create flow, make catalog cards real links, and stop showing a fake community when review has no draft.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-09-10 15:22:46 -06:00
co-authored by Cursor
parent 3f9a8395be
commit 90db213413
31 changed files with 412 additions and 126 deletions
@@ -12,6 +12,10 @@ export default {
control: false,
description: "Catalog entries to render as a 2-column grid of Rules",
},
hrefForTemplate: {
control: false,
description: "Builds the review URL for each template card (real <a> href)",
},
onTemplateClick: { action: "template-clicked" },
},
};
@@ -19,11 +23,13 @@ export default {
export const Default = {
args: {
entries: GOVERNANCE_TEMPLATE_CATALOG.slice(0, 4),
hrefForTemplate: (slug) => `/create/review-template/${slug}`,
},
};
export const SingleEntry = {
args: {
entries: GOVERNANCE_TEMPLATE_CATALOG.slice(0, 1),
hrefForTemplate: (slug) => `/create/review-template/${slug}`,
},
};