Skip to content

v1.6.0-rc5#18

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

v1.6.0-rc5#18
BiancoGabry merged 2 commits into
mainfrom
development

Conversation

@BiancoGabry
Copy link
Copy Markdown
Collaborator

This pull request improves the handling and visibility of invalid or missing cash register selections in the cashier UI, ensuring users are clearly notified if their previously selected register is no longer valid. It also enhances real-time order status updates and refines order cancellation logic.

Cash Register Validation and User Feedback:

  • Added state and logic to detect if the selected cash register is invalid (e.g., removed from the system), automatically clearing invalid selections, prompting the configuration dialog, and displaying a clear warning message in both desktop and mobile headers and menus. This includes passing a new cashRegisterInvalid prop through relevant components and updating UI to show an alert when appropriate. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21]

  • Updated English and Italian translations to include a message for "Invalid register"/"Cassa non valida" for consistent user feedback. [1] [2]

Order Handling Improvements:

  • Enhanced the order confirmation process to revalidate the selected cash register against the current list before submitting, preventing orders from being placed with a stale or removed register.

  • Improved real-time order status updates by handling a new order-status-update event via SSE, ensuring the UI reflects order status changes instantly.

Order Cancellation Logic:

  • Updated the logic for enabling the order cancellation button: it is now enabled for orders with status CONFIRMED, COMPLETED, or PICKED_UP, and the tooltip and disabled state reflect this broader set of cancellable statuses. [1] [2]

@BiancoGabry BiancoGabry merged commit 73f06b3 into main May 4, 2026
2 checks 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