-
-
Notifications
You must be signed in to change notification settings - Fork 280
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: 5643 - removed irrelevant editors for non-FOOD products #5663
feat: 5643 - removed irrelevant editors for non-FOOD products #5663
Conversation
Impacted files: * `add_new_product_page.dart`: editors different when not FOOD; minor refactoring * `edit_product_page.dart`: no ingredient editor for PRODUCTS * `image_field_extension.dart`: now the main image fields depend on product type; minor refactoring (more compact `switch` syntax) * `knowledge_panels_builder.dart`: minor fix * `product_cards_helper.dart`: now the main image fields depend on product type * `product_image_gallery_view.dart`: now the main image fields depend on product type * `product_image_swipeable_view.dart`: now the main image fields depend on product type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The screenshot actually illustrate the corner cases
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5663 +/- ##
==========================================
- Coverage 9.54% 6.85% -2.70%
==========================================
Files 325 402 +77
Lines 16411 21395 +4984
==========================================
- Hits 1567 1466 -101
- Misses 14844 19929 +5085 ☔ View full report in Codecov by Sentry. |
@teolemon Not sure I understand what you mean. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Detergents are one of the few OPF categories where there can be ingredients
- toothpaste is one of the few cosmetics categories where there can be what is similar to a nutrient, that is to say the parts per 1000 of fluoride
@teolemon How does it work with the legacy apps? |
We were more liberal and kept ingredients for OPF. |
Thank you @teolemon for your review! I guess we'll have to fine-tune the concept of "other products". |
From the category I guess: somehow maintaining a list of expected features for a given product category. |
What
Screenshots
Part of
Impacted files
add_new_product_page.dart
: editors different when not FOOD; minor refactoringedit_product_page.dart
: no ingredient editor for PRODUCTSimage_field_extension.dart
: now the main image fields depend on product type; minor refactoring (more compactswitch
syntax)knowledge_panels_builder.dart
: minor fixproduct_cards_helper.dart
: now the main image fields depend on product typeproduct_image_gallery_view.dart
: now the main image fields depend on product typeproduct_image_swipeable_view.dart
: now the main image fields depend on product type