feat(signage): Slides library, widgets placed on the preview, blank slides, slide editor rework

- 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>
This commit is contained in:
2026-11-21 07:53:27 +02:00
co-authored by Claude Opus 5.5
parent 60e6a16217
commit 83551714f7
46 changed files with 1934 additions and 431 deletions
+1
View File
@@ -26,6 +26,7 @@
},
"ui": {
"close": "Close",
"cancel": "Cancel",
"dismiss": "Dismiss",
"loading": "Loading",
"moreInfo": "More info",
+60 -10
View File
@@ -1270,7 +1270,9 @@
"image": "Picture",
"video": "Video",
"text": "Text",
"menu": "Menu board"
"menu": "Menu board",
"blank": "Blank",
"blankWidgets": "Blank with widgets"
},
"misfit": "This picture or video doesn't fit the playlist's shape: it will be cropped or have bars.",
"toTheEnd": "to the end",
@@ -1291,7 +1293,7 @@
"6": "Sun"
},
"duplicateSlide": "Duplicate the slide",
"deleteSlide": "Remove this slide?",
"deleteSlide": "It goes from this playlist. Its pictures and videos stay in the media library.",
"removed": "Slide removed.",
"addSlide": "Add a slide",
"added": "Slide added.",
@@ -1344,7 +1346,7 @@
"videoToEndHint": "Off: it shows for the seconds below (and repeats if it is shorter).",
"duration": "Seconds on screen",
"durationMenuHint": "A long menu turns its pages and stays as long as it needs.",
"transition": "Comes in with",
"transition": "Transition effect",
"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. This narrows the playlist's schedule: a slide whose time is outside the hours its playlist plays never shows.",
@@ -1429,7 +1431,12 @@
"pageSeconds": "Seconds per page",
"language": "Language",
"languageHint": "The products' names on this board. Not translated: as typed.",
"asTyped": "As typed"
"asTyped": "As typed",
"which": "Products",
"layout": "Layout",
"width": "Width of the list",
"place": "Where the list sits",
"placeHint": "At the full width the list fills the screen: make it narrower to place it."
},
"badges": {
"new": "New",
@@ -1477,7 +1484,13 @@
"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."
"weatherNeedsInternet": "The weather needs internet: without it (or without a town set) the widget is hidden.",
"dragHint": "Tip: pick a widget on the preview, drag it to move it and its handles to size it. Where and size then read \"Custom\".",
"custom": "Custom",
"align": "Alignment",
"alignAuto": "Auto",
"dateStyle": "Style",
"canvas": "The slide's widgets: drag one to move it, its handles to size it, arrow keys to nudge it"
},
"tabs": {
"playlists": "Playlists",
@@ -1509,7 +1522,12 @@
"shape": "TV shape",
"nowScheduled": "Now: {{name}} (by a schedule)",
"nowDefault": "Now: {{name}} (its default)",
"nowNothing": "Now: nothing (a blank screen)"
"nowNothing": "Now: nothing (a blank screen)",
"default": "Plays by default",
"defaultHint": "When no schedule line matches: a playlist, or one slide shown alone.",
"aPlaylist": "Playlist",
"aSlide": "Slide",
"nowSlide": "Now: {{name}} (its default slide)"
},
"schedules": {
"new": "New schedule",
@@ -1549,7 +1567,8 @@
"scene": "Only during a scene",
"anyScene": "Always (no scene)",
"enabled": "On",
"playingNow": "Playing now on {{names}}"
"playingNow": "Playing now on {{names}}",
"smartDaysHint": "A line runs on weekdays or on smart days: picking one clears the other. For both, add another line with the same playlist."
},
"settings": {
"message": "Message of the day",
@@ -1571,9 +1590,40 @@
"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."
"discardTitle": "Unsaved changes",
"discardYes": "Leave without saving",
"deleteSlideTitle": "Remove \"{{name}}\"?",
"bgKind": "Kind",
"dimLabel": "Darken the photo",
"textTitle": "Text",
"textLook": "Text look",
"textSizeLabel": "Text size",
"library": {
"intro": "Slides you build once and keep: add them to any playlist (Add a slide → Your slides), or show one alone on a screen (Screens).",
"new": "New slide",
"none": "No slides kept yet.",
"noneHint": "Build a slide here, or keep one from a playlist (Keep in Slides, under its settings).",
"edit": "Edit \"{{name}}\"",
"onScreens": "Shown on {{names}}",
"deleteTitle": "Delete \"{{name}}\"?",
"deleteBody": "Playlists that got a copy of it keep their copy.",
"deleteUsed": "It is shown on {{names}}: those screens will show nothing until you pick something else. Playlists keep their copies.",
"newName": "{{kind}} (new)",
"back": "Back to the slides",
"untitled": "A slide without a name",
"name": "Name",
"description": "Short description",
"descriptionHint": "To tell it apart later: what it shows and when you use it.",
"kindIs": "Kind: {{kind}}",
"settings": "Settings",
"yours": "Your slides",
"addHint": "From the Slides tab: a copy goes into this playlist.",
"noneYet": "No slides kept yet: build them in the Slides tab, or keep one from a playlist.",
"keep": "Keep in Slides",
"keepTitle": "Keep this slide",
"keepHint": "A copy of the slide as it is now goes to the Slides tab, to reuse in other playlists or show alone on a screen.",
"keepYes": "Keep it",
"kept": "Kept in Slides."
}
},
"overview": {
+5
View File
@@ -550,6 +550,11 @@
"hint": "What this screen plays (Signage).",
"none": "Nothing (a blank screen)"
},
"slide": {
"label": "Slide",
"hint": "Or a single slide from the Slides library, shown when no playlist is picked.",
"none": "None"
},
"orientation": {
"label": "Orientation",
"hint": "How the TV hangs: slides are built for this shape.",