Keep every picked card on the finished Rule, and wait for its words before Continue.
This commit is contained in:
1 parent
a846169960
commit
a2815ae05f
16 files changed
+417
-114
No files matched your search
@@ -80,7 +80,6 @@ const CM_LABELS: Record<string, string> = {
|
||||
function needsPlaceholderPresetEnrichment(entry: CommunityRuleEntry): boolean {
|
||||
if (entry.blocks && entry.blocks.length > 0) return false;
|
||||
const b = (entry.body ?? "").trim();
|
||||
if (b.length === 0) return true;
|
||||
return b === TEMPLATE_COMPOSITION_SUGGESTED_BODY;
|
||||
}
|
||||
|
||||
@@ -196,15 +195,12 @@ function sectionFromStoredCoreValues(
|
||||
for (const row of raw) {
|
||||
if (!row || typeof row !== "object") continue;
|
||||
const o = row as Record<string, unknown>;
|
||||
const chipId = typeof o.chipId === "string" ? o.chipId : "";
|
||||
const label = nonEmptyTrimmed(o.label);
|
||||
if (!label) continue;
|
||||
const merged = mergeCoreValueDetailWithPresets(chipId, label, {
|
||||
meaning: typeof o.meaning === "string" ? o.meaning : "",
|
||||
signals: typeof o.signals === "string" ? o.signals : "",
|
||||
});
|
||||
const meaning = (merged.meaning ?? "").trim();
|
||||
const signals = (merged.signals ?? "").trim();
|
||||
const meaning =
|
||||
typeof o.meaning === "string" ? o.meaning.trim() : "";
|
||||
const signals =
|
||||
typeof o.signals === "string" ? o.signals.trim() : "";
|
||||
const bodyParts: string[] = [];
|
||||
if (meaning.length > 0) bodyParts.push(meaning);
|
||||
if (signals.length > 0) bodyParts.push(signals);
|
||||
|
||||
Reference in new issue
Block a user