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: #511 - added a "nutrition edit page" #904

Merged
merged 14 commits into from
Jan 9, 2022

Conversation

monsieurtanuki
Copy link
Contributor

Still things to do. For the moment we're in read-only mode. Worth merging, though.

New files:

  • nutrition_page.dart: Preparatory nutrition page where data is loaded.
  • nutrition_page_loaded.dart: Actual nutrition page, with data already loaded.

Impacted files:

  • app_en.arb: added 6 related labels
  • app_fr.arb: added 6 related labels
  • knowledge_panels_builder.dart: now the nutrition page button is systematic (but with a potentially different label/icon)
  • new_product_page.dart: minor refactoring
  • product_cards_helper.dart: minor refactoring
  • smooth_app/pubspec.lock
  • smooth_ui_library/pubspec.lock
  • smooth_ui_library/example/pubspec.lock

New files:
* `nutrition_page.dart`: Preparatory nutrition page where data is loaded.
* `nutrition_page_loaded.dart`: Actual nutrition page, with data already loaded.

Impacted files:
* `app_en.arb`: added 6 related labels
* `app_fr.arb`: added 6 related labels
* `knowledge_panels_builder.dart`: now the nutrition page button is systematic (but with a potentially different label/icon)
* `new_product_page.dart`: minor refactoring
* `product_cards_helper.dart`: minor refactoring
* `smooth_app/pubspec.lock`
* `smooth_ui_library/pubspec.lock`
* `smooth_ui_library/example/pubspec.lock`
@teolemon teolemon added ✏️ Editing - Nutrition input 🛣️ Road to scores The easier it is to get Nutri-Score, Eco-Score, the happier the users. labels Jan 9, 2022
@teolemon teolemon requested a review from M123-dev January 9, 2022 12:12
Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

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

Just some small comments, the rest looks good, thanks @monsieurtanuki

Impacted files:
* `nutrition_page.dart`: refactored with `ProductQuery`
* `nutrition_page_loaded.dart`: refactored with `ProductQuery`
* `product_query.dart`: new method `getLocaleString`
@monsieurtanuki monsieurtanuki merged commit 92ce872 into openfoodfacts:develop Jan 9, 2022
@monsieurtanuki
Copy link
Contributor Author

Thank you @M123-dev @teolemon for your review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✏️ Editing - Nutrition input 🛣️ Road to scores The easier it is to get Nutri-Score, Eco-Score, the happier the users.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants