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:
@@ -248,4 +248,35 @@ describe("parsePublishedDocumentForCommunityRuleDisplay", () => {
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("shows custom decision description without a seeded 75% consensus row", () => {
|
||||
const customId = "00000000-0000-4000-8000-000000000170";
|
||||
const out = parsePublishedDocumentForCommunityRuleDisplay({
|
||||
sections: [],
|
||||
methodSelections: {
|
||||
decisionApproaches: [
|
||||
{
|
||||
id: customId,
|
||||
label: "Forum proposals",
|
||||
supportText: "Anyone can start a thread.",
|
||||
sections: {
|
||||
corePrinciple: "",
|
||||
applicableScope: [],
|
||||
selectedApplicableScope: [],
|
||||
stepByStepInstructions: "",
|
||||
consensusLevel: 75,
|
||||
objectionsDeadlocks: "",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
const decision = out.find((s) => s.categoryName === "Decision-making");
|
||||
expect(decision?.entries).toEqual([
|
||||
{
|
||||
title: "Forum proposals",
|
||||
body: "Anyone can start a thread.",
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user