Skip to content

Conversation

@itsmeichigo
Copy link
Contributor

@itsmeichigo itsmeichigo commented Nov 10, 2025

Closes WOOMOB-1614

Description

This PR adds the implementation for booking cancellation. Changes include:

  • Updated BookingsRemote's updateBooking with an optional booking status.
  • Updated BookingAction and BookingStore with a new action to cancel a booking.
  • Updated the BookingDetailsView:
    • to not show the Cancel booking entry point for complete or cancelled bookings.
    • display generic confirmation message if order details are not loaded yet or unavailable.
    • integrate booking cancellation
    • display a notice with Retry button when cancelling fails.

Additionally, I added some small fix to the booking list to keep the header in the loading state and adjust the empty state with the correct height.

Test Steps

  1. Log in to a CIAB store with existing bookings.
  2. Select a booking with cancelled or complete status and confirm that the Cancel booking button is not available on the details screen (either in the appointment section or in the ellipsis menu).
  3. Select a booking with status other than cancelled and complete.
  4. Select Cancel booking either in the appointment section or in the ellipsis menu.
  5. Abort the request in Proxyman and confirm that a notice is displayed indicating an error.
  6. Tap Retry and confirm that another cancellation request is fired. When it completes, confirm that the UI is updated with the correct status.

Screenshots

Simulator.Screen.Recording.-.iPhone.17.-.2025-11-10.at.16.35.59.mov

Generic message for bookings without associated order:

Simulator Screenshot - iPhone 17 - 2025-11-10 at 16 35 15
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@itsmeichigo itsmeichigo added this to the 23.7 milestone Nov 10, 2025
@itsmeichigo itsmeichigo added the type: task An internally driven task. label Nov 10, 2025
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Nov 10, 2025

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

App NameWooCommerce iOS Prototype
Build Numberpr16333-0448cdb
Version23.6
Bundle IDcom.automattic.alpha.woocommerce
Commit0448cdb
Installation URL7if9sdq18t400
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@itsmeichigo itsmeichigo marked this pull request as ready for review November 10, 2025 10:54
@RafaelKayumov RafaelKayumov self-assigned this Nov 10, 2025
Copy link
Contributor

@RafaelKayumov RafaelKayumov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Works as described.

@itsmeichigo itsmeichigo merged commit cdfdd7e into trunk Nov 11, 2025
15 checks passed
@itsmeichigo itsmeichigo deleted the woomob-1614-ios-implement-booking-cancellation branch November 11, 2025 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants