- Pairing screen: requests a code, shows it big, polls with the secret, new code on expiry, keeps the device token; "removed from the venue" notice after a revoke. - Sign-in per device mode: PIN (name + PinPad), tap your name, password (name + password), none (straight into the app). Names = holders of <app>.access, refreshed every 30 s and on reconnect. Slim bar with screen, user and Sign out; idle sign-out after the device's auto_sign_out_minutes; hourly token refresh (same session). - DeviceProvider: GET /api/devices/me (retried while unreachable), session, the live connection with credentials in the first frame (device.updated -> reload, app moved -> sign out, device.revoked -> forget, session.ended -> sign out), offline banner; useLiveEvent for apps. Screen choice is pure (device/flow.js, unit-tested). - Blocked screen: app turned off / not licensed / device refused, recovers by itself. - @xenia/access AccessProvider: autoRetryMs (retry bootstrap while unreachable). - Tests: terminal unit tests (screen choice, live actions, idle, pairing polls), new tests/e2e/terminal.mjs (18 checks), manager.mjs owner flow now pairs and signs in on the real terminal screen; run-all runs terminal.mjs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.3 KiB
JSON
38 lines
1.3 KiB
JSON
{
|
|
"start": {
|
|
"title": "Xenia terminal"
|
|
},
|
|
"pairing": {
|
|
"intro": "Pair this screen with the venue:",
|
|
"howTo": "In the manager, open Devices → Pair a device and type this code.",
|
|
"removed": "This screen was removed from the venue. Pair it again to use it."
|
|
},
|
|
"signIn": {
|
|
"title": "Who's signing in?",
|
|
"enterPin": "Enter your PIN",
|
|
"password": "Password",
|
|
"submit": "Sign in",
|
|
"back": "Back",
|
|
"empty": "Nobody can sign in here yet",
|
|
"emptyBody": "Give someone the {{app}} permission under Staff in the manager."
|
|
},
|
|
"blocked": {
|
|
"off": "{{app}} is turned off",
|
|
"offBody": "A manager can turn it on under Apps. This screen starts by itself then.",
|
|
"notLicensed": "{{app}} isn't in the venue's license",
|
|
"notLicensedBody": "Ask for it to be added to the license. This screen starts by itself then.",
|
|
"refused": "This screen can't be used right now"
|
|
},
|
|
"bar": {
|
|
"signOut": "Sign out"
|
|
},
|
|
"offline": {
|
|
"banner": "Can't reach the venue server. Trying again…"
|
|
},
|
|
"apps": {
|
|
"placeholder": "This screen runs {{app}}. Its screens are being built.",
|
|
"unknownTitle": "Unknown app",
|
|
"unknown": "This screen is set to run \"{{app}}\", which this terminal doesn't have yet. Update the venue server."
|
|
}
|
|
}
|