feat(manager): Devices page — pair by code, app, name, sign-in mode, link, change app, remove

Platform-v2 step 2.6d:
- /devices (core.devices.manage, sidebar): devices from /api/devices with
  status (online / last seen / waiting for the device / app turned off /
  removed), app, sign-in mode (own or venue default), linked device; usage per
  device app against the license limit (devices)
- pair dialog: code as typed (normalized), app (only apps that are on, "all in
  use" when the limit is reached), name, sign-in mode for apps with a choice,
  optional linked device; license.limit_reached explained with the app's limit
- edit (name, sign-in mode, link), change app (signs out whoever is on it),
  remove with confirm (the device goes back to pairing), show removed
- manager_dashboard gets node --test (tests/platform.test.mjs: module states,
  dependents, device status/usage/room/links), added to run-all
- e2e manager.mjs: 54 checks (+ wrong code, normalized code, pair, the device
  picks up its token, online, rename, change app, remove → device.revoked)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 23:22:43 +02:00
co-authored by Claude Opus 5.5
parent 1f28016122
commit cc00ec39c7
12 changed files with 638 additions and 5 deletions
+61 -1
View File
@@ -42,7 +42,8 @@
"kds": "Kitchen display",
"soon": "soon",
"integrations": "Integrations",
"license": "License"
"license": "License",
"devices": "Devices"
},
"profile": {
"edit": "Edit profile",
@@ -127,5 +128,64 @@
"dev": "Development",
"notIncluded": "Not included",
"limits": "Limits"
},
"devices": {
"intro": "Screens and terminals that run one app each: kitchen displays, counter POS, customer displays, signage, menu tablets. Phones of staff are not devices; they sign in as themselves.",
"pair": "Pair a device",
"empty": "No devices yet",
"emptyBody": "Open the app on the screen you want to use: it shows a 6-character code. Then choose \"Pair a device\" here.",
"showRemoved": "Show removed devices",
"usage": "{{label}}: {{used}} of {{max}}",
"usageUnlimited": "{{label}}: {{used}}",
"columns": {
"device": "Device",
"app": "App",
"status": "Status",
"signIn": "Sign-in",
"linked": "Linked to",
"actions": ""
},
"status": {
"online": "Online",
"offline": "Last seen {{when}}",
"offlineNever": "Not seen yet",
"waiting": "Waiting for the device to connect",
"app_off": "App turned off",
"removed": "Removed {{when}}"
},
"signIn": {
"default": "Venue default ({{mode}})",
"pin": "PIN",
"password": "Password",
"tap": "Tap your name",
"none": "No sign-in",
"defaultPlain": "Venue default"
},
"form": {
"code": "Code shown on the device",
"codeHint": "6 characters, letters and digits",
"app": "App to run",
"name": "Name",
"namePlaceholder": "e.g. Kitchen, Bar, Counter 1",
"signIn": "How staff sign in",
"link": "Linked device",
"noLink": "None",
"linkHint": "For example a customer display that shows a counter POS's order.",
"full": "{{label}}: the license allows {{max}}, all in use. Remove one or ask for a bigger license.",
"noApps": "No device app is turned on. Turn one on in Apps first."
},
"actions": {
"rename": "Rename",
"changeApp": "Change app",
"remove": "Remove",
"save": "Save",
"edit": "Edit"
},
"paired": "{{name}} is paired. It starts in a few seconds.",
"saved": "Saved",
"removeTitle": "Remove {{name}}?",
"removeBody": "It stops at once and shows the pairing screen. To use it again, pair it again.",
"changeAppBody": "Whoever is signed in on it is signed out.",
"limitReached": "{{label}}: the license allows {{max}}. Remove one or ask for a bigger license."
}
}