Files
xenia-pos-local/local_backend/modules/signage/manifest.py
T
bonaminandClaude Opus 5.5 cd8218689c feat(signage): widget settings regrouped (main / Text and colours / More), alignment that lines up multi-line widgets, multi-line texts, gallery title, logos larger than the slide; calibration past the recognised resolution and shown the first time
Owner review 2026-11-23 of every widget:
- A widget card is its main settings (the row and what needs room under it: pictures, a gallery's
  pictures or folder, weather details and place, a countdown's start and end, reviews' stars and
  author, a scrolling text's speed, a shape's colours and border, QR caption), then "Text and
  colours" (new LookFields.jsx: text colour, plate, font, style, size, weight, highlight, shadow,
  QR colours; a logo's / gallery's border), then More settings (opacity, rotation, animation, fit,
  typing, blink, QR logo; shadow / border only where there is no Text and colours).
- Date format / separator and clock 12/24 / separator are main settings.
- Alignment only where it lines something up; the TV now aligns the lines of a text, the hours
  (centre: days and times meet in the middle), contact rows, Wi-Fi (code left / right / above),
  the weather's column / card / list / hourly, reviews (stars too), a countdown, a QR caption.
- Text and message: a 2-line textarea in its own row; Enter makes new lines (the TV sizes by the
  longest line and the number of lines).
- Gallery: a title above or below the pictures (title_position).
- A widget's box may reach 400 % of the slide (a logo zoomed in past the slide's edges saved again).
- "Auto" stays "Auto" in Greek; scrolling text Left / Right; reviews' stars choice no longer clipped;
  countdown "When it ends" hint as an info tip (fields level).

Calibration: an edge may go past the recognised window (down to -2000 px); the dialog's rows are
centred, "Each click moves" sits above its choice, the window size is labelled "Recognised
resolution" with what it means; the TV asks for its screen answer on every calibrate event and
while calibrating (the outline shows the first time), the dialog sends "on" again after 1.5 s.
NumberInput takes a leading minus when min < 0. E2E: waits for the Add-a-slide dialog to go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 05:40:04 +02:00

45 lines
3.0 KiB
Python

"""Module manifest — see core/modules/model.py and APPS_PLATFORM §4."""
from core.modules.model import ConfigField, DeviceApp, Limit, Module, Mount, Perm, SettingDef
MODULE = Module(
key='signage',
kind='app',
name='Digital signage',
description='Menus and promotions on TVs: playlists of menu boards, pictures, videos and texts (phase 5, steps 5.4a-5.6c).',
permissions=(
Perm('signage.manage', 'Edit signage content', roles=('owner', 'store_manager', 'staff_manager')),
),
limits=(
Limit('devices', 'Number of signage screens', free=0, licensed_default=1),
),
routers=(
Mount('routers.signage', '/api/signage'),
),
settings=(
SettingDef('signage.message', '', 'The message of the day on every signage screen with a message widget (Signage > Message of the day).'),
SettingDef('signage.reviews', '[]', 'The reviews the venue typed in for the reviews widget (6R.19; JSON list; Signage > Message & settings).', type='json'),
SettingDef('signage.weather.place', '', 'The place whose weather the screens show (picked from a town search in Signage).'),
SettingDef('signage.weather.latitude', '', 'Latitude of the weather place.'),
SettingDef('signage.weather.longitude', '', 'Longitude of the weather place.'),
SettingDef('signage.weather.units', 'celsius', "Temperatures in 'celsius' | 'fahrenheit'", type='enum', choices=('celsius', 'fahrenheit')),
),
# the weather for the screens' widget, every 30 min while there is internet (5.4c)
workers=('services.weather:weather_worker', 'services.signage_schedule:schedule_worker'),
device_app=DeviceApp(login_modes=('none',), scope=(), config=(
# What it plays and how the TV hangs (5.4a); the editor builds for the screen's shape
ConfigField('playlist', 'ref', default=None, choices_from='signage_playlists'),
# ... or a library slide shown alone (owner 2026-11-21; a playlist wins when both are set)
ConfigField('slide', 'ref', default=None, choices_from='signage_slides'),
ConfigField('orientation', 'enum', default='landscape', choices=('landscape', 'portrait')),
ConfigField('rotation', 'int', default=0, choices=(0, 90, 180, 270)),
# its picture (6R.13): a slide of another shape keeps its shape (bands) or fills the picture;
# px cut off each edge of the TV's window (set by Signage > Screens > Calibrate); below 0 the
# picture reaches past that edge of the window the TV reported (owner 2026-11-23)
ConfigField('fit', 'enum', default='keep', choices=('keep', 'stretch'), group='picture'),
ConfigField('area_left', 'int', default=0, min=-2000, max=4000, group='picture'),
ConfigField('area_top', 'int', default=0, min=-2000, max=4000, group='picture'),
ConfigField('area_right', 'int', default=0, min=-2000, max=4000, group='picture'),
ConfigField('area_bottom', 'int', default=0, min=-2000, max=4000, group='picture'),
)),
)