feat(ui): board design language as global tokens; KDS on tokens and shared components (platform-v2 3.2b-2)
- @xenia/ui: --x-board-* tokens (the kitchen display's look: dark board, light cards, status colours, card radius/shadows, number font), Tailwind board.* colours, contrast test for the board pairs; near-identical shades merged. - New shared Stepper component (gallery + ui.mjs), labels ui.decrease / ui.increase. - KDS: theme.js maps to the board tokens, no colour literals left (only stored setting values); decline / call waiter / settings use Dialog, Button, Switch, Select, Stepper; toasts are @xenia/ui toasts (ToastProvider at the terminal root). - Terminal: apps can set their theme (APP_THEMES, KDS dark) while they run. - CS-16: board screens and "no hard-coded colours in app code". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -88,6 +88,13 @@ try {
|
||||
await p.getByText('Print kitchen tickets').click()
|
||||
r.check('switch: the label toggles it', await p.getByRole('switch', { name: 'Print kitchen tickets' }).getAttribute('aria-checked') === 'false')
|
||||
|
||||
// Stepper (3.2b-2): steps, ends disabled
|
||||
const stepper = p.getByRole('group', { name: 'Check every' })
|
||||
await stepper.getByRole('button', { name: 'More' }).click()
|
||||
r.check('stepper: + moves to the next step', (await stepper.textContent()).includes('45s'))
|
||||
await stepper.getByRole('button', { name: 'More' }).click()
|
||||
r.check('stepper: + is disabled at the last step', (await stepper.textContent()).includes('60s') && await stepper.getByRole('button', { name: 'More' }).isDisabled())
|
||||
|
||||
// InfoTip
|
||||
const tip = p.getByRole('button', { name: 'More info' }).first()
|
||||
await tip.click()
|
||||
|
||||
Reference in New Issue
Block a user