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

feat: 5621 - "road to scores" label now depends on OxF #5772

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

monsieurtanuki
Copy link
Contributor

What

  • "road to scores" label now depends on OxF

Fixes bug(s)

Impacted files

  • app_en.arb: added labels for OxF versions
  • product_incomplete_card.dart: button label depends on OxF
  • product_query.dart: new getRoadToScoreLabel method

Impacted files:
* `app_en.arb`: added labels for OxF versions
* `product_incomplete_card.dart`: button label depends on OxF
* `product_query.dart`: new `getRoadToScoreLabel` method
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 7.05%. Comparing base (4d9c7fc) to head (94ab8c4).
Report is 410 commits behind head on develop.

Files with missing lines Patch % Lines
packages/smooth_app/lib/query/product_query.dart 0.00% 8 Missing ⚠️
...app/lib/pages/product/product_incomplete_card.dart 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5772      +/-   ##
==========================================
- Coverage     9.54%   7.05%   -2.49%     
==========================================
  Files          325     409      +84     
  Lines        16411   21969    +5558     
==========================================
- Hits          1567    1551      -16     
- Misses       14844   20418    +5574     

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

@teolemon teolemon added the 🛣️ Road to scores The easier it is to get Nutri-Score, Eco-Score, the happier the users. label Nov 1, 2024
Copy link
Member

@teolemon teolemon left a comment

Choose a reason for hiding this comment

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

Road to OBF :-)

@monsieurtanuki monsieurtanuki merged commit 66a3492 into openfoodfacts:develop Nov 1, 2024
6 checks passed
@monsieurtanuki
Copy link
Contributor Author

Thank you @teolemon for your review!

Typically not an easy issue to test as it would be very simple to create a dumb product from scratch in test env, and wait until the message appears. We cannot do that because there's no beauty test env and searching on that server (in order not to find the product) causes an error.
We should somehow skip the beauty test env, at least via dev mode. What do you think of that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🥫 Product page 🛣️ Road to scores The easier it is to get Nutri-Score, Eco-Score, the happier the users.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Change the wording of the "Road to scores" promo depending on product type
3 participants