Settings -> Venue -> accent "The venue's identity" (venue.theme = identity): bootstrap
carries the identity's first colour and logos; @xenia/ui applyVenueTheme makes the
accent tokens (light and dark, readable foregrounds) from it. A display look's
"Colours and logo" can be the venue's identity. Plan 6R.20, F-117.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- @xenia/ui: --x-board-* tokens (the kitchen display's look: dark board, light cards,
status colours, card radius/shadows, number font), Tailwind board.* colours, contrast
test for the board pairs; near-identical shades merged.
- New shared Stepper component (gallery + ui.mjs), labels ui.decrease / ui.increase.
- KDS: theme.js maps to the board tokens, no colour literals left (only stored setting
values); decline / call waiter / settings use Dialog, Button, Switch, Select, Stepper;
toasts are @xenia/ui toasts (ToastProvider at the terminal root).
- Terminal: apps can set their theme (APP_THEMES, KDS dark) while they run.
- CS-16: board screens and "no hard-coded colours in app code".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pairing screen: requests a code, shows it big, polls with the secret, new code on
expiry, keeps the device token; "removed from the venue" notice after a revoke.
- Sign-in per device mode: PIN (name + PinPad), tap your name, password (name +
password), none (straight into the app). Names = holders of <app>.access, refreshed
every 30 s and on reconnect. Slim bar with screen, user and Sign out; idle sign-out
after the device's auto_sign_out_minutes; hourly token refresh (same session).
- DeviceProvider: GET /api/devices/me (retried while unreachable), session, the live
connection with credentials in the first frame (device.updated -> reload, app moved ->
sign out, device.revoked -> forget, session.ended -> sign out), offline banner;
useLiveEvent for apps. Screen choice is pure (device/flow.js, unit-tested).
- Blocked screen: app turned off / not licensed / device refused, recovers by itself.
- @xenia/access AccessProvider: autoRetryMs (retry bootstrap while unreachable).
- Tests: terminal unit tests (screen choice, live actions, idle, pairing polls), new
tests/e2e/terminal.mjs (18 checks), manager.mjs owner flow now pairs and signs in on
the real terminal screen; run-all runs terminal.mjs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- terminal/: new workspace app (Vite + React 19 + Router 7, Tailwind on the shared
preset, @xenia/i18n namespace `terminal`, @xenia/api client sending X-Xenia-Device,
@xenia/access bootstrap). Apps are lazy chunks by app_key (kds, pos_counter,
customer_display placeholders); start screen; "unknown app" screen; dev-only
/ui-gallery and /i18n-sample. Device + session tokens in a storage wrapper.
- Image pos-terminal (terminal/Dockerfile, context client-services/); every frontend
Dockerfile copies terminal/package.json for npm ci.
- docker-compose(.dev).yml: service terminal; proxy publishes 8082.
- Proxy (nginx-proxy/nginx.conf == install.sh heredoc, CS-5): server :8082, LAN-only
allow/deny, WebSocket upgrade; the terminal upstream is resolved per request so the
proxy still starts on a stack without the terminal container.
- install.sh prints the screens address.
- Tests: terminal unit tests + lint in run-all; new tests/e2e/stack.mjs (release images
on one compose stack: :8082 serves the app, /api + WebSocket through both hops,
403 from a non-LAN docker network on 8082 and 8081, proxy up without terminal).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>