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:
@@ -314,6 +314,37 @@ describe("createFlowStateFromPublishedRule", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("hydrates wizard supportText from published methodSelections", () => {
|
||||
const customId = "b7c0a9f3-0000-4000-8000-000000000002";
|
||||
const partial = createFlowStateFromPublishedRule({
|
||||
id: "rule-custom-desc",
|
||||
title: "C",
|
||||
summary: "",
|
||||
document: {
|
||||
methodSelections: {
|
||||
decisionApproaches: [
|
||||
{
|
||||
id: customId,
|
||||
label: "Forum proposals",
|
||||
supportText: "Anyone can start a thread.",
|
||||
sections: {
|
||||
corePrinciple: "",
|
||||
applicableScope: [],
|
||||
selectedApplicableScope: [],
|
||||
stepByStepInstructions: "",
|
||||
objectionsDeadlocks: "",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
expect(partial.customMethodCardMetaById?.[customId]).toEqual({
|
||||
label: "Forum proposals",
|
||||
supportText: "Anyone can start a thread.",
|
||||
});
|
||||
});
|
||||
|
||||
it("sets sections to [] even when methodSelections is missing (edit hydrate)", () => {
|
||||
const partial = createFlowStateFromPublishedRule({
|
||||
id: "rule-2",
|
||||
|
||||
Reference in New Issue
Block a user