-
-
Notifications
You must be signed in to change notification settings - Fork 356
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: add panel_group element and environment_card panel #5958
Conversation
po/common/common.pot
Outdated
msgstr "Carbon footprint" | ||
|
||
msgctxt "carbon_footprint_per_100g_of_product" | ||
msgid "g CO² per 100g of product" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use a placeholder for languages which change the order of words ?
msgid "g CO² per 100g of product" | |
msgid "%s g CO² per 100g of product" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
Hello, possible to see a sample json response ? Can review the PR from API perspective, but probably better I leave the code review to Alex:) |
Hi @jasmeet0817 , yes, you can see it on the dev server (login and password: off ) : https://uk.openfoodfacts.dev/api/v2/product/3017620422003/nutella-ferrero?fields=knowledge_panels |
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM |
Replaces #5955 with a clean commit history.
--
Some changes discussed with Jasmeet, in order to build the Environment card as designed by Tim.
The environment card is going to be itself a knowledge panel, of a special type "card", which will make it shown expanded, and we can round corners etc.
In it we have elements that are panel groups: groups that contain multiple panels. For instance the "Labels" panel group may contain an organic panel + a fair trade panel. This is to be able to display "section names" like we have in the mockup.
Mockup:
Current web display: