Platform-v2 step 2.4 (APPS_PLATFORM D-11, D-12, §7.2, §8):
- i18next 26.7.2 + react-i18next 17.1.13 (exact); en/el locale files
(common, dev); createI18n, I18nProvider, useLanguage, setUserLanguage
(screen first, then PATCH /api/auth/me through an app-provided save)
- resolveLanguage: user -> device -> venue -> en
- useFormat(): dates/times always in the venue zone from bootstrap (24 h,
DST-safe, business dates never shifted), relative times, money and
numbers per language; parseNumber accepts a comma or a dot
- scripts/check-i18n.mjs guard: keys missing in en, placeholder mismatches,
dates formatted without the venue zone in new code (fails); missing el (warns)
- @xenia/ui components read their texts from UiLabelsProvider; useUiLabels()
supplies the translated set
- dev-only /i18n-sample in the manager; ui.mjs e2e checks it with the browser
in New York; unit tests in run-all; lockfile keeps both apps' versions
- new pack rule CS-17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
tests/e2e (see its README):
- install.mjs: real install.sh in a Debian container - VPN-safe HOST_IP
detection on simulated hosts, fresh/upgrade/re-run, and the proxy config
byte-identical to nginx-proxy/nginx.conf (guards rule CS-5)
- license_e2e.py: real cloud + site processes with a throwaway signing key -
400 days offline, tampered file, clock rollback, expiry deferred to workday
close, renewal, remote lock
- browser.mjs: web delivery modes (same-origin, plain HTTP by LAN IP, venue
mode) and the install dialog on Android/iPhone/desktop/no-APK
- android.mjs basics|rediscovery|stacks: pairing, venues, camera, back
button, restart; IP change / server down / cold start; TLS pinning
(wrong-key QR, impostor, upgrade, renewal, rediscovery) and UI bundles
(apply, staged, tampered, APK too old, rollback, two venues) on isolated
compose stacks built from the repo
- lib/: env (paths, LAN IP autodetect, settings), proc (seeded throwaway
DBs via demo_seed.py, backends, nginx, Vite, compose stacks), android
(adb + WebView DevTools, boots the AVD), cdp
- run-all.mjs runs everything fastest-first with a summary
Nothing machine-specific is hard-coded; developer stacks/DBs are never touched.
Results on this machine: install 9/9, license 17/17, browser 22/22,
android basics 19/19, rediscovery 10/10, stacks 21/21.
Pack README: Testing section + rule CS-11 (tests follow the code; run
run-all before a release).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>