feat(manager): the venue's identity (Settings -> Identity): name, slogan, named colours, logos, guest Wi-Fi, contact details
Set once (GET/PUT /api/identity, venue.name + venue.identity); every colour field offers the venue's colours first (VenueColoursProvider in @xenia/ui); signage screens get the identity and the venue's time zone with their venue and are told on a change; logos are protected in the media library; wifiQr() for the join-the-network code. Plan 6R.14, F-111. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1488,10 +1488,15 @@ def preview_venue(db: Session = Depends(get_db), user=Depends(require(KEY))):
|
||||
|
||||
def _venue(db) -> dict:
|
||||
"""What the widgets need of the venue: its name, the message of the day, the weather (None = hide
|
||||
it: no internet, no place, too old) and its badges (owner review 5)."""
|
||||
it: no internet, no place, too old) and its badges (owner review 5); its identity (6R.14: slogan,
|
||||
colours, logos, Wi-Fi, contact) and time zone."""
|
||||
from core.timeutil import venue_tz
|
||||
from routers.identity import identity_out
|
||||
from services import signage_badges, weather
|
||||
ident = identity_out(db)
|
||||
ident.pop("name", None)
|
||||
return {"name": _setting(db, "venue.name") or None, "message": _setting(db, MESSAGE) or None,
|
||||
"weather": weather.current(db), "badges": signage_badges.load(db)}
|
||||
"weather": weather.current(db), "badges": signage_badges.load(db), "identity": ident, "timezone": venue_tz().key}
|
||||
|
||||
|
||||
class SlidePreviewBody(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user