-
-
Notifications
You must be signed in to change notification settings - Fork 259
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: 3749 - improvements for packaging suggestions #3750
feat: 3749 - improvements for packaging suggestions #3750
Conversation
This reverts commit ad46236.
# Conflicts: # packages/smooth_app/pubspec.lock # packages/smooth_app/pubspec.yaml
Impacted files: * `edit_new_packagings.dart`: added categories parameter for suggestions * `edit_new_packagings_component.dart`: added categories field; added categories parameters for shape search; added categories and shape parameters for material search; added specific minLengthForSuggestions parameter set to 0 for shape and material search * `simple_input_text_field.dart`: added minLengthForSuggestions, categories and shape fields; added categories, shape and country parameters for `getSuggestions`
Codecov Report
@@ Coverage Diff @@
## develop #3750 +/- ##
===========================================
- Coverage 10.41% 10.40% -0.01%
===========================================
Files 272 272
Lines 13824 13835 +11
===========================================
Hits 1440 1440
- Misses 12384 12395 +11
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Thanks a lot @monsieurtanuki , this will speed up entry of packagings quite a bit! |
@monsieurtanuki as addressed the issue in openfoodfacts#3750 without disturbing old default behavior of the widget.
@stephanegigandet Don't hesitate to create a new issue in order to make the entry of packagings even smoother. |
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.
Looks good to me, thank you
Thank you @stephanegigandet for the review! |
… size of the autocomplete tab. (#3744) * Updated the preview of the package in the 'Packaging components ' tab. Preview is now clearer and more coherent with what is shown on the product page. * Autocomplete now gives hints before anything is typed & maxOptionsHeight fixed - The autocomplete now gives the most common answers for the field before user start typing. (Useful for packaging material, recycling...) - Fixing _AssertionError 'maxOptionsHeight >= 0': is not true: The old formula could give negative values. It could also create an unreadable autocomplete if the field was too close to the keyboard. * Removed Autocomplete now gives hints before anything is typed. @monsieurtanuki as addressed the issue in #3750 without disturbing old default behavior of the widget. * Comment explaining the limit of suggestions. * Taking into account the case 'Material empty' and 'Weight not empty' & format * Removing unused variables This variables where previously used in the formula of maxOptionsHeight * Update packages/smooth_app/lib/pages/product/edit_new_packagings_helper.dart --------- Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
Impacted files:
edit_new_packagings.dart
: added categories parameter for suggestionsedit_new_packagings_component.dart
: added categories field; added categories parameters for shape search; added categories and shape parameters for material search; added specific minLengthForSuggestions parameter set to 0 for shape and material searchsimple_input_text_field.dart
: added minLengthForSuggestions, categories and shape fields; added categories, shape and country parameters forgetSuggestions
What
Fixes bug(s)