InseeFr / Pogues

Questionnaire designer
MIT License
20 stars 17 forks source link

Handling label types between VTL, Markdown and simple text #642

Open romaintailhurat opened 1 year ago

romaintailhurat commented 1 year ago

There are different types of label in Pogues:

  1. simple text
  2. Markdown text
  3. VTL expression

The first and second could be presented as a single option (simple text being valid Markdown) but are distinct from the third one.

We need to manage those different types. A previous idea was to ask users to consider simple text / markdown as a VTL string (between "), but some users want to still use simple text as input for their labels.

So we need to handle that explicitly, with a UI for choosing the type of labels (Markdown or VTL) for each label fields.

This need to be validated

romaintailhurat commented 1 year ago

@MickaelMenet @BulotF if the idea seems good to you, i can provide a UI for this

romaintailhurat commented 11 months ago

This UI feature will allow to use VTL at its best (and avoid quirks like this one)