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
+5 -4
View File
@@ -42,15 +42,16 @@ export function FilterChip({ pressed = false, tone = 'neutral', count, size = 'm
}
/**
* A few mutually exclusive views (List / Map). options: [{ value, label, icon? }].
* A few mutually exclusive views (List / Map). options: [{ value, label, icon?, ariaLabel? }]
* (ariaLabel: the name of an option shown as an icon only). fill: as wide as its column, the options sharing it.
* <Segmented value={view} onChange={setView} options={[…]} aria-label="View" />
*/
export function Segmented({ options = [], value, onChange, size = 'md', className, ...rest }) {
export function Segmented({ options = [], value, onChange, size = 'md', fill = false, className, ...rest }) {
return (
<div role="group" className={cx('x-segmented', `x-segmented--${size}`, className)} {...rest}>
<div role="group" className={cx('x-segmented', `x-segmented--${size}`, fill && 'x-segmented--fill', className)} {...rest}>
{options.map(o => (
<button key={o.value} type="button" aria-pressed={o.value === value} className={cx('x-segmented__item', o.value === value && 'x-segmented__item--on')}
onClick={() => onChange?.(o.value)} data-testid={o.testId}>
onClick={() => onChange?.(o.value)} data-testid={o.testId} aria-label={o.ariaLabel} title={o.ariaLabel}>
{o.icon}{o.label}
</button>
))}