-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
fix: 4564 - product immediately visible even if not on the server yet #4584
fix: 4564 - product immediately visible even if not on the server yet #4584
Conversation
Impacted files: * `fetched_product.dart`: moved code from `ProductRefresher` * `product_cards_helper.dart`: unrelated bug fix * `product_dialog_helper.dart`: special case when the product was created locally but not uploaded/refreshed yet * `product_field_editor.dart`: unrelated bug fix * `product_list_item_simple.dart`: moved code to model * `product_model.dart`: special case when the product was created locally but not uploaded/refreshed yet * `product_refresher.dart`: moved code to `FetchedProduct`; minor refactoring * `smooth_product_card_found.dart`: added a banner for product with pending changes. * `up_to_date_product_provider.dart`: minor refactoring
Codecov Report
@@ Coverage Diff @@
## develop #4584 +/- ##
========================================
Coverage 10.03% 10.03%
========================================
Files 312 312
Lines 15642 15635 -7
========================================
Hits 1569 1569
+ Misses 14073 14066 -7
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@g123k can you have a look at the PR ? |
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.
I think the idea is good to visualize pending changes, but let's hide it in the dev mode first to think about where we have to display it too
Product page?
Product edit page?
The images if they are uploaded?
...
Impacted file: * `smooth_product_card_found.dart`: removed the "pending..." banner
Thank you @M123-dev for your review! |
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 right to me, thanks @monsieurtanuki
Thank you @M123-dev for your review! |
What
ProductModel
.Screenshot
How to reproduce:
Fixes bug(s)
Impacted files
fetched_product.dart
: moved code fromProductRefresher
product_cards_helper.dart
: unrelated bug fixproduct_dialog_helper.dart
: special case when the product was created locally but not uploaded/refreshed yetproduct_field_editor.dart
: unrelated bug fixproduct_list_item_simple.dart
: moved code to modelproduct_model.dart
: special case when the product was created locally but not uploaded/refreshed yetproduct_refresher.dart
: moved code toFetchedProduct
; minor refactoringsmooth_product_card_found.dart
: added a banner for product with pending changes.up_to_date_product_provider.dart
: minor refactoring