feat(ui): @xenia/ui design tokens, Tailwind preset and base components
Platform-v2 step 2.3 (APPS_PLATFORM D-15 §9): - tokens.css: --x- prefixed colours (light/dark/system + 5 venue accent themes), spacing, radius, type scale, shadows, motion, z-index; variables only - components.css: .x-* classes only, no element selectors (new rule CS-16) - Button, IconButton, Dialog, Sheet, Toast, PinPad, InfoTip, EmptyState, Spinner, Field/Input/Textarea/Select, Switch (accessible: focus trap and restore, ARIA wiring, 44px targets) - tailwind-preset.js (adds names only); manager uses it + styles.css, the waiter imports tokens.css; existing screens unchanged - dev-only /ui-gallery in the manager; e2e suite tests/e2e/ui.mjs; unit tests for PIN rules and WCAG AA contrast of every token pair, both in run-all Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,15 +2,17 @@
|
||||
// node run-all.mjs everything (Android included)
|
||||
// node run-all.mjs --no-android skip the emulator suite
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { BACKEND, E2E, PYTHON, WAITER } from './lib/env.mjs'
|
||||
import { BACKEND, CS, E2E, PYTHON, WAITER } from './lib/env.mjs'
|
||||
|
||||
const shell = process.platform === 'win32'
|
||||
const suites = [
|
||||
['unit: local_backend (pytest)', PYTHON, ['-m', 'pytest', 'tests', '-q'], BACKEND],
|
||||
['unit: waiter_pwa (node --test)', 'npm', ['test', '--silent'], WAITER],
|
||||
['unit: packages/ui (node --test)', 'npm', ['test', '--silent', '-w', '@xenia/ui'], CS],
|
||||
['install.sh', 'node', ['install.mjs'], E2E],
|
||||
['license (cloud + site)', PYTHON, ['license_e2e.py'], E2E],
|
||||
['browser', 'node', ['browser.mjs'], E2E],
|
||||
['ui (@xenia/ui gallery)', 'node', ['ui.mjs'], E2E],
|
||||
]
|
||||
if (!process.argv.includes('--no-android')) suites.push(['android (emulator)', 'node', ['android.mjs'], E2E])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user