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: Remove "report problem" in the navigation bar if knowledge panel is not present #10484

Merged
merged 7 commits into from
Jul 5, 2024

Conversation

subi9
Copy link
Contributor

@subi9 subi9 commented Jun 23, 2024

"Report problem" navigation bar is removed if the corresponding knowledge panel is not present.Screenshot attached

Screenshot

Screenshot from 2024-06-23 16-16-02

@subi9 subi9 requested a review from a team as a code owner June 23, 2024 10:55
@github-actions github-actions bot added Product Page Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. labels Jun 23, 2024
@subi9 subi9 changed the title Fix to remove "report problem" in the nav bar if knowledge panel is not present fix: Remove "report problem" in the navigation bar if knowledge panel is not present Jun 23, 2024
Copy link
Contributor

@stephanegigandet stephanegigandet left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@stephanegigandet stephanegigandet enabled auto-merge (squash) June 25, 2024 08:25
@codecov-commenter
Copy link

codecov-commenter commented Jun 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.31%. Comparing base (dc04d18) to head (89acf81).
Report is 465 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10484      +/-   ##
==========================================
- Coverage   49.54%   49.31%   -0.24%     
==========================================
  Files          67       76       +9     
  Lines       20650    21838    +1188     
  Branches     4980     5231     +251     
==========================================
+ Hits        10231    10769     +538     
- Misses       9131     9750     +619     
- Partials     1288     1319      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stephanegigandet
Copy link
Contributor

Hi @subi9 , some of the tests results changed (just some new lines), could you run "make update_tests_results" to update the test results and commit the new results?

auto-merge was automatically disabled June 29, 2024 17:22

Head branch was pushed to by a user without write access

@subi9
Copy link
Contributor Author

subi9 commented Jun 29, 2024

Hi @stephanegigandet , I have executed the "make update_tests_results" and then committed the results.Please approve if this looks good.

@@ -1,7 +1,7 @@
<!-- start templates/web/common/site_layout.tt.html -->

<!doctype html>
<html class="no-js" lang="en" data-serverdomain="openfoodfacts.localhost" dir="ltr">
<html class="no-js" lang="en" data-serverdomain="pro.openfoodfacts.localhost" dir="ltr">
Copy link
Contributor

Choose a reason for hiding this comment

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

@subi9 I forgot to tell you that "make update_tests_results" should be run in the normal "off" environment, not "off-pro", otherwise the test results are different. Could you rerun it again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@stephanegigandet I have re executed the test results in the normal "off" environment. Can you please check and approve.

@stephanegigandet stephanegigandet enabled auto-merge (squash) July 4, 2024 13:56
@stephanegigandet stephanegigandet merged commit 9d476e2 into openfoodfacts:main Jul 5, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product Page Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. 🧪 tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove "report a problem" entry in product navigation for producers platform
3 participants