Stop seeding 75% consensus on custom decision cards so wizard copy shows on the published rule.
Wire Back on the final-review chip editor to the same dismiss path as close, instead of a no-op. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -14,8 +14,8 @@ export interface CommunityRuleEntry {
|
||||
/** Plain text; split on blank lines into paragraphs when rendering. */
|
||||
body: string;
|
||||
/**
|
||||
* When set, rendered as Figma-style label + body stacks. If non-empty, takes
|
||||
* precedence over {@link body} for main content (body may be empty).
|
||||
* Figma-style label + body stacks (facet sections, wizard fields). Shown
|
||||
* after {@link body} when both are present.
|
||||
*/
|
||||
blocks?: CommunityRuleLabeledBlock[];
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ function CommunityRuleView({
|
||||
<TextBlock
|
||||
key={entryIndex}
|
||||
title={entry.title}
|
||||
body={hasBlocks ? undefined : entry.body}
|
||||
body={entry.body}
|
||||
rows={hasBlocks ? entry.blocks : undefined}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -94,9 +94,10 @@ function TextBlockView({
|
||||
>
|
||||
<p className={`${ENTRY_TITLE_CLASS} w-full min-w-0`}>{title}</p>
|
||||
<div className="flex min-w-0 flex-col gap-3">
|
||||
{body.trim().length > 0 ? <ParagraphGroup text={body} /> : null}
|
||||
{hasRows
|
||||
? rows!.map((row, i) => <LabeledRowView key={i} row={row} />)
|
||||
: body.trim().length > 0 && <ParagraphGroup text={body} />}
|
||||
: null}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user