-
Notifications
You must be signed in to change notification settings - Fork 132
[Woo POS] Update Totals View UI with Subtotals from Cart Total #11738
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] Update Totals View UI with Subtotals from Cart Total #11738
Conversation
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
…tals-view-ui-with-subtotals-from-cart-total
…-ui-with-subtotals-from-cart-total' into 11727-woo-pos-update-totals-view-ui-with-subtotals-from-cart-total
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #11738 +/- ##
============================================
+ Coverage 40.21% 40.26% +0.04%
- Complexity 5331 5333 +2
============================================
Files 1132 1133 +1
Lines 65331 65178 -153
Branches 9058 9007 -51
============================================
- Hits 26273 26243 -30
+ Misses 36637 36534 -103
+ Partials 2421 2401 -20 ☔ 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. I've just aded a few questions and ideas.
enabled = totalsState.value.isCollectPaymentButtonEnabled, | ||
modifier = Modifier.align(Alignment.CenterHorizontally) | ||
) { | ||
Text("Collect Card Payment") |
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.
❓ Does it make sense to extract strings from this composable or are these temporary and will be replaced in the next iterations?
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.
They are temporary. Thanks for reminding me. I've just made a ticket to go through and replace them:
#11746
var orderTax: java.math.BigDecimal, | ||
var orderSubtotalText: String, | ||
var orderTaxText: String, | ||
var orderTotalText: String, | ||
) : Parcelable |
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.
💡 It would be nice to add also a loading state (to display shimmer loading indicator) in the next iterations.
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.
Yes, updated in the other PR now:
f9434ef
…btotals-from-cart-total # Conflicts: # WooCommerce/src/main/kotlin/com/woocommerce/android/ui/woopos/home/totals/WooPosTotalsScreen.kt # WooCommerce/src/main/kotlin/com/woocommerce/android/ui/woopos/home/totals/WooPosTotalsState.kt # WooCommerce/src/main/kotlin/com/woocommerce/android/ui/woopos/home/totals/WooPosTotalsViewModel.kt
Closes: #11727
Description
Enhances the Totals UI. It adjusts the UI to better match design requirements and ensures consistent formatting of prices.
PR is based on #11720 which should be merged first.
Steps to reproduce
Testing information
Images/gif
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.