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
+2
View File
@@ -53,6 +53,7 @@ import MiscPage from './pages/reports/MiscPage'
// Other
import { AppsPage, IntegrationsPage } from './pages/platform/ModulesPage'
import LicensePage from './pages/platform/LicensePage'
import DevicesPage from './pages/platform/DevicesPage'
import PhonePage from './pages/PhonePage'
import SettingsPage from './pages/Settings/SettingsPage'
import NotesPage from './pages/NotesPage'
@@ -181,6 +182,7 @@ export default function App() {
<Route path="apps" element={<AppsPage />} />
<Route path="integrations" element={<IntegrationsPage />} />
<Route path="license" element={<LicensePage />} />
<Route path="devices" element={<DevicesPage />} />
<Route path="apps/phone" element={<PhonePage />} />
<Route path="settings" element={<SettingsPage />} />
<Route path="notes" element={<NotesPage />} />