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

Add a prompt to add the category and or the ingredients to compute the NOVA group if it is missing #3536

Open
Tracked by #4170 ...
teolemon opened this issue Oct 2, 2020 · 0 comments

Comments

@teolemon
Copy link
Member

teolemon commented Oct 2, 2020

if nova is empty, then:

if ( 
status= category-to-be-completed && 
status = ingredients-to-be-completed 
)
then "Add ingredients and a category to see the level of food processing and potential additives"

if ( 
status= category-to-be-completed
)
then "Add a category to see the level of food processing and potential additives"

if ( 
status = ingredients-to-be-completed 
)
then "Add ingredients to see the level of food processing and potential additives"
  • The relevant fields are here: https://world.openfoodfacts.org/api/v0/product/5425600101745.json?fields=states_tags
  • The button and the logic system already exists for the Nutri-Score, so extending it should be simple.
  • We should then jump at the right place (either ingredient tab if no ingredient picture is there, or editing in the summary tab if the category is missing)
  • Better yet, a custom simplified edit mode with just what's needed to get the NOVA

Mockup of the Nutri-Score buttons for iOS (you can see them live on some products in the Android version)
image

@teolemon teolemon added editing Issues relating to allowing the user to edit products Product page labels Oct 2, 2020
@teolemon teolemon added road to scores and removed editing Issues relating to allowing the user to edit products labels Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant