Skip to content
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: make NOVA panel clearer #6833

Merged
merged 2 commits into from
Apr 30, 2024
Merged

fix: make NOVA panel clearer #6833

merged 2 commits into from
Apr 30, 2024

Conversation

teolemon
Copy link
Member

@teolemon teolemon commented May 30, 2022

What

fix: make NOVA panel clearer

Part of

@github-actions github-actions bot added 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. labels May 30, 2022
@teolemon teolemon linked an issue May 30, 2022 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented May 30, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

<li>[% lang('attribute_nova_2_description_short') %]</li>
<li>[% lang('attribute_nova_3_description_short') %]</li>
<li>[% lang('attribute_nova_4_description_short') %]</li>
<li>[% IF nova_group == 1 %]<b>[% END %][% lang('attribute_nova_1_description_short') %][% IF nova_group == 1 %]</b>[% END %]</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use a style, it will be cleaner and will halve the number of IF conditions.

@@ -35,6 +35,8 @@
[% END %]
[% END %]
[% END %]
<br>
Copy link
Contributor

@stephanegigandet stephanegigandet May 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding <br> at the end of panels is probably not the right way, clients should decide how much spaces to leave.

@stephanegigandet
Copy link
Contributor

Good idea to bold the explanantion for the product NOVA group. It probably makes sense to invert the panels, and put the matching ingredients after the 4 groups.

@alexgarel
Copy link
Member

@stephanegigandet I think you did some work on it already, didn't you ? In this case we can close this PR.

@teolemon
Copy link
Member Author

teolemon commented Jul 7, 2022

Not fixed yet

@github-actions github-actions bot added the ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. label Oct 6, 2022
@teolemon teolemon requested a review from alexgarel November 14, 2022 15:28
@teolemon teolemon marked this pull request as ready for review November 14, 2022 15:29
@teolemon teolemon requested a review from a team as a code owner November 14, 2022 15:29
Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although it would be better not to introduce
as asked by @stephanegigandet

@teolemon teolemon added the Nova - Ultra-processed foods NOVA is an indicator for food ultra-processing https://world.openfoodfacts.org/nova label Mar 17, 2023
@teolemon
Copy link
Member Author

@alexgarel how about we merge that one ?

@alexgarel
Copy link
Member

Can you fix things proposed by @stephanegigandet, @teolemon ?

@teolemon
Copy link
Member Author

teolemon commented Nov 9, 2023

@alexgarel is it better ?

Copy link

sonarcloud bot commented Nov 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@teolemon teolemon merged commit 1ce7f87 into nova-clearer Apr 30, 2024
4 checks passed
@teolemon teolemon deleted the clearer-nova-panel branch April 30, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels Nova - Ultra-processed foods NOVA is an indicator for food ultra-processing https://world.openfoodfacts.org/nova ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Make the nova knowledge panel clearer
3 participants