openfoodfacts / openfoodfacts-androidapp

(Legacy) Native version of Open Food Facts on Android - Coders & Decoders welcome 🤳🥫
https://android.openfoodfacts.org
Apache License 2.0
767 stars 447 forks source link

Add products from the same category, with a better Nutriscore #825

Open teolemon opened 6 years ago

teolemon commented 6 years ago

Add products from the same category, with a better Nutriscore

Example for a hamburger ranked C:

Display a "Look for similar products with a better Nutriscore" button that will display a view with A and B hamburgers, ranked by score:

https://world.openfoodfacts.org/category/hamburgers/nutrition-grades.json
https://world.openfoodfacts.org/category/hamburgers/nutrition-grade/a.json
https://world.openfoodfacts.org/category/hamburgers/nutrition-grade/b.json
Karljoones commented 6 years ago

Could do this as "similar products" tab, with products listed in the users country. There would be no point suggesting a product that is only sold in one country to a user that is in another. Though the issue with this is that not all products have the full list of countries sold...

Shubham-vish commented 6 years ago

Okay, I got this and I am working on this.

Shubham-vish commented 6 years ago

@Karljoones @teolemon I am thinking to add a tab in ProductActivity in which products with same category and country with better nutritiscore would appear. Can I proceed with it, please provide your thoughts.

teolemon commented 6 years ago

I was thinking of a lateral scrolling list of products, with their nutriscore, a bit like in the PlayStore

image

teolemon commented 4 years ago

We have a server-side initiative by @stephanegigandet to do that. Please don't take that issue until we have fixed server side specs, and a reference design to implement it client side.

teolemon commented 3 years ago

We now have a simplified way to do this: https://world.openfoodfacts.org/category/prepared-lasagne.json?fields=product_name,nutriscore_score&sort_by=nutriscore_score

kartikaysharma01 commented 3 years ago

I would like to work on this. Do we have a reference design? @teolemon

teolemon commented 3 years ago

No I don't. It would probably look like a carousel.