- Online orders → Settings: the fee tabs breathe (inset strip); a rule's buttons
and switch centred together.
- Products: categories and list as panes that scroll on their own, headers and
footers stay; the list sunken with white rows; the category search is the
shared SearchInput. Product editor: "Make main" text instead of a star, the
left tabs share the width.
- Floor editor: no "+" next to a corner; − / fit width / whole plan / +;
"Edit the floor's shape" → "Save shape" (saves the shape and size at once);
sizes in grid cells by half cells (steppers; typing snapped every keystroke
before), resize handles on every unrotated table and thing, half-cell snapping.
- MediaField: the picture's name under the buttons, Remove red on hover.
- Staff permissions: a search box at the top.
- Prep zone name hint fixed. Offers & pricing: title first, then tabs; every tab
has its head with the New button at the top right.
- Tests: floor cells, e2e (cell steppers, no + near a corner, Save shape,
permission search, products panes).
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>
- The period: one toolbar (range / day as a Segmented, dates, quick choices, the report's own
filters and export / print on the right), every control 44 px; the business day a searchable
Dropdown.
- Report filters (person, category, status, waiter, table, printer) are the shared Dropdown;
export / print buttons as tall as the rest; trends' step a Segmented.
- A report's tabs are the shared tab strip above the page; a day's and an order's sections too.
- e2e: the floor editor's edge '+' and the layout check cover products, tables set-up and the
channel prices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Floor editor: one toolbar over the map and the panels (grid on / off, grid resolution Ultra high
... Very low, edit the shape, Fit width / Whole plan, undo, save), panels top-aligned and sticky.
- The floor's shape: a '+' on the edge under the pointer, press to add a corner (and drag it);
resting on a corner shows a bubble to remove it (never below 3).
- Areas: resize handles on the sides and corners, a colour (pastel, see-through; floor_items.color,
migration 0041), the name repeated in the corner when tables cover it (live maps too).
- Labels can be clicked again after they're placed (transparent fill, not none).
- Management -> Tables: <Page> with the tabs above (?tab=), the list as a container, toolbar
buttons one height.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Products: the categories and the list as two containers side by side (the tree sticky), the
toolbar on the shared controls (search, filters, list/grid, New all one height), archive /
delete red in a container.
- Product editor: a wide dialog (Dialog size=wide: ~88% of a 16:9 screen, capped on ultrawides),
the shared tab strip (no up/down scrollbar), one name and description with a language switch
above them, unit (modern dropdown) and price on one row, 'Edit alternate prices' under Where
it's sold (the product's own price per sales point: default / set / +- amount / +- %, rounding).
- Pricing: shared tabs in the address, a new 'Order channel prices' tab (rules per product,
category or sales point, multi-select, the most precise wins).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
channel_prices rules (migration 0040, services/channel_prices.py): for one or more sales points,
set the price (one product), add an amount or a percentage (with rounding), for listed products,
the products of listed categories, or everything sold there. The most precise rule wins (product
> category > channel, newest on a tie); resolve_price starts from it, so tills, phones, menus and
the cloud's per-sales-point prices all follow. /api/pricing/channel-prices (CRUD) and
/product/{id} (the product editor's quick edit of its own rules, with the fallback shown).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Online orders -> Settings: takeaway / delivery / any time side by side (wrapping, with room),
the days of the week apart; fee rules, delivery areas and fee settings (the fee line) as tabs
on the left, Test an order on the right; a rule's switch at the far right, equal padding,
'Order price from' / 'Total items count from' in the rule editor.
- Expenses: the dialog lists what was bought (quantity, price before VAT, VAT; they make the
total, with net / VAT / total) and keeps documents (attach a PDF or photo, open, remove;
picked for a new expense, uploaded when it's saved); a paperclip in the list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An expense can list what it bought; the lines make its total (net, VAT half up per line), are
replaced on edit ([] removes them) and the total still can't drop below what was paid. Files kept
with an expense: POST/GET/DELETE /api/expenses/{id}/documents[/{doc}], PDF / JPG / PNG / WebP /
HEIC by their bytes, at most 15 MB, under MEDIA_DIR/expenses/<id>/ (removed with the expense).
Migration 0039.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Tables -> QR codes: Print all codes prints only the codes, as cards to cut out (PrintArea).
- Staff: coloured row actions (edit accent, zones blue, block orange / unblock green, delete red);
permissions drawer wider, help tips right after the text, section titles quiet and ruled, more
room between sections.
- Tabs: an open tab's charged / paid / owed larger, charges and payments further apart.
- Schedule: the header on PageHeader, the person / hour switch a Segmented as tall as the buttons.
- Prep zones: the dialog wider, the name explained (the internal name; staff see the one below).
- Management -> Sessions (was 'Signed in now') moved last.
- Map labels: Fit width / Whole map.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FloorView: minus · Fit width · Whole map · plus; the zoom steps from the scale on screen; the
plan, zoom and scroll position are kept per plan on the device (localStorage) and restored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- IconButton tone=danger|warning|info|success|special|accent: a pastel button (soft background,
ink icon) for row actions that stand apart.
- Switch info: an element (InfoTip) right after the label instead of after the switch.
- Sheet size=wide: a 600 px drawer.
- PrintArea: content rendered into <body>, hidden on screen, the only thing printed while mounted;
PrintSheet: cards to cut out (dashed cut lines, never split across pages).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Order lines had no index on their order, orders none on their day/customer/status, and each
line's product was loaded to tell a fee apart: with ~3000 orders Customers took ~2 s and
Reports -> Days ~15 s. Migration 0038 adds the indexes (models carry index=True), Order.items
loads with selectin, sales.lines looks the fee products up once, cancellations and prep-zones
load their orders with the lines. Days 15 s -> 0.2 s (a month), customers 2 s -> 0.1 s.
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>
Owner's UI review (2026-11-20): pages that don't scroll and sit on the left,
native selects in toolbars, controls of different heights, labels too loud.
Everything is global in @xenia/ui so no page rebuilds it:
- Page: scrolls on its own, fills the area up to a 16:9 screen's width
(--x-page-max = max(1280px, 100vh*16/9)), centred beyond (ultrawides);
width="form" for settings; top= keeps a tab strip above the scroll
- Dropdown: portal list, flips above, keyboard, search for long lists,
multiple (array value, [] = all, allLabel), dots and hints; Input heights
- SearchInput, FilterChip (tone + count), Segmented, Tabs (sideways scroll
only, no 1px up/down scroll), Toolbar/ToolbarSpacer
- InfoTip opens on hover too; Dialog size xl (920px)
- tokens: --x-text-overline (11px), --x-pad-card(-y), muted ink-2 (contrast
test still passes in every look); preset: text-overline, p-card,
max-w-page, the special tone
- component labels (search, clear, all, nothing found) in en/el
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- @xenia/ui theme.js: a look = mode (light | dark | system) + palette (data-palette) + style (data-style); applyLook /
getStoredLook (per device), 'system' resolved with matchMedia and followed live, so a palette is just a light and a
dark token block; applyTheme kept for older callers (keeps palette and style)
- tokens.css: 'Palettes' (first: Nord, light + dark, every colour and the nav rail) and 'Styles' (first: sharp: small
corners, 1.5px borders, flat cards); --x-border-width used by every component and Tailwind's 'border'
- contrast test: every palette in both modes (+ the nav rail); it caught the default rail's active item at 3.7:1 -> 5.5:1
- manager: the saved look applied at start (was light only); profile menu -> Look: Light / Dark / Device, Colours
(Xenia, Nord), Shapes (Rounded, Sharp), applied at once and kept on this device
- e2e: manager_look.mjs (every page in light and dark, no large near-white area in dark, contact sheets; 'nord-sharp'
adds that look; in run-all), manager.mjs 'look:' (dark at once, kept after a reload, Device follows the device)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- QrCode (a QR on a light tile, optional caption; framed or not) in packages/ui, on its own subpath so only
the apps that show one need qrcode.react (an optional peer); x-qr styles keep the code dark on light in dark themes
- used by the terminal's customer display, the manager's online-ordering link, table QR codes and Settings' pairing QR
(four copies of the same markup gone)
- the money pad and the order line row stay where they are: the manager's payment is the phones' cash / card choice
(no cash given, change or split) and its order lines are not the counter's cart lines, so neither has a second user;
the signage slides keep their own QR (inline styles scaled to the TV)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- setup wizard (src/pages/setup): welcome (pick the language: the wizard switches at once), the owner's account, the venue
(kind, name, staff language, time zone), an optional lock-screen PIN, finish -> sign in; English and Greek
- shell (src/shell): AppLayout (license banner in both languages, header, lock button, idle lock / sign-out), Sidebar on a
new 'nav' token set in @xenia/ui (light + dark), ProfileDialog (name, username, password, 4-6 digit PIN), licenseContext;
App.jsx loads the session and the setup state with react-query (no setState in effects); the header's dead search box gone
- Management -> Tables -> List (src/pages/tables, was TablesConfigTab): zones as tabs (drag to reorder), zone name / prefix /
colour, add many numbered on, a table's name (6 chars) / zone / seats, twice-used names flagged, off / on / delete,
pick several to move, rename in a series or delete (says how many failed)
- the old src/ui kit, layouts/, components/Sidebar + EditProfileModal, the 'primary' palette and the .btn/.card/.input classes deleted;
NotificationBell / UserMenuButton on tokens; @xenia/ui: nav tokens, 'scrim' in the Tailwind preset
- v2.json paths = src (the guards cover all of it); npm run lint = eslint src; argsIgnorePattern for components in JSX
- tests: shell.test.mjs (3), e2e setup.mjs (new: a fresh install through the wizard in Greek to the overview, in run-all),
manager.mjs 'tables list' (zone, 3 tables, rename series, profile PIN, rail tokens)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Settings: tabs in the address (?tab=), Fiscal only with the fiscal app, Appearance only with the waiter app
- General: version / update / license / state / uptime, the local network (address by hand or found, the pairing QR),
what is set up, export / import of the catalogue and the tables (a wrong file refused, two confirmations), support lock
- Sign-in & security: idle lock / sign-out (seconds..hours, warning when sign-out comes first), recovery codes
- Operation: role permissions, waiters' own shifts and takings, card payments, tables and orders, courses (add, rename,
colour, order), quick notes, table flags (emoji, colour, white/black text, on/off), quick messages, send the QR menu now
- Appearance: the waiter app's table-card colours per state, light and dark, flash, colour picker with opacity, reset
- Fiscal: on/off, driver, folders with a reachability check, clerk / card terminal numbers, receipt end lines, VAT groups
- Development: pretend printing
- dropped: the v1 'automatic store schedule' switches (kept in the browser only, nothing read them) and the second time-zone card
- backend: JSON settings must be JSON (validation.setting_value); fiscal folders are plain paths (were typed json)
- venue colour data in sections/venueColours.js (guard DATA); store/tableColourStore and Settings/tabs deleted
- tests: settings.test.mjs (5), test_settings_json.py, e2e manager.mjs 'settings v2' (12 checks)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CRM -> Customers: search ignoring case and Greek accents (and part of the phone), visits / spent / last visit,
the card (contact, notes, open tab, every visit with what was on a tab), new/edit/remove
- Inventory -> Throwaways: log (product, quantity with a comma, reason, note) with its cost, today's list (delete today only),
a period's totals by reason and product, every entry; Inventory -> Stock: an honest 'not available yet'
- Notes: notes (pinned first, edit in place) and to-dos (urgent first, done folded away, who did it kept)
- backend: crm.manage / inventory.manage / notes.use (the customer search also with the dashboard key, for orders);
spending counted by services/sales.py (refunds off, tab lines in); null clears a field; names/notes not blank, priorities checked;
waste ?date_from=&date_to= venue dates; the Greek reason labels left the API; live customers.changed / waste.changed / notes.changed
- the overview's notes card needs notes.use and refreshes live
- tests: test_customers_waste_notes.py (4), crm.test.mjs (3), e2e manager.mjs (customers, throwaways, notes, stock, Greek)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- a line on a customer's tab is sold, not paid: services/sales.py counts tabbed lines as sold (on_tab apart)
- TabEntry / TabPayment record the business day and the shift of whoever did it (Alembic 0037, rows backfilled with their day);
services/tab_books.py: per shift and per day, on tabs and tab money received (cash / card / other, who, in a shift or not)
- shift: tab cash goes in the drawer (net_to_deliver, the counted difference, total_collected), tab card in the card total;
items paid other ways (transfer, on the house) are recorded apart and no longer counted as drawer cash;
'activity': orders, items made / paid / put on a tab with values
- day summary: per person put on tabs and tab money received, every tab payment with who took it, the part taken outside shifts (in no drawer);
the day's money: paid, on tabs, sold, paid on tabs, money taken (it used to subtract tabs from paid sales)
- Today: on tabs, paid on tabs; Staff -> Cash handover: paid on tabs; the shift dialog: made / paid / on a tab / paid on tabs
- fix: a line put on a tab was charged without its price change (a discount)
- tests: test_tab_books.py (the done-when), overview unit, e2e manager.mjs (the day records the tab payments; Today shows them)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Finance -> Expenses: still owed, late, filters, new/edit (supplier picked or added there), pay in parts, details with payments, delete
- CRM -> Contacts: the supplier book with what each one is owed
- Finance -> Tabs: open (who owes most first) / settled, charges and payments, pay (cash/card/other), close, forgive
- backend: expenses.manage / tabs.manage (the list also reports.view, a customer's tabs also crm.manage, put-on-tab needs tabs.manage);
payment <= due (expense.over_due), total >= paid (expense.below_paid), categories/kinds/methods checked, null clears a field;
live events expenses.changed / tabs.changed; GET /api/expenses ?from=&to= venue dates (the report uses it); tab_status=settled
- fix: an expense with a due date failed to save (naive date refused by D-11)
- @xenia/i18n/number subpath; tests: test_finance.py (6), finance.test.mjs (5), e2e manager.mjs finance flow
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reports -> Staff (src/pages/reports/staff): shifts (pay, collected, to hand
over, the counted difference, cancellations; a shift opens the overview's
shift dialog; the owner deletes one), cash handover (starting cash, cash,
card, refunds, to hand over, counted), sales by person (orders, units,
cancellations, hours, sales net of refunds, per hour, share; ranked) - the
v1 activity and leaderboard views merged into it
- Reports -> Cancellations and discounts (src/pages/reports/misc), with totals
per person; Technical (printing: tickets, failed, printed first time, per
printer, every ticket with its error, the receipt-printer summary; logs for
the owner) - v1 printer history + printer health merged
- Prep zones report (per zone: items, value, products, orders; per-zone Excel
downloads built in the browser with the server's Excel rules; print a zone)
and Expenses report (period, status, category; split by category or
supplier; payments) - its categories now match what Finance saves (the v1
report listed categories that never existed)
- kit: csvText() / download(); PrintDialog modes for the printer summary
- v1 report kit (reports/shared) and every v1 report view deleted;
src/pages/reports is v2 (all but LogsPanel strict)
- tests: reports.test.mjs (+1), e2e manager.mjs (every report opens, a shift's
details, the ranking)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reports -> Venue (src/pages/reports/store): business days (revenue/profit
trend, each day's times, orders, revenue, fees, refunds, cost, profit; a day
opens with its orders and shifts, a shift opens the overview's shift dialog;
the owner corrects a closing time, deletes an empty day or a shift), orders
(filters by status, person, table; per-order products / fees / refunds),
busy times (by hour, by weekday of the business date), trends (days, weeks,
months, the 7-day average), tables (time at the table, per visit, revenue)
- Reports -> Products (src/pages/reports/products): products (units, revenue,
refunded, cost, profit, margin, waste, share; top 10 by revenue, units or
profit) and categories (share bars, profit share)
- kit: PrintDialog (receipt printer, summary / full, or print the page),
TrendChart and BarList on tokens (no chart animation), printBody()
- access: deleting a business day or a shift (which erases its orders) is
owner-only (core.settings.manage; was any dashboard user)
- v1 StorePage, ProductsReportPage and their seven views removed
- tests: reports.test.mjs (+1), e2e manager.mjs (every tab, a day, products
revenue = the backend's, Greek)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- services/sales.py: sold = active + paid lines; a line's value net of what
was refunded of it; system lines (the delivery fee) counted apart as fees;
cost/profit with has_gap. Products, categories, tables, traffic, revenue
trends, business days (list and current), per-waiter sales, order history
totals and the printed products/categories/tables reports all use it (they
used to differ: closed-only vs all orders, fee as a product, refunds never
subtracted)
- the overview's day summary values lines with their price change (discounts
were valued at full price)
- services/csv_export.py: UTF-8 BOM, times in venue time with the zone in the
header, ';' and decimal commas for a Greek venue (',' and '.' otherwise);
every report export uses it; orders export has products / fees / refunded
- fix: /api/reports/shift/orders with business_day_id crashed (no window)
- manager: src/pages/reports/kit (page with tabs, period picker, panels,
figures, sortable table, export button, order dialog reusing the order
page's parts, hour chart on tokens) and reports/today on it; v1 Today removed
- tests: test_sales_accounting.py (a day with a fee and a partial refund adds
up the same in every report), test_reports_export.py (Excel format),
reports.test.mjs, e2e manager.mjs (Today, order dialog, export, Greek)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- staff: PUT /api/waiters/{id}/password (set, change, or take away; 6+ chars)
so the password sign-in mode works for everyone; PUT /{id}/pin with the PIN in
the body (was in the address: reset-pin?pin= removed); PINs 4-6 digits when
adding; a password can be given when adding; has_password on staff; editing
clears emptied fields and keeps usernames unique; delete only without history
(orders, items, shifts) and never yourself
- schedule: times checked (schedule.bad_time), one person's overlapping shifts
refused (schedule.overlap, past midnight understood), everyone active can be
scheduled (the kitchen too), changes need core.staff.manage
- manager: src/pages/staff (list with search and filters, person dialog with
photo, PIN / password dialog, zones) and src/pages/schedule (by person, by
hour with opening hours, shift dialog with clash check, view settings kept in
the browser); the never-used "automatic start/close" switches dropped; v1
StaffTab and SchedulePage removed; ApprovalsPage loads with useLiveQuery
- tests: test_staff_v2.py (done-when on a paired screen), staff.test.mjs, e2e
manager.mjs (add, password, sign-in on a paired till, a shift and a clash)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- a ticket that doesn't print is a problem for whoever sent it and the managers:
GET /api/print-problems (the order, table, dishes, printer, since when, tries,
last error, who sent it) and three ways out: print again, send to another
printer, handled (services/print_problems.py; print_jobs.resolved_by /
redirected_to, Alembic 0036); live event print.problems from the print paths
- phone: the red printer button opens the problems sheet, the table page warns
(usePrintProblems replaces the 8 s poll); counter POS: a red button under the
modes with the shared panel (@xenia/ordering PrintProblemsPanel + pure rules);
manager: a card on the overview (top), the Tables page and the order page
- manager: Settings -> Printing (printers with reachability, test print, network
scan; ticket layout + test ticket, beep, fonts with previews, dot leader,
dividers) and Management -> Prep zones (cards + zone dialog with the ticket
language, printers, copies, sorting, category order, kitchen screen) rebuilt in
src/pages/printing; v1 PrintFontsTab, PrepZonesConfigPage, PendingPrints and
/api/orders/pending-prints removed
- access: printer add/edit/delete/scan need core.settings.manage, prep zone
changes catalog.menu.manage (were any dashboard user)
- tests: test_print_problems.py, @xenia/ordering printProblems, manager
printing.test.mjs, e2e print_problems.mjs (done-when) + manager.mjs printing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- manager: new pages/orders/ (Tables page cards + quick actions, order page with
lines, multi-select pay/discount/cancel/tab, staff + customer, price changes,
history, the menu + cart beside it); a free table opens a new order on first
Send; v1 TablesPage, OrderDetailPage, DesktopOrderingTab, ManagerOrderDrawer
and PaymentMethodModal removed
- ordering by line id like the phones: GET /api/orders/menu (the counter's
product shape, in-store prices); the product dialog, cart rules and quote hook
move to packages/ordering (@xenia/ordering), shared by counter, menu tablet,
manager
- close follows orders.close_with_unpaid (pay first, or write off after saying
so) on the order page and the overview's quick view; paying asks cash or card
- a confirmed booking can keep its table ahead (manager, phones, counter):
POST /api/connect/bookings/{id}/table, reservations create/PATCH; refused with
reservation.table_kept within 2 h of another booking
- tests: test_manager_ordering.py, online bookings +2, manager orders.test.mjs,
@xenia/ordering, e2e manager.mjs (take, change, pay-first close, RESERVED)
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>
- DashboardPage (2.8k lines) → src/pages/overview/: OverviewPage + cards (shifts, tables,
pending prints, notes, bookings, messages) and dialogs (order at a glance, shift review /
end with the cash handover, day summary with cash count and checks); arithmetic in
overviewLogic.js (tests/overview.test.mjs). Data via useLiveQuery: orders and tables
live, day and shifts every 15 s. Bookings typed in venue time; decline reason in a dialog.
- OnlineOrdersPage → src/pages/online/ on react-query + live events; unused API helpers dropped.
- WorkdaySummaryModal → overview/DaySummaryDialog + DaySummaryTabs.
- Every text in manager.json (en + el, 342 keys); tokens only; v2.json adds overview, hooks.
- Backend: business day open/close answer only with codes (license.locked, license.expired,
business_day.orders_open); XeniaError's v1 `detail` removed.
- @xenia/i18n: formatDateTime with Intl options threw "unknown date style" (fixed, tested).
- e2e manager.mjs: open the day, a shift (start, stats, end short), a live table, a booking,
day stats, Greek, close the day (forced), online orders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Backend: every HTTPException in routers/ is an error code now (260 raises, ~105 new codes,
texts in en + el); XeniaError(detail=...) keeps the three v1-shaped answers old pages read;
bad / unknown tokens answer auth.session_ended; test_errors refuses new HTTPExceptions.
- Manager: v2.json is the list of pages on the v2 rules: scripts/lint.mjs lints them,
tests/v2-guards.test.mjs refuses Greek and colour literals, `strict` paths make
set-state-in-effect an error.
- src/live/useLiveQuery.js (react-query + live events + refresh on reconnect); Signed in now
uses it.
- Dead manager files removed (3.1k lines unreachable from main.jsx).
- Tests: backend 544 passed, manager unit 33, run-all (no Android) passed (manager's live
bell check passed on a rerun).
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>
GET /api/menu-tablet/menu for a paired menu tablet: categories in the
catalogue's order (sub-categories after their parent, one category and its
sub-categories when the tablet is set so), each with its products in its own
order (a product in several categories shows in each), the products once with
name, description, tags, photo, the price of the tablet's sales point (or none)
and availability; sold-out hidden when set; the venue's name and the tablet's
settings. Device config: view, photos, descriptions, group, theme, prices of,
sold out, category, search, languages, idle reset (texts in both languages).
Menu changes send menu_tablet.changed to every tablet (main.py, with signage).
tests: test_menu_tablet.py (4); 531 passed.
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>
GET /api/signage/playlists/{id} gives each menu slide its resolved `menu`;
POST /api/signage/preview/menu resolves a menu board not saved yet; GET
/api/signage/venue gives what the widgets show. 527 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The signage slides (SlideView, TextSlide, MenuSlide, Widgets) and the pure
logic (schedule pick, slide windows, menu pages) move from the terminal into
packages/signage, so the manager's previews draw a slide exactly as the TV
does. Sizes are container units (cqmin) instead of viewport units: a slide
draws inside any box with container-type: size (frameStyle sets it on the
TV). Tests move with it (10). Dockerfiles copy its package.json; both apps'
Tailwind content include it; run-all runs its tests. Signage e2e and the
compose stack passed.
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>