-
Notifications
You must be signed in to change notification settings - Fork 136
[Woo POS][Refunds] Confirm refund step #15065
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
base: woomob-1826-show-review-refund-step
Are you sure you want to change the base?
[Woo POS][Refunds] Confirm refund step #15065
Conversation
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
…how-confirm-refund-step
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
…how-confirm-refund-step
…step' into woomob-1827-show-confirm-refund-step
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.
Pull request overview
This PR adds a confirmation step to the WooCommerce POS refund flow, allowing users to confirm their refund decision before processing. The implementation follows a standard dialog progression pattern with proper state management and navigation between steps.
- Introduces a new
ConfirmRefundstep in the refund flow after theReviewRefundstep - Adds navigation events (
ContinueToConfirmClicked,BackToReviewClicked) to move between review and confirmation steps - Implements a confirmation dialog UI displaying refund amount, payment method, and action buttons
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| WooPosRefundViewModelTest.kt | Adds comprehensive test coverage for the new confirmation step navigation flows |
| strings.xml | Adds string resources for the confirmation dialog title, message, and action button |
| WooPosRefundViewModel.kt | Implements state transitions for the new confirmation step and adds payment method to state |
| WooPosRefundUIEvent.kt | Defines new UI events for navigating to and from the confirmation step |
| WooPosRefundState.kt | Adds ConfirmRefund step to the state model and includes payment method field |
| WooPosIssueRefundDialog.kt | Implements the confirmation dialog UI with header, message, and action buttons |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
WooCommerce/src/main/kotlin/com/woocommerce/android/ui/woopos/orders/WooPosRefundViewModel.kt
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
WOOMOB-1826
Description
This PR adds a confirmation step to the WooCommerce POS refund flow, allowing users to confirm their refund decision before processing.
Design: DK955L5K0bTfkjrHTBLmqo-fi-289_11772
Not included in this PR:
Test Steps
Images/gif
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.