-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
Direct link to "fix that ingredient" from Knowledge Panel #2245
Comments
This is in fact a more common problem, not just for vegan/vegetarian, so we should aim for a more general solution |
Don't know if some backend changes are needed for this |
@M123-dev The thing is that even on the website I don't understand what to do with unknown ingredients. Regarding "forcing" the vegetarian status, I guess it should be done on the server side as it changes the score too. But that was not the main point of my OP. |
It actually does, if there is a vegan or vegetarian label, then it is used for the vegan / vegetarian attributes and knowledge panels. |
One thing we could do is to add default labels for some product categories. So if a product is in the breakfast cereals category for instance, we could consider that all unknown ingredients are most probably vegetarian (and in the panels we would still list them). |
Not sure if it would be fair to make those assumptions - unless you add a value "probably vegetarian". I really think that making it easy to "fix/add" an ingredient is good:
|
Making it easy is actually quite difficult though. But we can at least make it easy to report is to us, with a link to the help us page as you suggest. |
I will add a panel server side to display information on how to help improve the ingredient analysis. Corresponding bug server side: openfoodfacts/openfoodfacts-server#6904 |
@monsieurtanuki I have a PR for the server side here: openfoodfacts/openfoodfacts-server#6905 With screenshots on what it looks like on the app (it's deployed on world.openfoodfacts.dev ). In order to get the same display on the app, we would need to add support for 2 features:
on the web site we have: .text_info { But for Smoothie, we could probably re-use the light mode and dark mode color and background for the "grade C" button. This is to differentiate visually ingredients that were not recognized. |
Ok @stephanegigandet, as soon as your PR is merged we can start to code in smoothie in order to use the added data. |
@stephanegigandet I've just had a look at https://world.openfoodfacts.dev/api/v2/product/5010477348630/ which does not know all ingredients (cf. https://fr.openfoodfacts.dev/produit/5010477348630/muesli-bio-jordans), but I cannot see your |
Hi @monsieurtanuki , the callout is in the knowledge panels, they have to be requested specifically: https://world.openfoodfacts.dev/api/v2/product/5010477348630?fields=knowledge_panels |
Thank you @stephanegigandet! A little problem: in off-dart we expect an optional field called /// Type of the text description, Client may choose to display the description
/// depending upon the type.
@JsonKey(
name: 'text_type',
unknownEnumValue: KnowledgePanelTextElementType.DEFAULT)
final KnowledgePanelTextElementType? type; And in "your" json it's {
"element_type": "text",
"text_element": {
"html": "\n <h3>We need your help!</h3>\n <p>You can help us recognize more ingredients and better analyze the list of ingredients for this product and others:</p>\n <ul>\n <li>Edit this product page to correct spelling mistakes in the ingredients list, and/or to remove ingredients in other languages and sentences that are not related to the ingredients.</li>\n <li>Add new entries, synonyms or translations to our multilingual lists of ingredients, ingredient processing methods, and labels.</li>\n </ul>\n <p>If you would like to help, join the #ingredients channel on <a href=\"https://slack.openfoodfacts.org\">our Slack discussion space</a> and/or learn about <a href=\"https://wiki.openfoodfacts.org/Ingredients_Extraction_and_Analysis\">ingredients analysis on our wiki</a>. Thank you!</p> \n ",
"type": "callout_info"
}
} Actually we don't use the |
Hi @stephanegigandet!
It looks like:
|
Problem
As a vegetarian, I find it very frustrating to see obvious vegetarian or vegan products not being flagged so just because there's an unknown ingredient or a potentially non-vegetarian ingredient. Happens all the time with soy milk and breakfast cereals.
That could even be a deal breaker: "so you think you're smart but you don't even know that soy milk is vegan?"
Proposed solution
Beyond the fact that a "vegan" or "vegetarian" label should maybe override OFF's assessment, I suggest to put a direct link from "unknown ingredient" to a "help us fix that ingredient" website page.
Additional context
barcode 5010477348630
The text was updated successfully, but these errors were encountered: