Skip to content

v1.0.0-rc4#3

Merged
BiancoGabry merged 1 commit into
mainfrom
development
May 4, 2026
Merged

v1.0.0-rc4#3
BiancoGabry merged 1 commit into
mainfrom
development

Conversation

@BiancoGabry
Copy link
Copy Markdown
Collaborator

This pull request improves the handling of cancelled orders across the display and manager interfaces, ensuring that cancelled orders are properly removed from all relevant lists and that users are notified with a localized warning message. It also adds new translation strings for the cancellation notification in both English and Italian.

Order cancellation event handling:

  • Added an event listener for the order-cancelled event in app/display/page.tsx to remove cancelled orders from both readyOrders and prepOrders state lists.
  • Added an event listener for the order-cancelled event in app/manager/page.tsx to remove cancelled orders from confirmedOrders, readyOrders, and pickedUpOrders, and to display a warning toast notification to the manager.
  • Imported the toast notification library in app/manager/page.tsx to support user notifications.

Localization:

  • Added the orderCancelled translation string to the English locale in lib/i18n/locales/en.ts.
  • Added the orderCancelled translation string to the Italian locale in lib/i18n/locales/it.ts.

@BiancoGabry BiancoGabry merged commit fd3fcc5 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