feat(signage): venue badges, widgets' own look, widgets placed inside stacks, Save and leave, shared controls (owner review 5)

- Badges: the venue's list (setting signage.badges: names el/en, colours, an icon from a food and
  drink set) edited under Signage -> "Message & settings"; sent with the venue to screens and
  previews; several badges per product (MenuList.badges lists, a single one still read) in the
  shared multiple Dropdown; a board's badge colour / text colour override them (None = each own).
- Widgets: colour, background plate, font, bold / italic / underline, text size, QR colours;
  widgets in a stack's part get every setting, vertical alignment, and a custom box inside their
  place, picked (stack, then widget) and dragged on the preview (selection by path "2.1.0").
- Menu slides: vertical alignment of the list (board_valign); "Where the list sits" is now
  "Horizontal alignment".
- Message of the day: one component in the settings tab, on the Overview and from its widget.
- Leaving a slide with changes: "Save and leave" (ConfirmDialog altLabel).
- @xenia/ui: ColourField (with colour.js helpers), FieldRow (framed only while wrapped), Slider,
  IconPicker, Segmented multiple; native selects on the Overview and signage replaced by Dropdown,
  the device settings' colour input by ColourField.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-21 14:17:27 +02:00
co-authored by Claude Opus 5.5
parent aaa0914778
commit aa3fe85053
51 changed files with 1378 additions and 432 deletions
@@ -115,12 +115,19 @@ function SavedSlideEditor({ id, venue, onClose }) {
const set = patch => setDraft(d => ({ ...d, ...patch }))
const save = async () => {
setBusy(true)
try { const s = await api.updateSaved(id, savedBody(draft)); setSaved(s); setDraft(d => ({ ...structuredClone(s), menu: d.menu })); toast.success(t('settings.saved')) }
let ok = false
try { const s = await api.updateSaved(id, savedBody(draft)); setSaved(s); setDraft(d => ({ ...structuredClone(s), menu: d.menu })); toast.success(t('settings.saved')); ok = true }
catch (err) { toast.error(errorMessage(err, t)) }
setBusy(false)
return ok
}
// leaving with changes: save them and go, go without them, or stay (owner review 5)
const back = async () => {
if (dirty && !(await confirm({ title: t('signage.discardTitle'), body: t('signage.discard'), confirmLabel: t('signage.discardYes'), tone: 'danger', testId: 'signage-discard' }))) return
if (dirty) {
const how = await confirm({ title: t('signage.discardTitle'), body: t('signage.discard'), confirmLabel: t('signage.discardYes'), tone: 'danger',
altLabel: t('signage.saveAndLeave'), testId: 'signage-discard' })
if (!how || (how === 'alt' && (!draft.name?.trim() || !(await save())))) return
}
onClose()
}
const tall = draft.orientation === 'portrait'