feat(signage): look rows that wrap, one colour field with opacity, badges' text, several widgets per stack part, pages up to 2200 px (owner review 4)

- Menu text look: each field names its part ("Headings size"), rows wrap in aligned columns on
  alternating bands; names align left / right; line and letter spacing as lists (Auto default);
  each field changes only itself (followers frozen before the other changes); badge colour +
  badge text colour (auto: readableOn); "Reset the look" with a question.
- ColourField everywhere in signage: a Popover panel (new @xenia/ui Popover, portal, kept in the
  window) with 12 presets, picker, opacity (#rrggbbaa) and typed code; HEX accepts 8 digits.
- Stacks: Cell.widgets (a stored `widget` still reads), several widgets per part laid across the
  stack's direction; extras by path stack.part.place; Add a widget adds, each removable / ordered.
- Page rule: --x-page-max is 2200px (no longer follows the window height).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-21 12:53:14 +02:00
co-authored by Claude Opus 5.5
parent e8c8ec825e
commit aaa0914778
22 changed files with 663 additions and 281 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
// The page rule (2026-11-20): every manager page is a <Page> that scrolls on its own, fills a
// 1080p screen and stays at 16:9 width, centred, on an ultrawide. For each page, at 1920×1080
// 1080p screen and stays at 2200 px (never narrowed by a short window), centred, on an ultrawide. For each page, at 1920×1080
// and 3440×1440: the page body exists, fills the content area (1080p) or is capped and centred
// (ultrawide), and the page scrolls when its content is taller than the screen. Screenshots of a
// few key screens (and the open dropdowns / the day summary) go to out/manager-layout/.
@@ -37,7 +37,7 @@ const vite = spawn('npx', ['vite', '--port', '5191', '--strictPort'], {
stdio: ['ignore', log, log], env: { ...process.env, XENIA_BACKEND: backend.url },
})
const browser = await chromium.launch(BROWSER_CHANNEL ? { channel: BROWSER_CHANNEL } : {})
const r = reporter('manager layout (the page rule): fills 1080p, 16:9 and centred on ultrawides, scrolls')
const r = reporter('manager layout (the page rule): fills 1080p, 2200 px and centred on ultrawides, scrolls')
const name = p => p.replace(/[/?=]/g, '-')
try {
await waitHttp(APP)
@@ -71,7 +71,7 @@ try {
const a = { left: s.left, right: s.left + scroll.clientWidth, width: scroll.clientWidth }
// a form page (settings) is centred at its own width
const form = body.classList.contains('x-page__body--form')
return { form, left: b.left - a.left, right: a.right - b.right, width: b.width, area: a.width, cap: Math.max(1280, innerHeight * 16 / 9),
return { form, left: b.left - a.left, right: a.right - b.right, width: b.width, area: a.width, cap: 2200,
scrolls: scroll.scrollHeight <= scroll.clientHeight + 1 || getComputedStyle(scroll).overflowY === 'auto' }
})
if (!m) { bad.push(`${p}: no <Page>`); continue }
@@ -80,7 +80,7 @@ try {
if (!centred || !fills || !m.scrolls) bad.push(`${p}: ${JSON.stringify(m)}`)
if (SHOTS.includes(p)) await page.screenshot({ path: path.join(DIR, `${name(p)}-${screen.id}.png`) })
}
r.check(`${screen.id}: every page fills its area up to 16:9, centred, and scrolls`, bad.length === 0, bad.join('\n'))
r.check(`${screen.id}: every page fills its area up to 2200 px, centred, and scrolls`, bad.length === 0, bad.join('\n'))
// Products (2026-11-21): the page doesn't scroll, its two panes do, each on its own
await page.goto(`${APP}/management/products`)