Skip to content

Conversation

@samiuelson
Copy link
Contributor

@samiuelson samiuelson commented Dec 5, 2025

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:

  • Via (payment method) - now hardcoded, will be replaced with real value in next iteration.

Test Steps

  1. Go to POS > Orders
  2. Tap "Issue Refund" button and follow the refund flow

Images/gif

image
  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

@dangermattic
Copy link
Collaborator

1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Dec 5, 2025

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App NameWooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit2e68269
Direct Downloadwoocommerce-wear-prototype-build-pr15065-2e68269.apk

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Dec 5, 2025

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App NameWooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit2e68269
Direct Downloadwoocommerce-prototype-build-pr15065-2e68269.apk

Copy link
Contributor

Copilot AI left a 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 ConfirmRefund step in the refund flow after the ReviewRefund step
  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants