-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
App should show brand for ingredients #630
Comments
re search, i would like to be able to fuzzy search, for example "pudd dan" would include "danone pudding" re displaying brand, it seems the api currently doesn't include this information, perhaps @rolandgeider can find a way to include it. |
It seems the API has brands : https://pub.dev/documentation/openfoodfacts/latest/openfoodfacts/OpenFoodAPIClient/getProductV3.html Here is how Energize searches for OFF products : https://codeberg.org/epinez/Energize/src/commit/f96c9183c0f4537dac70673055fb704135c16017/lib/services/food_database_bindings/open_food_facts/open_food_facts_binding.dart#L56 and how they consume the results from OFF : https://codeberg.org/epinez/Energize/src/commit/f96c9183c0f4537dac70673055fb704135c16017/lib/models/food/food.dart#L242 |
FWIW i meant the wger api. |
Use case
Some products/ingredients are manufactured and sold under the same name but different brands, and also do not have the same nutritional values. It is therefore difficult to choose between equally named ingredients when searching for one.
Proposal
The list obtained after a search in the nutrition tab should also display the brand, as fetched from eg. OpenFoodFacts. And the details panel too.
Maybe even, the search input could have a separate field for brand ? At least, search should also operate on brands : it is often quicker that way, because not so many brands will sell products with the same name but different nutritional values (at least in a given country).
More generally, inspiration, and maybe even some code, could be taken from the Energize app, which has way less features than wger but imho a better interface for food logging (including responsiveness).
The text was updated successfully, but these errors were encountered: