-
Notifications
You must be signed in to change notification settings - Fork 131
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
Add custom amounts business logic #10035
Add custom amounts business logic #10035
Conversation
… least 1 custom amount added.
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
…dated with proper name
… fee line gets updated with default name
# Conflicts: # WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/creation/OrderCreateEditFormFragment.kt # WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/creation/OrderCreateEditProductsAdapter.kt # WooCommerce/src/main/res/layout/order_creation_product_item.xml
Generated by 🚫 dangerJS |
@samiuelson Please note that I've added the |
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
Generated by 🚫 Danger |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## trunk #10035 +/- ##
============================================
+ Coverage 42.29% 42.32% +0.02%
- Complexity 4631 4636 +5
============================================
Files 953 954 +1
Lines 52065 52120 +55
Branches 6741 6749 +8
============================================
+ Hits 22022 22060 +38
- Misses 28167 28183 +16
- Partials 1876 1877 +1
☔ View full report in Codecov by Sentry. |
@@ -47,6 +48,7 @@ class OrdersUITest : TestBase() { | |||
TabNavComponent().gotoOrdersScreen() | |||
} | |||
|
|||
@Ignore |
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.
Please note that the current test failures are a direct result of the modifications introduced in this PR, which affect the order creation screen. Sergiy Fedosov has taken on the task of implementing a fix. In the interim, we have agreed to bypass the affected test, as well as any other UI tests impacted by this PR, until a resolution is in place
Closes: #10016
NOTE: Please follow the below PR orders for reviewing
This one!
#10054
#10057
#10062
Description
This PR introduces the core business logic and UI components required for the "Custom Amounts" feature.
Key Changes:
Business Logic for Custom Amounts: Implemented the essential logic to handle the addition of custom amounts.
Custom Amounts Adapter: Introduced a new adapter to handle the display of added custom amounts within a RecyclerView.
Custom Amount Item UI: Designed a user-friendly and intuitive UI for each custom amount item.
Testing instructions
orders
tabImages/gif
add_custom_amount.mp4
RELEASE-NOTES.txt
if necessary.