feat(observatory): show present equipment and compact router and telemetry panes

This commit is contained in:
DCCONSTRUCTIONS
2026-11-21 20:58:25 +03:00
parent 3ff43dd2af
commit a50d638ced
22 changed files with 369 additions and 35 deletions
+7
View File
@@ -0,0 +1,7 @@
import type {Sensor,SensorInventory} from './contracts';
// Persistent identity/settings are not evidence that an instance is present.
// Both Core and Node use the same live inventory projection, keyed by device ID.
export function visibleSensors(inventory:SensorInventory|null,fresh:boolean):Sensor[]{
return fresh&&inventory?.fresh!==false?inventory?.items.filter(device=>device.online)??[]:[];
}