-
-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 4058 - expand/collapse for additional ecoscore fields (#4071)
* feat: 4058 - expand/collapse for additional ecoscore fields New file: * `product_field_editor.dart`: Helper class about product fields. Impacted files: * `add_new_product_page.dart`: added origins, ingredients, labels and packaging in option with expand/collapse; refactored using new classes around `ProductFieldEditor` * `add_ocr_button.dart`: refactored using new class `ProductFieldOcrEditor` * `add_packaging_button.dart`: refactored using new class `ProductFieldPackagingEditor * `app_en.arb`: added one label for "additional ecoscore fields" * `app_fr.arb`: added one label for "additional ecoscore fields" * `edit_ocr_page.dart`: renamed from `edit_ingredients_page.dart` * `edit_product_page.dart`: refactored using new classes `ProductFieldDetailsEditor`, `ProductFieldOcrIngredientEditor`, `ProductFieldPackagingEditor` and `ProductFieldOcrPackagingEditor` * `knowledge_panel_action_card.dart`: minor refactoring * `knowledge_panels_builder.dart`: minor refactoring * `simple_input_page_helpers.dart`: added method `isPopulated`; minor refactoring * `summary_card.dart`: refactored using new class `ProductFieldDetailsEditor` * feat: 4058 - format * feat: 4058 - refactoring Impacted files: * `add_simple_input_button.dart`: removed useless parameters; now uses `ProductFieldSimpleEditor` * `edit_product_page.dart`: now uses `ProductFieldSimpleEditor` * `product_field_editor.dart`: moved `edit` code from `simple_input_page_helpers.dart` * `simple_input_page_helpers.dart`: moved code to `product_field_editor.dart`
- Loading branch information
1 parent
fbb6fd3
commit 30be338
Showing
13 changed files
with
376 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.