Closed malinajirka closed 2 weeks ago
App Name | WooCommerce-Wear Android | |
Platform | ⌚️ Wear OS | |
Flavor | Jalapeno | |
Build Type | Debug | |
Commit | eb1f773d9bf0bf7fb2b56512c2b29f3cd2e915ed | |
Direct Download | woocommerce-wear-prototype-build-pr12855-eb1f773.apk |
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
App Name | WooCommerce Android | |
Platform | 📱 Mobile | |
Flavor | Jalapeno | |
Build Type | Debug | |
Commit | eb1f773d9bf0bf7fb2b56512c2b29f3cd2e915ed | |
Direct Download | woocommerce-prototype-build-pr12855-eb1f773.apk |
Attention: Patch coverage is 17.43119%
with 90 lines
in your changes missing coverage. Please review.
Project coverage is 40.20%. Comparing base (
995e65a
) to head (eb1f773
). Report is 50 commits behind head on trunk.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks so much for the thorough review @samiuelson ! I have implemented all the changes except of the performance optimization.
One more thing that caught my attention is the singular form of the "Coupon" label in the bottom sheet despite multiple coupons applied (isn't it slightly confusing?). Maybe worth considering reporting an issue:
I noticed this as well but then forgot about it :X. I updated it in 18e079db3fe4f946ba006148e351589c180868c3. We use plural for products no matter whether there is one or multiple, so the change brings it to consistency.
Closes: #12619 #12848 Ref: pe5pgL-5G4-p2#comment-4599
This PR updates the how coupons are displayed during Order creation to match the iOS behavior.
Changes:
Notes:
I planned to add unit tests for the added code. However, I haven't figured out how to test the code in the current state without significant refactoring. It felt like the unit tests would be tightly coupled with the inner workings of the VM, which felt off. In any case, if you have some ideas how to write reasonable tests or if you believe it's worth spending more time on, I will be happy to look into it more.
P.S. I also noticed shipping lines are editable at all times which is a bug I reported here.
Testing
I tested the following flows on my phone and tablet.
Case: Add coupon to order success:
+ Add Coupon
row is disabled.+ Add Coupon
row is now enabled.+ Add Coupon
-> Apply a eligible coupon to that product -> Observe how it appears in the Order, with a "trash bin" button.Case: Delete coupon from order:
Case: Add coupon to order error
Case: Editing an existing order
Edit
Case: Editing an existing PAID order
Edit
I also tested adding and removing shipping lines in combination with coupons with gift card extension installed/uninstalled.
RELEASE-NOTES.txt
if necessary.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: