feat(manager): the menu board editor and widgets (platform-v2 step 5.6b)

- 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>
This commit is contained in:
2026-11-17 22:16:49 +02:00
co-authored by Claude Opus 5.5
parent 152388321e
commit 5f6b51fb8b
11 changed files with 509 additions and 20 deletions
+81 -1
View File
@@ -964,6 +964,86 @@
"colour": "Colour",
"dim": "Darken the photo: {{value}}%",
"columns": "Columns",
"accent": "Prices and headings colour"
"accent": "Prices and headings colour",
"menu": {
"what": "What it lists",
"all": "Every product (new ones too)",
"custom": "Chosen categories and products",
"categories": "Whole categories",
"categoriesHint": "Products added to a chosen category later appear by themselves. A category includes its sub-categories.",
"products": "Single products (from any category)",
"searchProduct": "Search a product to add…",
"hidden": "Hidden from this board",
"showAgain": "show again",
"hide": "Hide from this board",
"onTheBoard_one": "On the board: {{count}} product",
"onTheBoard_other": "On the board: {{count}} products",
"orderHint": "The board's own order: move categories and products with the arrows. The waiters' and the counter's order doesn't change.",
"badge": "Badge",
"noBadge": "No badge",
"empty": "Nothing on the board yet: pick categories or products above.",
"options": "What each line shows",
"group": "Group by category",
"headings": "Category headings",
"photos": "Photos",
"descriptions": "Descriptions",
"prices": "Prices",
"noPrices": "No prices",
"soldOut": "Sold-out products",
"strike": "Crossed out",
"hideSoldOut": "Hidden",
"perPage": "Products per page",
"perPageHint": "Empty: as many as fit the TV. A long menu turns its pages.",
"auto": "As many as fit",
"pageSeconds": "Seconds per page"
},
"badges": {
"new": "New",
"chef": "Chef's pick",
"offer": "Offer",
"popular": "Popular",
"spicy": "Spicy",
"vegetarian": "Vegetarian",
"vegan": "Vegan"
},
"widgets": {
"title": "Widgets",
"none": "No widgets: add the clock, your logo, the message of the day…",
"kinds": {
"logo": "Logo",
"name": "Venue name",
"date": "Date",
"clock": "Clock",
"message": "Message of the day",
"qr": "QR code",
"weather": "Weather"
},
"position": "Where",
"size": "Size",
"sizes": {
"small": "Small",
"medium": "Medium",
"large": "Large"
},
"positions": {
"top-left": "Top left",
"top-center": "Top centre",
"top-right": "Top right",
"bottom-left": "Bottom left",
"bottom-center": "Bottom centre",
"bottom-right": "Bottom right",
"top-bar": "Bar at the top",
"bottom-bar": "Bar at the bottom"
},
"ownText": "Its own text (optional)",
"ownTextHint": "Empty: the venue's message of the day (Signage → Screens).",
"dateLong": "Tuesday, 17 November 2026",
"dateShort": "17/11/2026",
"seconds": "With seconds",
"weatherDays": "Days",
"days_one": "Today",
"days_other": "Today and {{count}} days",
"weatherNeedsInternet": "The weather needs internet: without it (or without a town set) the widget is hidden."
}
}
}