diff --git a/src/Models/ThemeConfig/Conversion/PrepareLayer.ts b/src/Models/ThemeConfig/Conversion/PrepareLayer.ts index 40cbc168c..e83c01fa6 100644 --- a/src/Models/ThemeConfig/Conversion/PrepareLayer.ts +++ b/src/Models/ThemeConfig/Conversion/PrepareLayer.ts @@ -179,6 +179,13 @@ export class AddQuestionBox extends DesugaringStep { * const tagRenderings = [{id:"questions", render: {"*": "{questions()}" } }] * const conv = action.convert({tagRenderings}, ConversionContext.construct(["test"], [])) * conv.tagRenderings // => [{id:"questions", render: {"*": "{questions()}" } }] + * + * + * // If a partial questionbox is added, should not add "hidden" to the blacklist + * const action = new AddQuestionBox() + * const tagRenderings = [{id:"questions-some-category", render: {"*": "{questions(whitelist,blacklist,)}" } },{id:"questions-black", render: {"*": "{questions(blacklist)}" } }] + * const conv = action.convert({tagRenderings}, ConversionContext.construct(["test"], [])) + * conv.tagRenderings // => [{id:"questions-some-category", render: {"*": "{questions(whitelist,blacklist,)}" } },{id:"questions-black", render: {"*": "{questions(blacklist)}" } }, {id:"leftover-questions",labels: ["ignore-docs","added_by_default"], render: {"*": "{questions( ,hidden;blacklist;whitelist)}" } }] */ convert(json: LayerConfigJson, context: ConversionContext): LayerConfigJson { if (