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
+13
View File
@@ -315,3 +315,16 @@
.x-switch-row__label { display: block; font-size: var(--x-text-body); line-height: var(--x-leading-body); font-weight: var(--x-weight-medium); color: var(--x-ink); cursor: pointer; }
.x-switch-row__description { margin-top: var(--x-space-0-5); font-size: var(--x-text-label); line-height: var(--x-leading-label); color: var(--x-ink-2); }
.x-switch-row--disabled .x-switch-row__label { cursor: not-allowed; opacity: 0.6; }
/* ── ReasonPicker ───────────────────────────────────────────────────────────── */
.x-reasons { display: grid; gap: var(--x-space-2); }
.x-reasons__list { display: grid; gap: var(--x-space-1); }
.x-reasons__option {
min-height: var(--x-control-md); padding: 0 var(--x-space-3);
border: 0; border-radius: var(--x-radius-control); text-align: left;
font: inherit; font-size: var(--x-text-body); color: var(--x-ink); background: var(--x-surface-2);
cursor: pointer; transition: background-color var(--x-duration-fast) var(--x-ease);
}
.x-reasons__option:hover { background: var(--x-surface-3); }
.x-reasons__option:focus-visible { outline: none; box-shadow: var(--x-focus-ring); }
.x-reasons__option--on, .x-reasons__option--on:hover { background: var(--x-accent); color: var(--x-accent-fg); }