feat(signage,scenes): schedule lines with screens and smart days, screens' defaults, horizontal timeline, scenes

- Scenes (Alembic 0043, models/scene.py, /api/scenes, core.scenes.manage): named
  modes on or off (optionally until a time); price rules / deals get the
  condition "a scene is on"; signage lines can play only during a scene;
  turning one on tells every screen and pushes the online menu.
- Signage schedules are lines (signage_schedule_items): playlist, screens
  ([] = every screen), priority, days, smart days (1st / last day, first / last
  week, Greek public holidays or not: core/calendar_days.py, mirrored in
  @xenia/signage), hours, dates, scene. No line → the screen's default
  playlist. 0043 turns the old named schedules into lines for their screens.
- Screens: default playlist, TV shape, turn; what plays now and why.
- Manager: tabs Screens · Playlists · Schedules · Slides (placeholder) ·
  Message and weather; schedule lines with playlist / screens / priority /
  delete on one line; the playlist editor's horizontal timeline of fixed
  cards, the slide's basics beside its preview (one height), then its content;
  Management → Scenes; the scene condition in pricing.
- Tests: backend (lines, smart days, scenes, prices), player logic, e2e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 19:22:47 +02:00
co-authored by Claude Opus 5.5
parent abab158b7c
commit 60e6a16217
44 changed files with 1429 additions and 533 deletions
+7 -1
View File
@@ -187,7 +187,9 @@
"content_invalid": "This slide's setting isn't valid ({{field}}: {{reason}}).",
"order_mismatch": "The playlist changed in the meantime. Reload it and try again.",
"weather_offline": "The weather service can't be reached: the venue's server needs internet for it.",
"schedule_unknown": "Schedule {{schedule_id}} not found."
"schedule_unknown": "Schedule {{schedule_id}} not found.",
"scene_unknown": "That scene doesn't exist any more.",
"screen_unknown": "That screen doesn't exist any more."
},
"menu_tablet": {
"no_table": "This tablet isn't at a table, so it can't call a waiter.",
@@ -358,5 +360,9 @@
"channel_price": {
"not_found": "Channel price not found.",
"set_one_product": "A set price is for one product: pick one product (and no categories), or change the price by an amount or a percentage."
},
"scene": {
"not_found": "Scene not found.",
"until_past": "That time has already passed: pick a later one."
}
}
+80 -12
View File
@@ -49,7 +49,8 @@
"qrCodes": "Table QR codes",
"media": "Media",
"signage": "Signage",
"main": "Main menu"
"main": "Main menu",
"scenes": "Scenes"
},
"profile": {
"edit": "Edit profile",
@@ -1346,7 +1347,7 @@
"transition": "Comes in with",
"transitionDefault": "The playlist's transition",
"when": "When it shows",
"whenHint": "Leave empty for always. Pick days, hours (they may pass midnight) or dates to show it only then.",
"whenHint": "Leave empty for always. Pick days, hours (they may pass midnight) or dates to show it only then. This narrows the playlist's schedule: a slide whose time is outside the hours its playlist plays never shows.",
"days": "Days",
"timeFrom": "From (time)",
"timeTo": "To (time)",
@@ -1482,7 +1483,8 @@
"playlists": "Playlists",
"screens": "Screens",
"schedules": "Schedules",
"settings": "Message and weather"
"settings": "Message and weather",
"slides": "Slides"
},
"screens": {
"none": "No signage screens yet.",
@@ -1501,27 +1503,53 @@
"180": "Upside down",
"270": "90° left"
},
"mismatch": "A playlist here was made for the other shape"
"mismatch": "A playlist here was made for the other shape",
"intro": "Each screen plays its default playlist, unless a schedule line for it matches (Signage → Schedules): then that line's playlist plays.",
"defaultPlaylist": "Default playlist",
"shape": "TV shape",
"nowScheduled": "Now: {{name}} (by a schedule)",
"nowDefault": "Now: {{name}} (its default)",
"nowNothing": "Now: nothing (a blank screen)"
},
"schedules": {
"new": "New schedule",
"newName": "New schedule",
"created": "Schedule created.",
"deleted": "Schedule deleted.",
"none": "No schedules yet.",
"noneHint": "A schedule plays different playlists at different times: lunch, evenings, weekends, holidays.",
"none": "No schedule lines yet.",
"noneHint": "Without lines every screen plays its default playlist. Add a line to play another one at lunch, in the evenings, at weekends, on holidays or in party mode.",
"needPlaylist": "Make a playlist first.",
"nowPlaying": "now: {{name}}",
"nowNothing": "now: nothing",
"how": "Each line plays its playlist on its days, between its hours (they may pass midnight) and dates; empty means always. When two lines match, the higher priority wins, then the more specific one (dates, then days, then hours).",
"how": "Each line plays its playlist on its screens (none picked: every screen) on its days, smart days, between its hours (they may pass midnight) and dates, and, if you pick one, only while a scene is on. Empty means always. When two lines match on a screen, the higher priority wins, then the more specific one. When none matches, a screen plays its default playlist (Screens).",
"plays": "Plays",
"priority": "Priority",
"priorityHint": "Higher wins",
"priorityHint": "When two lines match at the same time on a screen, the higher number wins (0 to 100).",
"addLine": "Add a line",
"otherwise": "The rest of the time",
"otherwiseHint": "When no line matches.",
"deleteTitle": "Delete \"{{name}}\"?",
"deleteBody": "The screens on it go back to their playlist. The playlists stay."
"deleteBody": "The screens on it go back to their playlist. The playlists stay.",
"onScreens": "On screens",
"allScreens": "Every screen",
"shortcuts": {
"everyday": "Every day",
"weekdays": "Weekdays",
"weekend": "Weekend"
},
"smartDays": "Smart days",
"monthDays": {
"first": "1st of the month",
"last": "Last day of the month",
"first_week": "First week of the month",
"last_week": "Last week of the month",
"holiday": "Public holidays",
"not_holiday": "Not on public holidays"
},
"scene": "Only during a scene",
"anyScene": "Always (no scene)",
"enabled": "On",
"playingNow": "Playing now on {{names}}"
},
"settings": {
"message": "Message of the day",
@@ -1542,6 +1570,10 @@
"waiting": "No forecast yet.",
"refresh": "Fetch now",
"forget": "Remove the town"
},
"slidesTab": {
"title": "Slides to reuse are coming",
"body": "Here you will make single slides, keep them, and add them to any playlist."
}
},
"overview": {
@@ -2303,15 +2335,18 @@
"order_channel": "Sales point",
"min_item_quantity": "At least some of the product",
"min_category_qty": "At least some from a category",
"min_order_value": "Order total at least"
"min_order_value": "Order total at least",
"scene_active": "A scene is on"
},
"fields": {
"min_item_quantity": "How many",
"min_category_qty": "How many",
"min_order_value": "Amount",
"category_id": "Category",
"price_group_id": "Price group"
}
"price_group_id": "Price group",
"scene_id": "Scene"
},
"noScenes": "No scenes yet: Management → Scenes"
},
"actions": {
"add_percent": "± a percentage",
@@ -4017,5 +4052,38 @@
"renameYes_other": "Rename {{count}} tables",
"andMore_one": "and {{count}} more",
"andMore_other": "and {{count}} more"
},
"scenes": {
"title": "Scenes",
"intro": "Modes of the venue, like \"Party mode\" or \"Match night\". Turning one on changes at once what follows it: the signage lines that play only in it (Signage → Schedules) and the price rules or deals with the condition \"A scene is on\" (Offers & pricing). Several can be on together.",
"new": "New scene",
"edit": "Edit the scene",
"delete": "Delete",
"none": "No scenes yet.",
"noneHint": "Make one (e.g. Party mode), then use it in a signage schedule line or a price rule.",
"on": "On",
"onNow": "On now, until turned off",
"onUntil": "On until {{time}}",
"turnedOn": "\"{{name}}\" is on.",
"turnedOff": "\"{{name}}\" is off.",
"for": "When turned on, for",
"forOptions": {
"off": "Until turned off",
"1": "1 hour",
"2": "2 hours",
"3": "3 hours",
"4": "4 hours",
"6": "6 hours",
"day": "Until the end of the day"
},
"name": "Name",
"namePh": "e.g. Party mode",
"description": "Description (optional)",
"descriptionPh": "e.g. Friday and Saturday nights after 23:00",
"colour": "Colour",
"saved": "Scene saved.",
"deleted": "Scene deleted.",
"deleteTitle": "Delete \"{{name}}\"?",
"deleteBody": "Price rules with it stop applying; signage lines that played only in it are turned off."
}
}
+3 -5
View File
@@ -69,6 +69,9 @@
},
"system": {
"admin": "Support-only maintenance"
},
"scenes": {
"manage": "Make scenes (party mode…) and turn them on or off"
}
}
},
@@ -547,11 +550,6 @@
"hint": "What this screen plays (Signage).",
"none": "Nothing (a blank screen)"
},
"schedule": {
"label": "Schedule",
"hint": "Plays its playlists at their days and hours; used instead of the playlist above.",
"none": "No schedule (play the playlist)"
},
"orientation": {
"label": "Orientation",
"hint": "How the TV hangs: slides are built for this shape.",