-
Notifications
You must be signed in to change notification settings - Fork 130
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
[Woo POS][Non-Simple Products] Remove variation quantity in Products and Variations screen #13225
Conversation
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #13225 +/- ##
=========================================
Coverage 40.64% 40.64%
Complexity 6380 6380
=========================================
Files 1349 1349
Lines 77400 77400
Branches 10647 10647
=========================================
Hits 31461 31461
Misses 43159 43159
Partials 2780 2780 ☔ View full report in Codecov by Sentry. |
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.
👋 LGTM, @AnirudhBhat, but don't forget to remove unused resource.
|
||
Text( | ||
text = stringResource( | ||
id = R.string.woopos_items_list_variable_product_variations, |
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 string resource is not used anymore
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.
Good catch. Removed here: 7fbd2ba
Closes: #13221
Description
This PR removes variation quantity in Products and Variations screen. Since we are filtering some of the variations client side and the variation quantity in the products endpoint includes all the variation. It's error prone to display the exact amount of variation a variable product contains after client side filtering (this filtering happens in the variations screen).
For this reasons, we decided to display "Options available" instead of variation quantity in products screen and remove variation quantity from the toolbar in variations screen.
More context: pdfdoF-62l-p2#comment-7224
Steps to reproduce
Products screen
Variations screen
The tests that have been performed
Tested both the screens on both light and dark mode
Images/gif
variation_quantity_removed.mp4
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: