Pogues
Pogues copied to clipboard
Suggester - UX for Suggesters with multiple responses
tache de la story
- https://github.com/InseeFr/Concevoir-Workplace/issues/31
In the case of an suggester list that associate to a code multiple attributes or values, we want two things in the UI:
- to display this information as soon as the list is selected
- to create the related collected variables.
For the first part, i suggest this kind of implementation in order to quickly give the information of multiple variables →
For the second part, we just have to produced the related variables when generating using the ad hoc button in the Collected variables tab. We also should handles the naming of these variables, for example, using the example given in the screenshot above:
- SUGGESTER
- SUGGESTER_LIBELLE
- SUGGESTER_UNITE
- SUGGESTER_CATEGORIE
@BulotF un retour là dessus ?
In https://github.com/InseeFr/Lunatic/pull/900:
Une suggestion sur le nommage des variables : pour éviter des collisions de nommage, on devrait adopter un schéma de nommage, du style SUGGESTER_<ID de la liste>_<nom de la clé> Par exemple SUGGESTER_PRODUCT_LABEL pour le premier exemple.
The last proposal is:
SUGGESTER_${RESPONSE_NAME}_${ATTRIBUTE_NAME_IN_NOMENCLATURE}