openfoodfacts/smooth-app

Allow the user to find alternatives products on a scan even if (s)he has scanned only 1 product

Closed this issue · 5 comments

Allow the user to find alternatives products on a scan even if (s)he has scanned only 1 product

@teolemon For the record there's a singular they, an alternative to (s)he.

@teolemon Beyond the UX/UI aspects, is there already an API for that?

No peculiar API. I was thinking of using the "most significant low level" category of the product, and doing a category sort (similar to what is done on the home screen).
But we don't have any server side API to find the "most significant low level" category. So I was thinking about a dropdown letting the user decide (do they want a better Cocoa and Hazelnut spread, do they want a better Sugary spread, do they want a better Plant based spread)
@stephanegigandet thoughts on this

@teolemon I agree, you cannot know for sure what the end-user is looking for:

  • we could put a button on the product page ("find alternative products")
  • then ask them which of the product's "categories" match their interest
  • run a dedicated API (list of products that belong to that "category")
  • create and display the corresponding product list, where they can rank the products

As far as I've understood the issue, fixed by #183.