feat(waiter): table bookings on the phone; shared ReasonPicker (platform-v2 step 4.8c)

- Waiter: Bookings (side drawer, for whoever has connect_orders.manage or
  reservations.manage, with the online-orders app on): requests made online are
  confirmed or declined with a reason the guest sees; confirmed ones are seated at a free
  table (its seats shown, a warning mark when the party is bigger) or cancelled / marked
  as a no-show; the food ordered ahead and its kitchen time; live updates.
- Backend: the bookings routes take reservations.manage too (require_any).
- @xenia/ui ReasonPicker + reasonText (gallery, unit test), first piece moved from the
  terminal (4.6 → 4.8): the counter's online reject and booking decline dialogs use it;
  the waiter loads @xenia/ui styles.css (the .x-* components; tokens as before).
- Tests: waiter e2e +2 (request listed with the key, confirmed and seated from the phone);
  terminal.mjs and qr_table.mjs green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 10:10:14 +02:00
co-authored by Claude Opus 5.5
parent 1e8271e370
commit f57894dcb7
16 changed files with 387 additions and 37 deletions
+33 -1
View File
@@ -44,7 +44,8 @@
"orderLog": "Αρχείο Παραγγελιών",
"settings": "Ρυθμίσεις",
"installApp": "Εγκατάσταση εφαρμογής",
"chat": "Chat"
"chat": "Chat",
"bookings": "Κρατήσεις"
},
"shell": {
"notifications": "Ειδοποιήσεις",
@@ -810,5 +811,36 @@
"table_one": "Τραπέζι για {{count}}",
"table_other": "Τραπέζι για {{count}}",
"over": "{{count}} άτομα σε τραπέζι για {{seats}}: εντάξει, είναι μόνο ένδειξη"
},
"bookings": {
"title": "Κρατήσεις",
"loadFailed": "Σφάλμα φόρτωσης κρατήσεων",
"failed": "Σφάλμα αποθήκευσης",
"requests": "Αιτήματα ({{count}})",
"noRequests": "Δεν υπάρχουν αιτήματα",
"upcoming": "Επιβεβαιωμένες ({{count}})",
"noUpcoming": "Δεν υπάρχουν επιβεβαιωμένες κρατήσεις",
"confirm": "Επιβεβαίωση",
"decline": "Απόρριψη",
"today": "Σήμερα {{time}}",
"people_one": "{{count}} άτομο",
"people_other": "{{count}} άτομα",
"foodSent": "Φαγητό εκ των προτέρων: στην κουζίνα",
"foodAt": "Φαγητό εκ των προτέρων: στην κουζίνα στις {{time}}",
"foodOnConfirm": "Φαγητό εκ των προτέρων: στην κουζίνα μόλις επιβεβαιωθεί",
"table": "Τραπέζι",
"noTable": "Χωρίς τραπέζι ακόμα",
"arrive": "Ήρθαν: τοποθέτηση",
"cancel": "Ακύρωση",
"noShow": "Δεν ήρθαν",
"declineTitle": "Απόρριψη της κράτησης του/της {{name}};",
"declineBody": "Ο πελάτης βλέπει τον λόγο.",
"reason": "Λόγος",
"reasons": {
"full": "Είμαστε πλήρεις",
"closed": "Είμαστε κλειστά τότε",
"party": "Ιδιωτική εκδήλωση",
"other": "Άλλος λόγος"
}
}
}
+33 -1
View File
@@ -44,7 +44,8 @@
"orderLog": "Order log",
"settings": "Settings",
"installApp": "Install the app",
"chat": "Chat"
"chat": "Chat",
"bookings": "Bookings"
},
"shell": {
"notifications": "Notifications",
@@ -810,5 +811,36 @@
"table_one": "Table for {{count}}",
"table_other": "Table for {{count}}",
"over": "{{count}} guests at a table for {{seats}}: fine, it is only a suggestion"
},
"bookings": {
"title": "Bookings",
"loadFailed": "Couldn't load the bookings",
"failed": "Couldn't save the change",
"requests": "Requests ({{count}})",
"noRequests": "No requests waiting",
"upcoming": "Confirmed ({{count}})",
"noUpcoming": "No confirmed bookings coming up",
"confirm": "Confirm",
"decline": "Decline",
"today": "Today {{time}}",
"people_one": "{{count}} person",
"people_other": "{{count}} people",
"foodSent": "Food ordered ahead: in the kitchen",
"foodAt": "Food ordered ahead: to the kitchen at {{time}}",
"foodOnConfirm": "Food ordered ahead: to the kitchen once confirmed",
"table": "Table",
"noTable": "No table yet",
"arrive": "They are here: seat them",
"cancel": "Cancel",
"noShow": "Didn't come",
"declineTitle": "Decline {{name}}'s booking?",
"declineBody": "The guest sees the reason.",
"reason": "Reason",
"reasons": {
"full": "We are fully booked",
"closed": "We're closed then",
"party": "Private event",
"other": "Other reason"
}
}
}