openfoodfacts / smooth-app

🤳🥫 The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
https://world.openfoodfacts.org/open-food-facts-mobile-app?utm_source=off&utf_medium=web&utm_campaign=github-repo
Apache License 2.0
855 stars 283 forks source link

Create a side by side compare mode (to be hidden away in dev mode for the moment) #4223

Open teolemon opened 1 year ago

teolemon commented 1 year ago

What

Screenshot

monsieurtanuki commented 1 year ago

Nice idea! Like Hunger games, it could be an app by itself.

Not entirely convinced by the UX though (and the scan part):

But the first step would be the side by side display of two products anyway.

monsieurtanuki commented 1 year ago

First raw tests. Please share some comments.

a bit redundant less verbose
Screenshot_2023-07-23-17-48-03 Screenshot_2023-07-23-18-17-53
teolemon commented 1 year ago
monsieurtanuki commented 1 year ago

@teolemon I assume that you preferred the second column. There would be special cases:

teolemon commented 1 year ago
monsieurtanuki commented 1 year ago

No problem, we can put the generic label in one row and then a list of "colored dots" in the next row. That said, it would be hard to put more than 3 products because of the product names. What I meant with "the second column" is that we cannot be verbose.

monsieurtanuki commented 1 year ago

I've added a colored score on top, and displayed nutriscore and nova differently. Not satisfactory yet... Screenshot_2023-07-23-20-29-35

teolemon commented 1 year ago
monsieurtanuki commented 1 year ago
monsieurtanuki commented 1 year ago
@teolemon Something like that then: top bottom
Screenshot_2023-07-24-15-23-52 Screenshot_2023-07-24-15-23-59
monsieurtanuki commented 1 year ago

@teolemon Still at least several points bothering me:

monsieurtanuki commented 1 year ago
@teolemon Looks like that: page 1 page 2 page 3
Screenshot_2023-07-25-09-16-26 Screenshot_2023-07-25-09-16-33 Screenshot_2023-07-25-09-16-39
monsieurtanuki commented 1 year ago

Comparing 3 similar products...

page 1 page 2
Screenshot_2023-07-26-16-50-44 Screenshot_2023-07-26-16-50-59
page 3 page 4
Screenshot_2023-07-26-16-51-04 Screenshot_2023-07-26-16-51-10
monsieurtanuki commented 1 year ago

@teolemon Any suggestion?

teolemon commented 1 year ago

@monsieurtanuki

monsieurtanuki commented 1 year ago
  • can we ensure that the first 3 things are: Nutri-Score, Food processing (NOVA) and Eco-Score

Not sure it would be easy (if the users did not select any of them as important it's not supposed to be part of the score) or even desirable (if the users did not select any of them maybe it's because it's not important to them). The displayed attributes are sorted by descending importance. What I can do is to put them on top, regardless of the attribute order, but only if they were selected as at least important by the user.

  • can we put: "Personal compatibility score" instead of "score"

It would be awkward to repeat that label 3 times. Another solution would be to put the label on top, but then we would only have display a number in the "colored" line. Maybe if we center the numbers it will be explicit enough.

  • can we put a miniature photo on top ?

I can try, but I don't think we have enough space. (I don't have enough space). The barcode would make sense, too.

  • can we make the product name (or the miniature) sticky and visible at all times ?

Would make sense indeed.

  • can you remove the half stars for the time being ? they bring confusion to numerical values interested users (a minority) are able to parse themselves

Not sure what you mean, as there are no stars for "normal" nutrients. Only for "preference" nutrients like fat or salt. That are repeated, as preference and as nutrient. Regarding the stars, it was an attempt to improve accessibility (colors are not enough). I can put back the background color and remove the stars. I should probably remove the salt as nutrient if there's already the salt as preference.

monsieurtanuki commented 1 year ago
@teolemon Something like that? top bottom
Screenshot_2023-07-28-09-06-42 Screenshot_2023-07-28-09-18-23