Show the remade card names on template detail, matching final review, and say one size fits all.
This commit is contained in:
1 parent
f634a91bb2
commit
54a4871ad1
4 files changed
+256
-8
No files matched your search
@@ -7,7 +7,7 @@ import type { Category, RuleProps } from "../Rule";
|
||||
import { getAssetPath } from "../../../../lib/assetUtils";
|
||||
import type { RuleTemplateDto } from "../../../../lib/create/fetchTemplates";
|
||||
import {
|
||||
templateBodyToReviewData,
|
||||
templateReviewDataForSlug,
|
||||
templateSummaryFromBody,
|
||||
} from "../../../../lib/create/templateReviewMapping";
|
||||
import {
|
||||
@@ -26,9 +26,9 @@ export interface TemplateReviewCardProps {
|
||||
|
||||
/**
|
||||
* Expanded Rule for template review: surfaces + icon from Figma catalog (21764-16435);
|
||||
* tag rows from API `body`. Chip clicks open a read-only detail modal per
|
||||
* facet group (values / communication / membership / decision-making / conflict
|
||||
* management) so reviewers can see what each chip means without editing.
|
||||
* tag rows from the remade catalog chips. Chip clicks open a read-only detail
|
||||
* modal per facet group (values / communication / membership / decision-making /
|
||||
* conflict management) so reviewers can see what each chip means without editing.
|
||||
*/
|
||||
export function TemplateReviewCard({
|
||||
template,
|
||||
@@ -38,8 +38,8 @@ export function TemplateReviewCard({
|
||||
const catalog = getGovernanceTemplateCatalogEntry(template.slug);
|
||||
const pres = catalog ?? TEMPLATE_GRID_FALLBACK_PRESENTATION;
|
||||
const { categories: rawCategories, chipDetailsByChipId } = useMemo(
|
||||
() => templateBodyToReviewData(template.body),
|
||||
[template.body],
|
||||
() => templateReviewDataForSlug(template.slug, template.body),
|
||||
[template.slug, template.body],
|
||||
);
|
||||
const summary = templateSummaryFromBody(template.description, template.body);
|
||||
|
||||
|
||||
Reference in new issue
Block a user