-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
fix: add more linked panels for attributes #6808
Conversation
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.
Cool idea, but it needs a bit of work
lib/ProductOpener/Attributes.pm
Outdated
$attribute_ref->{icon_url} = "$static_subdomain/images/attributes/${tag}.svg"; | ||
$attribute_ref->{panel_id} = "${tag}"; |
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.
There is "environment_label_en:" in front. And we should do this only for tags with a panel (how do we get them ? Is it through a property in taxonomy ?)
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.
@alexgarel would removing this change for the labels make the PR acceptable to you ? we indeed don't have any knowledge panels on labels, but that would be another issue that we can create
Co-authored-by: Alex Garel <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
Co-authored-by: Alex Garel <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #6808 +/- ##
=======================================
Coverage 48.61% 48.62%
=======================================
Files 114 114
Lines 21343 21346 +3
Branches 4779 4779
=======================================
+ Hits 10376 10379 +3
Misses 9680 9680
Partials 1287 1287
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Kudos, SonarCloud Quality Gate passed! |
@teolemon I made some changes, as we already had a panel_id set, the issue was that the corresponding panel does not exist if we don't have ingredients. New behaviour:
|
@stephanegigandet awesome, I re-requested a review from @alexgarel or you can self approve your changes 👍 |
@alexgarel your changes should be addressed, can you approve ? |
New behaviour: * For allergens, if the status is unknown (we don't have "no gluten" labels etc.), we link to the ingredients panel if we don't have ingredients (so that we can display the action to add them), or the ingredients analysis panel (if we have ingredients that are unknown) * For vegan/vegetarian/palm oil: similar Co-authored-by: Stéphane Gigandet <[email protected]>
What
Sample query
Why
Related issue(s) and discussion
screen-20230317-152120.mp4