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:
@@ -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}`,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user