feat: the venue's identity in every app: its colour as the accent of the waiters' phones and every terminal screen, customer display looks on the identity, the signage logo widget falls back to the venue's logo

Settings -> Venue -> accent "The venue's identity" (venue.theme = identity): bootstrap
carries the identity's first colour and logos; @xenia/ui applyVenueTheme makes the
accent tokens (light and dark, readable foregrounds) from it. A display look's
"Colours and logo" can be the venue's identity. Plan 6R.20, F-117.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 15:30:14 +02:00
co-authored by Claude Opus 5.5
parent 0bd32d9171
commit 1b111c0e27
20 changed files with 229 additions and 28 deletions
+4 -1
View File
@@ -311,7 +311,10 @@ function widgetBody(w, ctx, fit, path) {
<div style={{ width: cq(BOXED[kind][0] * s), height: cq(BOXED[kind][1] * s), containerType: 'size' }} {...CQ_BOX}>{body}</div>
))
if (w.kind === 'logo') {
const m = media(w.media_id)
// its own picture; none chosen: the venue's logo (its identity, 6R.20)
const own = w.media_id ? media(w.media_id) : null
const brand = venue?.identity?.logos?.main
const m = own || (brand ? { src: brand.card } : null)
if (!m) return null
if (fit === 'tight') return <img src={m.src} alt="" style={{ height: cq(+(w.box.h * ts).toFixed(4), 'h'), width: 'auto', display: 'block' }} data-testid="signage-w-logo" />
return fit
+2
View File
@@ -165,6 +165,8 @@ export function mediaUrls(data) {
if (m.poster) out.add(m.poster) // a video's still frame (5.4e), shown while it loads
}
}
// the venue's logos (its identity, 6R.20): a logo widget without its own picture shows the main one
for (const l of Object.values(data.venue?.identity?.logos || {})) if (l?.card) out.add(l.card)
return [...out]
}