Pogues icon indicating copy to clipboard operation
Pogues copied to clipboard

Suggester - UX for Suggesters with multiple responses

Open romaintailhurat opened this issue 1 year ago • 4 comments

tache de la story

  • https://github.com/InseeFr/Concevoir-Workplace/issues/31

romaintailhurat avatar Sep 29 '23 10:09 romaintailhurat

In the case of an suggester list that associate to a code multiple attributes or values, we want two things in the UI:

  1. to display this information as soon as the list is selected
  2. 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 →

image

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

romaintailhurat avatar Oct 16 '23 14:10 romaintailhurat

@BulotF un retour là dessus ?

romaintailhurat avatar Nov 14 '23 07:11 romaintailhurat

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.

romaintailhurat avatar Mar 08 '24 07:03 romaintailhurat

The last proposal is:

SUGGESTER_${RESPONSE_NAME}_${ATTRIBUTE_NAME_IN_NOMENCLATURE}

romaintailhurat avatar Mar 08 '24 16:03 romaintailhurat