Panels become devices: per-device documents in the flow repo, a Devices tab
- flow/devices.py: DeviceDef in FLOWS_DIR/_devices/<id>.json, committed under
the flow store's write lock, 409 on a stale version; nonces in DEVICES_FILE
outside git; in-memory presence announced as device_status
- api/routes/devices.py: CRUD, pairing with an optional {name, board,
firmware}, a pending list adopted without a code from the LAN only, unpair;
/panels/pair, /panels/pair/{code} and GET /panels/{id} kept as aliases,
PUT /panels/ gone
- _device_may replaces _panel_may, JWT claims unchanged
- panels.json moves into devices once at startup, then .migrated
- MCP list_devices, get_device; search category device
- Devices tab (list, detail with presence, pairing, ordered dashboards,
touch, I/O), PanelsDialog removed, serialised optimistic saves
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
KeyRound,
|
||||
LayoutDashboard,
|
||||
LogOut,
|
||||
MonitorSmartphone,
|
||||
Package,
|
||||
Search,
|
||||
Server,
|
||||
@@ -49,6 +50,8 @@ const baseItems: Item[] = [
|
||||
{ icon: Home, title: "Home", path: "/" },
|
||||
{ icon: Workflow, title: "Flows", path: "/flows" },
|
||||
{ icon: LayoutDashboard, title: "Dashboards", path: "/dashboards" },
|
||||
// What hangs on the wall and which of the dashboards it shows.
|
||||
{ icon: MonitorSmartphone, title: "Devices", path: "/devices" },
|
||||
// What a batch flow leaves behind. Beside the flows rather than under Home:
|
||||
// an experiment log is browsed, not glanced at.
|
||||
{ icon: FlaskConical, title: "Runs", path: "/runs" },
|
||||
|
||||
Reference in New Issue
Block a user