Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggester - UX for Suggesters with multiple responses #700

Open
romaintailhurat opened this issue Sep 29, 2023 · 4 comments
Open

Suggester - UX for Suggesters with multiple responses #700

romaintailhurat opened this issue Sep 29, 2023 · 4 comments
Assignees

Comments

@romaintailhurat
Copy link
Collaborator

romaintailhurat commented Sep 29, 2023

tache de la story

@romaintailhurat romaintailhurat self-assigned this Sep 29, 2023
@romaintailhurat
Copy link
Collaborator Author

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 romaintailhurat changed the title Suggester - UX for multiple suggesters Suggester - UX for Suggesters with multiple responses Oct 17, 2023
@romaintailhurat
Copy link
Collaborator Author

@BulotF un retour là dessus ?

@romaintailhurat
Copy link
Collaborator Author

In InseeFr/Lunatic#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__<nom de la clé>
Par exemple SUGGESTER_PRODUCT_LABEL pour le premier exemple.

@romaintailhurat
Copy link
Collaborator Author

The last proposal is:

SUGGESTER_${RESPONSE_NAME}_${ATTRIBUTE_NAME_IN_NOMENCLATURE}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants