feat(signage): menus play whole rounds, seconds fields with − / +, widget limit setting, widgets as big as their content (owner review 6)
- A menu board with pages plays whole rounds (menuMs rounds its seconds up); the editor says how long it really plays under "Seconds on screen", the card and the playlist total use it. - Seconds on screen / per page: shared NumberInput (− / +, may be emptied: an error under the field and Save blocked until filled; 1 s at least, server ge=1). - Performance (Signage -> Message & settings): widgets per slide (signage.max_widgets, 10 recommended, up to 50), checked by the server (signage.too_many_widgets) and the editor. - Text, clock, date, QR, weather, logo placed by hand: the box is exactly the content (its height x text size sets the size, the width follows; handles scale keeping the shape; text size grows the box); a slide's widget may run off the slide while 5 % stays on it. - Slider: the value as close to the slider as the frame's padding; floor and table-colour sliders use the shared Slider. Timeline cards' ring no longer clipped; larger playlist buttons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -418,6 +418,12 @@ try {
|
||||
await mgr.mouse.down()
|
||||
await mgr.mouse.move(se.x + 60, se.y + 30, { steps: 5 })
|
||||
await mgr.mouse.up()
|
||||
r.check('2026-11-21 (6): a clock placed by hand is exactly as big as what it shows (its outline is the clock)',
|
||||
await waitFor(async () => {
|
||||
const box = await mgr.getByTestId('signage-preview').locator('[data-tight]').last().boundingBox()
|
||||
const sel = await mgr.getByTestId('signage-canvas-selected').boundingBox()
|
||||
return box && sel && Math.abs(box.width - sel.width) < 3 && Math.abs(box.height - sel.height) < 3
|
||||
}, 4000, 200) === true)
|
||||
r.check('2026-11-21: a widget dragged on the preview reads "Custom" in its card',
|
||||
(await mgr.locator('[data-testid="signage-widget"][data-selected="true"]').getByTestId('signage-widget-position').textContent()).includes('Custom'))
|
||||
await mgr.getByTestId('signage-slide-save').click()
|
||||
|
||||
Reference in New Issue
Block a user