Closed AnirudhBhat closed 2 weeks ago
1 Warning | |
---|---|
:warning: | Class WooPosItemNavigationData is missing tests, but unit-tests-exemption label was set to ignore this. |
Generated by :no_entry_sign: Danger
App Name | WooCommerce-Wear Android | |
Platform | ⌚️ Wear OS | |
Flavor | Jalapeno | |
Build Type | Debug | |
Commit | d9787942468ef5ed82f091aa92ae5fe857e7f857 | |
Direct Download | woocommerce-wear-prototype-build-pr12864-d978794.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 | d9787942468ef5ed82f091aa92ae5fe857e7f857 | |
Direct Download | woocommerce-prototype-build-pr12864-d978794.apk |
Attention: Patch coverage is 83.87097%
with 10 lines
in your changes missing coverage. Please review.
Project coverage is 40.25%. Comparing base (
995e65a
) to head (d978794
). Report is 20 commits behind head on trunk.
Files with missing lines | Patch % | Lines |
---|---|---|
...droid/ui/woopos/home/items/WooPosItemsViewModel.kt | 72.22% | 3 Missing and 7 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Closes: #12841
Description
The existing
ProductList
model used in POS is currently limited to holding only "Product" type items. However, with ongoing work to support Variable products and anticipated needs to add a broader range of item types (such as coupons, discounts, custom amounts, categories ...etc), theProductList
needs a more flexible structure to accommodate these variations. This refactor aims to create a generic list structure that can dynamically support various item types on the POS home screen, setting a foundation for future feature expansion.What’s Changed
Generic Item List Model: Introduced a new
WooPosItem
model that can accommodate multiple item types, including but not limited to Products, Coupons, Discounts, Custom Amounts, Variable Products, Variations, and Categories.Generic item navigation model: Introduced a new
WooPosItemNavigationData
model that holds data required for selected product types while navigating to different screens from the POS items list - For instance, passing just an ID would be sufficient when simple physical product is clicked whereas we need to pass in the variation quantity and ID for Variable products as we navigate to a different screen in this case.Rename product screen, view model, and UI event to item screen, view model, and UI event
Rename
Products
package name intoitems
Testing information
The tests that have been performed
Smoke tested the POS flow end to end
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: