Skip to content

v1.6.0-rc4#16

Merged
BiancoGabry merged 2 commits into
mainfrom
development
May 4, 2026
Merged

v1.6.0-rc4#16
BiancoGabry merged 2 commits into
mainfrom
development

Conversation

@BiancoGabry
Copy link
Copy Markdown
Collaborator

This pull request adds support for cancelling orders from the cashier interface. It introduces backend integration for order cancellation, updates the UI to allow users to cancel confirmed orders with confirmation dialogs, and ensures the new "CANCELLED" status is handled throughout the application. Additionally, relevant types and translations are updated to support this feature.

Order Cancellation Feature

  • Added a new cancelOrder API action in cashier.ts to allow deleting an order via the backend.
  • Integrated the cancelOrder action into the cashier UI, including the main client component (CassaClient.tsx) and all layouts (desktop and mobile), so users can initiate cancellation from the order list. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
  • Updated the DailyOrderCard component to show a cancel button for confirmed orders, with an AlertDialog confirmation before cancelling. [1] [2]

Status and Type Updates

  • Added the CANCELLED status to order types in api-types.ts and ensured all components and status badges handle this new state. [1] [2]
  • Updated the API endpoints to include the new DELETE route for orders.

UI and UX Improvements

  • Added translations and UI strings for the cancel order flow, including status labels, tooltips, and dialog text in English.
  • Improved merging of order updates in the state to prevent overwriting existing properties when updating orders. [1] [2]
  • Minor adjustments to UI layout and max-widths for cleaner display in DailyOrderCard.

These changes collectively enable users to safely and clearly cancel confirmed orders from the cashier interface, with proper feedback and status handling across the application.

@BiancoGabry BiancoGabry merged commit 3c6c987 into main May 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant