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: 5200 - currency selector #5236

Merged
merged 1 commit into from
May 10, 2024

Conversation

monsieurtanuki
Copy link
Contributor

What

  • Added a currency selector to user preference settings.
  • It was the opportunity to fix a right padding issue among user preference settings, while keeping a specific display for the welcome page.

Screenshots

preferences welcome
Screenshot_1715328958 Screenshot_1715328875

Fixes bug(s)

Files

New files:

  • currency_selector.dart: A selector for selecting user's currency.
  • user_preferences_currency_selector.dart: Currency selector within user preferences.

Impacted files:

  • app_en.arb: added 2 labels for the currency selector
  • country_selector.dart: fixed discrepancies between selector display
  • user_preferences.dart: new "user currency code" getter/setter
  • user_preferences_settings.dart: added currency selector
  • welcome_page.dart: fixed discrepancies between selector display

New files:
* `currency_selector.dart`: A selector for selecting user's currency.
* `user_preferences_currency_selector.dart`: Currency selector within user preferences.

Impacted files:
* `app_en.arb`: added 2 labels for the currency selector
* `country_selector.dart`: fixed discrepancies between selector display
* `user_preferences.dart`: new "user currency code" getter/setter
* `user_preferences_settings.dart`: added currency selector
* `welcome_page.dart`: fixed discrepancies between selector display
@monsieurtanuki monsieurtanuki requested a review from a team as a code owner May 10, 2024 08:27
@github-actions github-actions bot added the 🤗 Onboarding We need to onboard users on how the app works, but also on content like Nutri-Score, Eco-Score… label May 10, 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.

We should be more pedagogical about the language, the country and the currency because currently users have no idea what they possibly do

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0.85470% with 116 lines in your changes are missing coverage. Please review.

Project coverage is 8.63%. Comparing base (4d9c7fc) to head (ca0b68b).
Report is 109 commits behind head on develop.

Files Patch % Lines
...th_app/lib/pages/onboarding/currency_selector.dart 0.00% 84 Missing ⚠️
...references/user_preferences_currency_selector.dart 5.55% 17 Missing ⚠️
.../lib/data_models/preferences/user_preferences.dart 0.00% 6 Missing ⚠️
.../smooth_app/lib/pages/onboarding/welcome_page.dart 0.00% 6 Missing ⚠️
...b/pages/preferences/user_preferences_settings.dart 0.00% 2 Missing ⚠️
...oth_app/lib/pages/onboarding/country_selector.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5236      +/-   ##
==========================================
- Coverage     9.54%   8.63%   -0.92%     
==========================================
  Files          325     329       +4     
  Lines        16411   16684     +273     
==========================================
- Hits          1567    1441     -126     
- Misses       14844   15243     +399     

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

@monsieurtanuki monsieurtanuki merged commit e3f01ce into openfoodfacts:develop May 10, 2024
6 checks passed
@monsieurtanuki
Copy link
Contributor Author

Thank you @teolemon for your review!

We should be more pedagogical about the language, the country and the currency because currently users have no idea what they possibly do

Definitely. Could be done partly in the onboarding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤗 Onboarding We need to onboard users on how the app works, but also on content like Nutri-Score, Eco-Score…
Development

Successfully merging this pull request may close these issues.

Add a currency settings to the Open Food Facts app
3 participants