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>
This commit is contained in:
2026-11-23 05:40:04 +02:00
co-authored by Claude Opus 5.5
parent 1b111c0e27
commit cd8218689c
20 changed files with 431 additions and 257 deletions
+8
View File
@@ -270,6 +270,7 @@ try {
await mgr.getByTestId('signage-add-slide').click()
await mgr.getByTestId('signage-template-menuBoard').click()
await mgr.getByTestId('signage-menu-editor').waitFor({ timeout: 10_000 })
await mgr.locator('.x-overlay').waitFor({ state: 'detached', timeout: 5000 }).catch(() => {}) // the "Add a slide" dialog has gone
await mgr.getByTestId('signage-menu-select').click()
await mgr.getByRole('option', { name: 'Chosen categories and products' }).click()
await mgr.locator(`[data-testid="signage-menu-category"][data-name="${catA.name}"]`).click()
@@ -573,6 +574,13 @@ try {
const plus = mgr.getByTestId('signage-calibrate-top').locator('xpath=..').locator('button').last()
await plus.click(); await plus.click()
r.check('6R.13: …the top edge moved in 2 px with + (the TV follows)', await waitFor(async () => (await areaNow()) === '150,2,960,538', 8000, 200) === true, String(await areaNow()))
// 2026-11-23: an edge may go past the recognised window (a negative number)
const left = mgr.getByTestId('signage-calibrate-left')
await left.fill('-40'); await left.press('Tab')
r.check('2026-11-23: an edge pushed past the recognised window (-40 px): the picture on the TV reaches past it',
await waitFor(async () => (await areaNow()) === '-40,2,1150,538', 8000, 200) === true && await mgr.getByTestId('signage-calibrate-past').isVisible(), String(await areaNow()))
await left.fill('150'); await left.press('Tab')
await waitFor(async () => (await areaNow()) === '150,2,960,538', 8000, 200)
await mgr.screenshot({ path: path.join(OUT, 'signage-calibrate.png') })
await tv.screenshot({ path: path.join(OUT, 'signage-calibrate-tv.png') })
await mgr.getByTestId('signage-calibrate-done').click()