-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat(main): correct and add label logos #1322
feat(main): correct and add label logos #1322
Conversation
Have the existing URLs point to .org production domain instead of .net staging domain. Point to SVG if available, otherwise use the PNG version. Images taken as linked on the main Open Food Facts site. Thanks to Alexandre F and @hangy for providing guidance on fixing this. Signed-off-by: Nico Rikken <nico@nicorikken.eu>
Sort JSON data to more easily detect if labels are missing or already are present. Signed-off-by: Nico Rikken <nico@nicorikken.eu>
I'd like to improve this pull-request by including all labels currently requested by Hunger Games for which an image is available. Maybe somebody here can provide me that list? |
Add more label logo's based on experience using the Hunger app. Signed-off-by: Nico Rikken <nico@nicorikken.eu>
f6798d9
to
249dda0
Compare
Thank you for contribution! I'm merging it, you can add new logos in a future PR |
Here is the info you requested, obtained in production with: SELECT value_tag, COUNT(*) as count
FROM product_insight
WHERE
type = 'label' and bounding_box IS NOT NULL
GROUP BY value_tag
ORDER BY count DESC;
|
@raphael0202 thank you so much for the query result, that will help me prioritize additional contributions. |
What
Correct and provide label logo's.
At the moment some logo's couldn't be loaded in Hunger Games. These logo's are important to assist users matching logo's and help to guarantee data quality. Trying out Hunger Games some labels came up that didn't have logo's, so some of those are added too.
See individual commits for more details.
Screenshot
Hunger Games on mobile with logo that couldn't be loaded, showing placeholder text 'logo example' instead. Popover shows URL of image that couldn't be loaded.
Fixes bug(s)
Not applicable
Part of
Not applicable