feat(signage): venue badges, widgets' own look, widgets placed inside stacks, Save and leave, shared controls (owner review 5)
- Badges: the venue's list (setting signage.badges: names el/en, colours, an icon from a food and drink set) edited under Signage -> "Message & settings"; sent with the venue to screens and previews; several badges per product (MenuList.badges lists, a single one still read) in the shared multiple Dropdown; a board's badge colour / text colour override them (None = each own). - Widgets: colour, background plate, font, bold / italic / underline, text size, QR colours; widgets in a stack's part get every setting, vertical alignment, and a custom box inside their place, picked (stack, then widget) and dragged on the preview (selection by path "2.1.0"). - Menu slides: vertical alignment of the list (board_valign); "Where the list sits" is now "Horizontal alignment". - Message of the day: one component in the settings tab, on the Overview and from its widget. - Leaving a slide with changes: "Save and leave" (ConfirmDialog altLabel). - @xenia/ui: ColourField (with colour.js helpers), FieldRow (framed only while wrapped), Slider, IconPicker, Segmented multiple; native selects on the Overview and signage replaced by Dropdown, the device settings' colour input by ColourField. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -202,7 +202,7 @@ try {
|
||||
r.check('devices: the kitchen screen settings come in sections, prep zone "All zones" by default (3.2a)',
|
||||
await dlg.locator('[data-config-group]').count() >= 4
|
||||
&& (await dlg.getByLabel('Prep zone').locator('option:checked').textContent()) === 'All zones'
|
||||
&& await dlg.locator('input[type="color"]').count() === 4)
|
||||
&& await dlg.locator('button[data-testid^="config-colour"][data-testid$="-open"]').count() === 4) // the shared colour field (owner review 5)
|
||||
await dlg.getByLabel('Text size').fill('110')
|
||||
await dlg.getByRole('button', { name: 'Pair a device' }).click()
|
||||
await page.waitForFunction(() => document.querySelectorAll('[data-testid^="device-"][data-status]').length === 1, null, { timeout: 8000 }).catch(() => {})
|
||||
@@ -933,7 +933,8 @@ try {
|
||||
r.check(`${ov} "Open the day" opens it`, await dayState() === 'true' && !!(await api('GET', '/api/business-day/current', { token: boss })))
|
||||
const ovWaiter = (await api('GET', '/api/waiters/', { token: boss })).find(w => w.username === 'demo_maria')
|
||||
await page.getByTestId('shift-start').click()
|
||||
await page.getByTestId('shift-start-waiter').selectOption(String(ovWaiter.id))
|
||||
await page.getByTestId('shift-start-waiter').click()
|
||||
await page.getByRole('option', { name: ovWaiter.full_name || ovWaiter.username }).click()
|
||||
await page.getByRole('dialog').getByLabel('Starting cash').fill('20,5')
|
||||
await page.getByTestId('shift-start-confirm').click()
|
||||
const ovRow = page.getByTestId('shift-row').filter({ hasText: ovWaiter.full_name })
|
||||
|
||||
Reference in New Issue
Block a user