An area is a list of postcodes, a shape drawn on a map or a circle around a
point. The fee engine (both copies, byte-identical) matches a shape only by
the customer's pin, then postcodes; point-in-polygon (edges inside) and
haversine circles; shared cases in fee_cases.json.
- Alembic 0053: delivery_areas.kind / geometry, orders.online_lat / lng
- /api/connect/fees: areas with kind + geometry (validated: 3-200 corners,
50 m - 50 km), the venue's place (PUT /venue-point, setting venue.location,
sent to the cloud as fees.venue_point), preview by lat / lng
- manager: DeliveryMap (Leaflet + OpenStreetMap tiles): draw / move / remove
corners, circles, the venue on the map, an overview, test an order by a point
- pulled online orders keep the pin; the site re-checks the fee with it;
the counter links the pin to a map
- tests: backend (shapes, venue point, pinned orders), manager logic,
e2e manager.mjs and order_app.mjs 6R.G blocks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The waiters' phones and the counter show categories, products and every
choice (quick options, extras and sub-choices, preferences, shared sets,
ingredients, groups) in the signed-in person's language, falling back to
the stored text. Display only: carts, lines, tickets and the kitchen keep
the venue's text (ids, sub-choices by stored name). In the venue's own
language nothing changes.
- @xenia/access: menuText / useMenuText (mt, mt.choice, mt.line, mt.matches)
- /api/pos/menu carries translations for products, categories and choices
- shared ProductDialog takes a text() prop (the counter passes useMenuText)
- search finds a product by its name in any language (counter, waiter)
- waiter: useMenuNames for sent lines; picker, drawer, cart, summary,
table lines, quantity / price history, favourites setup
- counter: categories, cards, dialog, cart lines, table lines, payment rows
- tests: access menuText, ordering search, test_pos per-language,
e2e waiter.mjs and terminal.mjs 6R.L blocks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner 2026-11-23 (plan 6F.2): new DecimalInput / MoneyInput in @xenia/ui (keeps what is typed,
reports a number, null when empty, NaN when not a number) on parseNumber. The waiter app's starting
cash, weighed quantity and typed prices were type=number + parseFloat (a Greek keypad's comma was
dropped: 12,50 became 12 or nothing); now text fields read with parseNumber, and a wrong starting
cash shows a message. The manager's price rules, deals and order-total condition use the new
fields; every Number(x.replace(',', '.')) now reads through parseNumber (1.234,50 too). Guard test
packages/i18n/tests/typed-numbers.test.mjs refuses parseFloat, .replace(',', '.') and decimal
type=number fields in the apps. e2e: shift close with 20,50, waiter starting cash 25,50.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner 2026-11-23 (plan 6F.0): Settings was the only 880 px page and its 11 tabs scrolled out of
sight ('Operatio...'). Now full width like every page; each tab's cards sit in the new @xenia/ui
<Columns> (cards flow down then across, 34rem columns: two on 1080p, three on an ultrawide, one on a
laptop), settings rows keep switches at the right edge. Tabs everywhere wrap onto another row when
they don't fit. manager_layout e2e: Settings tabs, a 1366x768 screen, every tab visible.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner review 2026-11-23 of every widget:
- A widget card is its main settings (the row and what needs room under it: pictures, a gallery's
pictures or folder, weather details and place, a countdown's start and end, reviews' stars and
author, a scrolling text's speed, a shape's colours and border, QR caption), then "Text and
colours" (new LookFields.jsx: text colour, plate, font, style, size, weight, highlight, shadow,
QR colours; a logo's / gallery's border), then More settings (opacity, rotation, animation, fit,
typing, blink, QR logo; shadow / border only where there is no Text and colours).
- Date format / separator and clock 12/24 / separator are main settings.
- Alignment only where it lines something up; the TV now aligns the lines of a text, the hours
(centre: days and times meet in the middle), contact rows, Wi-Fi (code left / right / above),
the weather's column / card / list / hourly, reviews (stars too), a countdown, a QR caption.
- Text and message: a 2-line textarea in its own row; Enter makes new lines (the TV sizes by the
longest line and the number of lines).
- Gallery: a title above or below the pictures (title_position).
- A widget's box may reach 400 % of the slide (a logo zoomed in past the slide's edges saved again).
- "Auto" stays "Auto" in Greek; scrolling text Left / Right; reviews' stars choice no longer clipped;
countdown "When it ends" hint as an info tip (fields level).
Calibration: an edge may go past the recognised window (down to -2000 px); the dialog's rows are
centred, "Each click moves" sits above its choice, the window size is labelled "Recognised
resolution" with what it means; the TV asks for its screen answer on every calibrate event and
while calibrating (the outline shows the first time), the dialog sends "on" again after 1.5 s.
NumberInput takes a leading minus when min < 0. E2E: waits for the Add-a-slide dialog to go.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Folders are only a grouping in the database (media_folders, media.folder_id, Alembic
0046): made, renamed, deleted (files stay) on the Media page, a file filed from its
details, uploads go into the folder shown, the picker filters by folder. The gallery
widget: its own pictures/videos in order or a folder as it is now, seconds each,
fade / slide / zoom, cover / contain. Plan 6R.16, F-114.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviews (name, stars, text, date, where) under Signage -> Message & settings, shown
one at a time by the reviews widget (a minimum of stars, seconds each); not pulled
from Google (owner's choice). The widgets section: one "Add a widget" menu at its
top instead of a button per kind; the cards are layers, the top one drawn over the
others, so a new widget goes on top; the arrows bring forward / send backward.
Plan 6R.19, F-113.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shapes: rectangle, circle, triangle, polygon, star or own corners, fill or gradient,
border. Countdown: to a time every day or a date, from now / a span before / a set
time, in venue time (the slide shows what is left right now). Opening hours, Wi-Fi
(with a join-the-network code) and contact details read the venue's identity and
opening hours (GET/PUT /api/identity/hours; Schedule -> Opening hours, shaded on its
timeline); the editor warns with a link when they're missing. Plan 6R.15, F-112.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Set once (GET/PUT /api/identity, venue.name + venue.identity); every colour field
offers the venue's colours first (VenueColoursProvider in @xenia/ui); signage screens
get the identity and the venue's time zone with their venue and are told on a change;
logos are protected in the media library; wifiQr() for the join-the-network code.
Plan 6R.14, F-111.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A slide is drawn at its playlist's shape, as large as fits the screen's picture,
the bands in its own background (or stretched, the screen's choice). Playlists and
library slides may have a shape of their own (aspect, Alembic 0045). Signage ->
Screens -> Calibrate the picture: the TV outlines its area with arrows and its size,
each edge moves pixel by pixel or a preset centres a shape; the TV follows live
(signage.calibrate) and reports its window (POST /screen/viewport). Plan 6R.13, F-110.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- @vitejs/plugin-legacy: browsers without import.meta.resolve (older than Chrome 105 /
Firefox 106 / Safari 16.4) load a second copy built for Chrome 79 / Firefox 78 / Safari 13
with polyfills. The modern targets and the stylesheet stay on Vite's own defaults, so modern
chunks are byte-identical to before (only plugin-legacy's 230-byte guard in the entry).
- terminal/src/compat.js (legacy copy only): swaps in <name>.compat.css (lightningcss for the
older targets), sets container-size variables for signage slides, emulates flex gap.
- @xenia/signage cq()/CQ_BOX: container units as before where supported, calc(var()) fallback
otherwise; EmbeddedSlide no longer uses inline `inset`.
- Shared Notice (@xenia/ui); "Devices that work" in Pair a device and Signage -> Screens (EN/EL).
- tests/e2e/compat.mjs: modern browser loads nothing extra; a simulated older TV runs the legacy
copy and the layer, pairs, and plays a slide at the same sizes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A menu board with pages plays whole rounds (menuMs rounds its seconds up); the editor says how
long it really plays under "Seconds on screen", the card and the playlist total use it.
- Seconds on screen / per page: shared NumberInput (− / +, may be emptied: an error under the
field and Save blocked until filled; 1 s at least, server ge=1).
- Performance (Signage -> Message & settings): widgets per slide (signage.max_widgets, 10
recommended, up to 50), checked by the server (signage.too_many_widgets) and the editor.
- Text, clock, date, QR, weather, logo placed by hand: the box is exactly the content (its height
x text size sets the size, the width follows; handles scale keeping the shape; text size grows
the box); a slide's widget may run off the slide while 5 % stays on it.
- Slider: the value as close to the slider as the frame's padding; floor and table-colour sliders
use the shared Slider. Timeline cards' ring no longer clipped; larger playlist buttons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Badges: the venue's list (setting signage.badges: names el/en, colours, an icon from a food and
drink set) edited under Signage -> "Message & settings"; sent with the venue to screens and
previews; several badges per product (MenuList.badges lists, a single one still read) in the
shared multiple Dropdown; a board's badge colour / text colour override them (None = each own).
- Widgets: colour, background plate, font, bold / italic / underline, text size, QR colours;
widgets in a stack's part get every setting, vertical alignment, and a custom box inside their
place, picked (stack, then widget) and dragged on the preview (selection by path "2.1.0").
- Menu slides: vertical alignment of the list (board_valign); "Where the list sits" is now
"Horizontal alignment".
- Message of the day: one component in the settings tab, on the Overview and from its widget.
- Leaving a slide with changes: "Save and leave" (ConfirmDialog altLabel).
- @xenia/ui: ColourField (with colour.js helpers), FieldRow (framed only while wrapped), Slider,
IconPicker, Segmented multiple; native selects on the Overview and signage replaced by Dropdown,
the device settings' colour input by ColourField.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Menu text look: each field names its part ("Headings size"), rows wrap in aligned columns on
alternating bands; names align left / right; line and letter spacing as lists (Auto default);
each field changes only itself (followers frozen before the other changes); badge colour +
badge text colour (auto: readableOn); "Reset the look" with a question.
- ColourField everywhere in signage: a Popover panel (new @xenia/ui Popover, portal, kept in the
window) with 12 presets, picker, opacity (#rrggbbaa) and typed code; HEX accepts 8 digits.
- Stacks: Cell.widgets (a stored `widget` still reads), several widgets per part laid across the
stack's direction; extras by path stack.part.place; Add a widget adds, each removable / ordered.
- Page rule: --x-page-max is 2200px (no longer follows the window height).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Stacks: horizontal / vertical, 2-6 parts with % shares; each part shows
a widget, a stack one level deep, or a whole Slides-library slide
- Menu widget (a board's list in its box), text widget, weather for
tomorrow / the day after and in picture / degrees / both styles
- Widgets' order (arrows, drag with a drop line), drawn in list order;
arrow keys move the picked widget from its card too
- Server: extras by widget path (QR links, menus, embedded slides),
POST /preview/slide, resolve(keep_hidden) so hidden products stay
greyed in the editor's list; screens told when an embedded slide changes
- Editor rows tidied: framed sliders, colours as fields, text look on one
row, Switch boxed toggles from its whole frame
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Slides library (Alembic 0044, /api/signage/library): slides kept with a name and a
description, added to playlists as copies ("Add a slide" → Your slides, "Keep in Slides"),
or shown alone as a screen's default (device config `slide`, played as "slide:<id>",
also as a schedule's fallback). Signage → Slides: gallery + a two-pane editor.
- Widgets moved and sized by hand on the preview (WidgetCanvas: handles, snapping, arrow
keys): position/size "custom" with a box the TV draws the same; alignment per widget.
- Blank slides (background + widgets); menu boards narrower and placed left/centre/right.
- Slide editor reworked: name | show, transition effect | seconds; sections; text look on
one row with ready colours; one card per widget, settings on one row.
- Questions inside the page (@xenia/ui ConfirmDialog/useConfirm), Switch boxed, Segmented
fill; the timeline's drop line; schedule lines run on weekdays or smart days, not both;
the playlist editor stays within 1080p with a long timeline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Tabs inset: no line under the strip, the labels level with the end button.
- Products: a chosen category's actions share the width equally, toned (quiet,
coloured on hover); the drop line shows above / below the row by the pointer's
half and the category lands exactly there (moveIdTo); grid cards' edit and
archive centred.
- Floor plans: the plan chips as tall as "New floor plan".
- Staff: PIN and password toned like the other row buttons; toned buttons light
up (soft background) under the pointer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Alembic 0042: a `translations` column on every choice (groups, quick options,
extras, ingredients, preference sets and choices; sub-choices and shared
sub-sets in their JSON); the texts typed so far become the text in their
language (Greek letters → el, else the venue's); the product's old quick map
moves onto the quick options. API, catalogue bundle and the cloud's quick
option names carry them; names are checked before anything is replaced.
- Editor: a language picker beside the close button (Default = the venue's
language, plus every menu language) drives every name and description, left
and right; an empty language shows what is used instead as its placeholder.
The shown name is the venue language's, else any (never mixed).
- Choices: one name field; the shared controls at one height (heart red when on,
several / compact… chips coloured when on, delete red on hover); "+ Preference"
at the right end of the tab strip; preference groups made inside a preference.
- Categories: the shared dropdown to add one; the category dialog per language.
- The service item switch is gone: "New service item" opens its own small dialog.
- UI: Dialog headerEnd; a toned toggle keeps its colour while pressed.
- Tests: backend (choice names, migration 0042), access, editor logic, e2e.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Page `fit` + `Pane`: panes scroll on their own, the page doesn't (from 768 px);
Page `header`: the title and description above the tabs; the scrollbar's room
is always kept, so short and long tabs are the same width.
- Tabs `inset` (a card's header: room around the end button) and `fill`.
- IconButton tone: grey at rest, the colour on hover; Button tone (ghost text
that turns red on hover).
- Dialog / Sheet `toolbar`: stays under the title while the body scrolls.
- A Switch without a label lines up with the buttons beside it.
- DESIGN.md updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the owner's page-by-page review (2026-11-20):
- every page root is <Page> (scrolls, fills 1080p, 16:9 centred on
ultrawides); not yet: products, management/tables, stock (next pass)
- /dashboard: more padding in cards (p-card), quieter secondary text,
11px uppercase labels everywhere (text-overline)
- day stats: xl dialog, "● Day running · Opened …" as text, the six
figures in equal boxes, "On tabs" in the payments bar, shared Tabs
- /tables: Segmented List / Map / QR codes (?view=; /online/qr redirects),
filter chips + zones multi-select at one height, the card itself opens
the table (button removed), cards ~20% wider
- /online-orders: shared Tabs with Settings (= the old /online/fees page,
which redirects to ?tab=settings); orders fill the width
- contacts, customers, expenses: PageHeader + Toolbar + SearchInput +
multi-select Dropdowns (kinds; statuses, categories); table cells
vertically centred; the Spent tip opens on hover
- filterCards / filterContacts / filterExpenses take several values
(unit tests added)
- docs/DESIGN.md: the design language (CS-20 in the pack README)
- tests/e2e/manager_layout.mjs: the page rule at 1920x1080 and 3440x1440;
manager.mjs and manager_look.mjs follow the moved pages
Verified: manager build + lint (0 errors), unit tests (manager 99, ui 24,
i18n 31, api 25, access 8), i18n guard, manager_layout.mjs all passed,
manager.mjs 228 checks all passed. Not checked: the waiter app and the
terminal by eye (they only get the muted ink-2 token).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- manager src/pages/pricing: price rules, price groups, deals, discounts on the tokens,
English and Greek; the rules as data in pricingLogic.js (tests/pricing.test.mjs)
- routers/pricing: set-up needs pricing.manage, broadcasts pricing.changed; incomplete
conditions refused (pricing.bad_condition); venue discount settings saved again (the
date-as-text bug) with empty = no limit (pricing.bad_limit), old "None" tolerated
- nav: Offers & pricing needs pricing.manage
- tests: test_pricing_setup.py (a happy-hour rule prices a counter quote), manager.mjs e2e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- tablet_orders (0034) + services/tablet_orders.py: venue rules (menu_tablet.ordering) with
per-tablet overrides: kitchen or waiter confirms first, no open order open/refuse, limits
(items per order, of one dish, time between orders)
- /api/menu-tablet: quote, order, order/{id}, bill (see + ask), requests accept/decline, ordering
- terminal: Add to the order (POS ProductDialog), cart, note, send, live status, the bill
- waiter: TabletRequests on the table page, tablet_order message theme with Open the table
- manager: Settings -> Menu tablets
- tests: test_tablet_orders.py, menu-tablet unit, menu_tablet.mjs e2e (the done-when)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- products.translations / categories.translations (Alembic 0033, core/menu_languages.py: el + en,
name / description / quick options by their base name; catalog.translation). Empty = the text
as typed; no machine translation (owner).
- In the manager's product editor ("In English" / "In Greek", quick extras), the category dialog,
and a menu board's Language (signage MenuContent.language).
- Customer screens only: cloud snapshot names / descriptions per language (C-2), the menu tablet's
EL / EN switch the names (localize), signage boards; tickets, KDS, counter, phones keep the base.
- Catalogue bundles carry translations; @xenia/access menuLanguages.js (a backend test compares).
- e2e: manager (the other language saved), menu tablet (EN / EL names), QR table (English on
the menu, the base name on the kitchen's order, Greek page as typed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Management/ProductsTab + ProductFormModal (3.1k lines) → src/pages/products/: category tree,
list/grid, toolbar + filters (search folds accents and Latin letters), bulk actions, category
dialogs; the editor in editor/ (details, sold at, cost, fiscal; the waiter's choices).
Arithmetic in productsLogic.js / editor/formLogic.js (tests/products.test.mjs).
- Several categories per product with a main one (D-23): edited in the editor, "also in" on the
rows, each category's list ordered on its own (drag or up/down → PUT /reorder with category_id);
bulk "move to" / "also list in". The waiter's picker now shows a product in every category.
- Allergens: products.allergens (Alembic 0032, core/allergens.py: 14 EU, contains | may_contain,
catalog.allergen), in the API, POS menu, menu tablet, catalogue bundles and the cloud snapshot
(C-2); @xenia/access allergens.js + <Allergens> shown on the phone, the counter, the tablet.
- Bell: only the newest load sets the list (an older answer could hide a live notification).
- e2e: manager (two categories, order per category, allergens), terminal / menu tablet / waiter
(allergens shown); media saves by test id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- THIRD_PARTY_NOTICES.md in the backend image: FFmpeg (GPL v3, via imageio-ffmpeg)
- video.requeue_missing(): videos whose still frame is gone (a partial restore) are prepared
again when the backend starts (+1 test, backend 542 passed)
- pack README: data/media belongs in every site backup with pos.db
- stack.mjs: the test video is unique per run (the stack keeps its data between runs)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- services/video.py: background worker (one video at a time, low priority) makes a still
frame (thumb/card/full WebP) and, when needed, play.mp4 (H.264+AAC, <=1920 px, HDR
tone-mapped, faststart); the original is kept. Media.processing/progress (migration 0031,
existing videos queued). ffmpeg from the pinned imageio-ffmpeg wheel; none = as uploaded.
- MOV (video/quicktime) accepted; /api/media/file/<sha>/play served with ranges.
- Signage plays the version (poster = still frame) and tells the screens playing it when ready.
- Manager library: still frames in the grid, preparing progress, status in the details.
- Tests: test_video.py (8), backend 541 passed; e2e media/signage/stack new checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- backend: menu tablet device config `table` (ref, validated against active
tables) and `call_waiter`; GET /api/menu-tablet/menu gives the table and
whether it can call; POST /api/menu-tablet/call sends a `table_call` staff
message ("Table 5: the guests call a waiter.", venue language) to the table's
waiters (its open order's, else the zone's), at most once a minute per tablet
(menu_tablet.call_too_soon with the seconds left; menu_tablet.no_table).
- terminal: "Call a waiter" only on a tablet at a table; "A waiter is on the
way to table 5", then a countdown before it can call again; a failed call
says to ask at the counter.
- waiter: the call shows with its own look and "Open the table".
- manager: tables as the choices of a device setting.
- tests: backend +2 (535 → 533 passed total), e2e menu_tablet.mjs +3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
terminal/src/apps/menu-tablet: the venue's menu for staff (a quick price
check) and guests. Category chips that jump to their section, or one A–Z
list; compact rows, expanded rows (photo, description) or full cards; tap a
product to see it big (photo, price, description, tags); search that ignores
accents and also finds names typed in Latin letters ("souvl"); sold out
marked; the guest's language for the tablet's texts; back to the start (search
cleared, first language, top) after the set time without a touch; light or
dark; the last menu kept for offline; live on menu_tablet.changed /
device.updated. @xenia/i18n exports ./latin for plain-JS use.
tests: logic (3), e2e menu_tablet.mjs (10 checks, in run-all).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signage gets tabs:
- Screens: every paired signage TV with what it plays (a playlist, or a
schedule that wins over it), its shape and rotation, a warning when a
playlist was made for the other shape; a link to pair one in Devices.
- Schedules: lines (a playlist on days / between hours that may pass midnight /
between dates, with a priority) and the playlist for the rest of the time;
"now: …" per schedule; the screens on it.
- Message and weather: the message of the day for every screen; the
weather's town from a search (°C / °F), now / fetched at, "no forecast"
when the server can't reach the service, fetch now, remove; says the
weather needs internet and the widget hides without it.
- e2e signage.mjs +6 (message saved, weather section, choosing a playlist and
turning the picture move the TV, a schedule built in the manager plays what
it picks now); a crash is reported as a failed check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Menu board: everything or chosen whole categories (sub-categories
included, new products join) plus single products found by search; hide a
product from the board (and show it again); the board's own order with
arrows on what the server resolved (categories and products; boardOrder
writes it); a badge per product; grouping, headings, photos, descriptions,
whose prices (a sales point or none), sold out crossed out or hidden,
columns, products per page (or as many as fit), seconds per page; colours,
font, size, background.
- Widgets (text and menu slides): logo, venue name, date (long / short),
clock (seconds), message of the day (or its own text), QR code (ordering /
QR menu / a link + caption), weather (1-3 days, says it needs internet);
where (corners, bars) and size.
- The preview stays in view while the settings scroll.
- @xenia/signage: the venue clock's Intl call names its time zone where the
i18n guard reads it.
- tests: manager signage.test.mjs +1; e2e signage.mjs builds a menu board in
the editor (categories, a single product, the order, a badge, hiding, a
clock) and checks what was saved and resolved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Management → Signage: playlists (name, landscape / portrait, default
transition, duplicate, delete with the screens it plays on); the timeline
(drag or arrows to reorder, duplicate, remove, on / off, time and when it
shows at a glance, a round's total time); a slide's settings (name, seconds or
a video to its end, transition, days / hours / dates, the picture or video,
fit, text, alignment, font, colour, size, background colour or photo with
darkening; a menu board's title, columns and colours) with a live preview drawn
by @xenia/signage at 1920 × 1080 and scaled down; new slides empty or from
templates (promotion, announcement, happy hour 17-19, welcome, menu board,
video); a warning on the slide and its card when a picture or video doesn't
fit the playlist's shape. Unit tests (4), e2e signage.mjs builds a playlist in
the manager and the TV plays it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Menu board: the board's own order, grouped with headings or one list,
photos, descriptions, badges (translated), sold out crossed out with a
label, prices in the venue's money format, dotted leaders, a page dot row.
Pages: rows that fit from the frame's shape (portrait fits more), text size,
photos / descriptions, the title and widget bars (`page_size` overrides);
they go round every `page_seconds` while the slide lasts.
- Widgets on text and menu slides: logo, name, date, clock, message of the
day, QR code, weather (hidden without a forecast) in corners and bars, three
sizes.
- logic.js: menuPages, rowsPerColumn, frameHeightVmin, boardPages, menuMs,
pageAt, weatherIcon (+4 tests).
- e2e signage.mjs: a long board pages by itself, widgets in place, weather
hidden with no place, the chosen product first with its badge, a price change
and sold out show within seconds, a portrait TV needs fewer pages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- terminal/src/apps/signage: plays the screen's playlist (or the one its
schedule picks now, switching by itself) full screen: slides in order with
their time, a video to its end (a 15 min safety limit), only in their days /
hours / dates; transitions fade / slide / zoom / none (CSS, reduced motion
respected); the frame turned 90/180/270 for a TV mounted sideways. Picture,
video and text slides drawn; a first menu board (5.5b lays it out fully).
- Offline: the last GET /api/signage/screen kept in localStorage, every
picture and video (up to 120 MB) as an in-memory copy; reads again on
signage.changed / device.updated / reconnect / every 5 min.
- logic.js: the server's schedule pick ported (same test cases), slide windows,
next slide, frame; tests/signage.test.mjs (6).
- Signage screens get no offline banner over the slides, a small mark instead
(registry QUIET_OFFLINE).
- e2e signage.mjs (in run-all): a paired TV plays picture → text → video →
menu in order, the text's slide transition, rotation, keeps playing with the
server stopped (mark, no banner), catches up when it is back. terminal.mjs
passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- signage_schedules (Alembic 0030): entries {playlist, days, hours (may pass
midnight), dates, priority} and a fallback playlist. A screen's `schedule`
(ref) wins over its single playlist.
- services/signage_schedule.pick (pure): highest priority, then the most
specific (dates > days > hours), then the later entry; no match → fallback.
- GET /api/signage/screen with a schedule: the schedule (with the venue's time
zone) and every playlist in it, `playlist` = the one playing now, so the
player can switch while the server is down.
- schedule_worker (signage module, 30 s) tells a screen when its pick changes.
- /api/signage/schedules CRUD (playing now, the screens on it); deleting a
playlist takes it out of schedules; changes reach screens through schedules.
- Devices page: a signage screen's Schedule.
- tests: test_signage_schedule.py (6); 526 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Widget on text and menu slides: logo (a picture), name, date (short/long),
clock (seconds), message (the venue's or its own text), QR code (ordering /
QR menu / a link; the screen gets the link), weather (1-3 days); position
(corners, top / bottom bar) and size. Logos count as media usage.
- The screen gets `venue`: name, message of the day, weather.
- PUT /api/signage/message (one place, every screen told at once).
- services/weather.py: the venue's place (town search through
/api/signage/weather/places, PUT/DELETE /weather/place, °C/°F), Open-Meteo
every 30 min (signage worker), kept in memory; no place, no internet or older
than 3 h → weather null and the widget hides. signage.weather_offline when
the town search can't reach the service. Checked against the real service.
- tests: test_signage_widgets.py (5, a fake Open-Meteo); 520 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- MenuContent: select all / whole categories (with sub-categories, live: new
products join) / single products, exclusions; grouped by category or not,
headings; the board's own category and product order; a sales point's
prices or none; photos, descriptions, badges (new, chef, offer, popular,
spicy, vegetarian, vegan); sold-out crossed out or hidden; columns, items
per page, seconds per page, font, colours, size, background.
- services/signage_menu.resolve: the products in that order with
customer-facing names, prices from pos_cart.unit_prices (what the counter
charges right now), availability, card-size photos. GET /api/signage/screen
includes each menu slide's `menu`.
- Every request that changes the menu (the online menu's paths) also sends
signage.changed to the screens with a menu board (main.py, off the loop).
- tests: test_signage_menu.py (6); 515 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- signage_playlists (name, orientation, default transition) and
signage_slides (kind menu | image | video | text, position, duration,
transition, video to its end, on/off, days / hours / dates, content typed
per kind: extra fields refused, pictures / videos as media ids). Alembic 0029.
- /api/signage: playlists CRUD, duplicate, timeline order; slides add (at a
position), change, delete, duplicate; screens (playlist, orientation,
rotation, orientation mismatch). The screen's GET /api/signage/screen gives
its playlist resolved for playing with a version hash. Changes send
signage.changed only to the screens playing that playlist.
- Signage device config: playlist (ref signage_playlists), orientation,
rotation. Slides register their media usage.
- Built-in pictures: assets/builtin_media/ imported at start
(media.builtin), a collection of their own (?collection=builtin|own),
never deleted or renamed (media.builtin).
- tests: test_signage.py (8); 509 passed. Pack README: the signage row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- terminal.mjs: the looks API drives the idle screen; a second look on the
other display: two displays show two different slideshows from the library.
- manager.mjs: the default look's QR design through Settings.
- media.mjs: a new look with three pictures picked at once, a picture in a look
can't be deleted.
- pack README: the customer display row; CS-19 (screen designs are records a
device picks with a ref field).
- run-all --no-android: all passed except terminal's "server unreachable →
banner" (8 s wait, under load); terminal.mjs alone right after: all passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- media.mjs: batch upload through the Media page (the owner's ITEM PHOTOS
folders when present: 49 files incl. AVIF, all in), details and rename, a
product's photo from the library and one uploaded on the spot named after
the product, a used photo can't be deleted, the waiter fetches the photos
ahead and shows them offline. In run-all.
- startBackend gives each test backend its own XENIA_MEDIA_DIR.
- pack README: the media row (usage registration, `image`, MediaField, offline).
- run-all --no-android: every suite passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Table `media` (Alembic 0026): kind, name, original name, type, sha256
(unique), bytes, width/height, video length, who and when.
- Files under /app/data/media/<sha[:2]>/<sha>/: the original, and for
pictures thumb (200 px) / card (600) / full (1920) WebP, upright from
EXIF, never enlarged, transparency kept. Videos (MP4, WebM) kept as
uploaded; an MP4's length and size come from its header.
- GET/POST /api/media, GET/PATCH/DELETE /api/media/{id} for whoever manages
the menu, customer display, signage or menu tablets. The same file again
returns the existing item. The type comes from the bytes; 20 MB pictures,
200 MB videos, 60 MP; refused uploads leave nothing behind.
- GET /api/media/file/<sha>/<variant>: public (LAN), Cache-Control
public, max-age=1 year, immutable; byte ranges for video; a missing size
is made again from the original.
- register_usage(kind, fn): what uses media (products, displays, signage
from 5.2-5.4) declares it; delete is refused with media.in_use listing
the users.
- tests: test_media.py (12); stack.mjs uploads 3 MB through both nginx hops
and fetches a size with its cache headers (compose stack: all passed).
Backend suite: 490 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pack README: CS-3 now says orders are queued by id and priced on sync, refused lines
are shown, and no request a screen waits for may hang; rows for the waiter's texts /
colours guards and the table, ordering and bookings pages.
- run-all: the waiter suite's label lists what it covers.
- waiter.mjs: the language check waits for the profile save (the screen changes first).
- android.mjs: the "server really down" check accepts the offline screen in place of the
app (the start-up data failing shows it there since the bootstrap time limit), not only
on /offline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Shift overview, order log, chat list / thread, offline + server search +
rediscovery screens, notifications, the refused-lines sheet and the offline queue's
reasons become keys; times and dates through useFormat() in the venue's clock.
- User menu: the other language(s) (data-testid menu-language-<lng>), saved to the
person's profile (PATCH /api/auth/me) and the bootstrap reloaded (D-12).
- tests/no-greek.test.mjs: no Greek letter in waiter_pwa/src (the one Greek word the
app recognises in staff messages is a \u escape).
- e2e: the test venue is English: waiter / browser / android use the English texts;
waiter.mjs +3 (English by default, switch to Greek at once and saved, after reload);
android bundle checks print what they saw when they fail.
- Pack README: the waiter texts rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The waiter app (and the manager's ordering tab) send what was chosen, by id; the
server prices it with the counter's code. No app sends a price any more.
- POST /api/orders/{id}/items takes `lines` (pos_cart's line + course_id,
price_adjustment, is_service_item): sales point checked first, refusals name the
product and line (order.line.*, order.not_sold_here); prices or selected_options in a
line -> order.line.client_price, the old `items` shape -> order.lines_required; a
by-hand price change needs ordering.prices.modify or a manager's approval (audited
PRICE_SET_BY_HAND). add_priced_items is the one writer of priced items (pos too).
- POST /api/orders/quote: the cart's total before sending; /api/pos/quote shares
pos_cart.quote().
- pos_cart: a preference set left out takes its default; a set at its free default
isn't stored; a default that costs is charged (the waiter never sent it: fixed);
an extra's sub-choice is charged per extra (the counter charged it once: fixed).
- @xenia/api lines.js: lineFromOptions / wireLine / estimate / LineError.
- Waiter: lines on send; cart total from the quote ("≈ estimate" offline); summary
shows the same prices; offline orders queued by id, priced on sync, refused lines
shown on a "Δεν στάλθηκαν" sheet (no empty order opened); dead ItemOptionsModal gone.
- Tests: test_order_lines.py (14), lines.test.mjs, waiter e2e +6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Payments: ordering.orders.close checked on pay/close and the counter POS
(waiters have it by default, owner decision); pay-offline always recorded.
- The venue switches waiter_cancellations / price_adjust / revert are gone:
ordering.orders.cancel, ordering.prices.modify and the new
ordering.payments.revert (overridable) decide; moves/split/transfer/merge
need ordering.orders.open; discounts pricing.discounts.apply; chat chat.use.
- Venue role defaults: role_permissions (Alembic 0024), role_template(role, db),
GET/PUT /api/waiters/roles/{role}/permissions applying the change to everyone
with the role; manager Settings -> Operation -> "What each role may do".
0024 also grants the new key to existing owners and store managers.
- Bootstrap `approvable`; @xenia/access useAllowed(key) -> yes/approve/no.
The waiter shows each action by key, "with a manager's approval (PIN)" where
allowed; GET /api/orders/cancel-permissions removed.
- Tests: test_waiter_keys.py (11), access allowed(), waiter.mjs +5, manager.mjs +3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>