-
item.online&&item.position_fresh)} label={positionLabel}>setSettings(true)}>
+
item.online)} label={positionLabel}>setSettings(true)}>
{view.ready&&view.update(value=>({...value,camera}))}/> }
{view.ready&&unavailable&&
Картографические слои недоступны. Проверяем связь с сервером карты. {positionLabel} setGeneration(v=>v+1)}>Повторить загрузку карты
}
{view.error&&
{view.error} Повторить сохранение вида
}
diff --git a/apps/control-station/src/workspaces/fleet/observation/useObservationRouters.ts b/apps/control-station/src/workspaces/fleet/observation/useObservationRouters.ts
new file mode 100644
index 00000000..0bf4d7f2
--- /dev/null
+++ b/apps/control-station/src/workspaces/fleet/observation/useObservationRouters.ts
@@ -0,0 +1,8 @@
+import {useMemo} from 'react';
+import {routerTransport} from '../../../core/fleet/router';
+import {useRouters} from '../../../../../../packages/router-ui/src/useRouters';
+export function useObservationRouters(vehicleID:string){
+ const transport=useMemo(()=>routerTransport(vehicleID),[vehicleID]);
+ const {value}=useRouters(transport);
+ return {value,devices:value?.items.filter(device=>device.attached!==false)??[]};
+}
diff --git a/apps/control-station/test/equipmentPresence.test.mjs b/apps/control-station/test/equipmentPresence.test.mjs
new file mode 100644
index 00000000..4effc92d
--- /dev/null
+++ b/apps/control-station/test/equipmentPresence.test.mjs
@@ -0,0 +1,65 @@
+import assert from 'node:assert/strict';
+import {before,after,test} from 'node:test';
+import {readFile} from 'node:fs/promises';
+import {createServer} from './support/vite-server.mjs';
+
+let server,visibleSensors,visibleRouters,visibleIndependentDevices,hostOnline;
+before(async()=>{
+ server=await createServer({appType:'custom',logLevel:'silent'});
+ ({visibleSensors}=await server.ssrLoadModule('../../packages/sensor-ui/src/presence.ts'));
+ ({visibleRouters}=await server.ssrLoadModule('../../packages/router-ui/src/contracts.ts'));
+ ({visibleIndependentDevices}=await server.ssrLoadModule('./src/core/fleet/equipmentPresence.ts'));
+ ({hostOnline}=await server.ssrLoadModule('./src/core/fleet/vps.ts'));
+});
+after(async()=>{await server?.close();});
+
+test('ten identical cameras retain independent presence and return with the same identity/settings',()=>{
+ const items=Array.from({length:10},(_,i)=>({id:`camera-${i}`,model:'RealSense D455',name:`Camera ${i}`,online:true}));
+ const inventory={fresh:true,items};
+ assert.deepEqual(visibleSensors(inventory,true),items);
+ const missing={...inventory,items:items.map((v,i)=>i===3?{...v,online:false}:v)};
+ assert.equal(visibleSensors(missing,true).length,9);
+ assert.ok(!visibleSensors(missing,true).some(v=>v.id==='camera-3'));
+ assert.deepEqual(visibleSensors(inventory,true),items);
+ assert.equal(inventory.items.length,10);
+ assert.deepEqual(visibleSensors(inventory,false),[]);
+ assert.deepEqual(visibleSensors({...inventory,fresh:false},true),[]);
+});
+test('two routers are independent; stale, unreachable and disconnected observations never become rows',()=>{
+ const a={id:'router-a',attached:true,state:'ready',observed_at:100,internet:'unknown'};
+ const b={...a,id:'router-b'};
+ const snapshot={available:true,fresh:true,items:[a,b]};
+ assert.deepEqual(visibleRouters(snapshot,110000),[a,b]);
+ for(const change of [{attached:false},{state:'unreachable'},{observed_at:20}]){
+ assert.deepEqual(visibleRouters({...snapshot,items:[{...a,...change},b]},110000),[b]);
+ }
+ assert.deepEqual(visibleRouters({...snapshot,fresh:false},110000),[]);
+ assert.deepEqual(visibleRouters({...snapshot,available:false},110000),[]);
+ assert.deepEqual(visibleRouters(snapshot,140000),[]);
+ // A physically reachable device that needs credentials must stay discoverable.
+ for(const state of ['access_required','access_rejected','incompatible']){
+ assert.equal(visibleRouters({...snapshot,items:[{...a,state}]},110000).length,1);
+ }
+ assert.deepEqual(visibleRouters(snapshot,110000),[a,b]);
+});
+test('saved trackers require live instance evidence; a stalled request expires the last positive result',()=>{
+ const devices=[{id:'one'},{id:'two'}];
+ const telemetry={receivedAt:100000,unavailable:false,items:[{instance_id:'one',online:false},{instance_id:'two',online:true}]};
+ assert.deepEqual(visibleIndependentDevices(devices,telemetry,105000),[devices[1]]);
+ assert.deepEqual(visibleIndependentDevices(devices,{...telemetry,unavailable:true},105000),[]);
+ assert.deepEqual(visibleIndependentDevices(devices,telemetry,120000),[]);
+ assert.deepEqual(visibleIndependentDevices(devices,{...telemetry,items:telemetry.items.map(v=>({...v,online:true}))},105000),devices);
+ assert.equal(devices.length,2);
+});
+test('only paired VPS with current contact are present',()=>{
+ const host={id:'vps',state:'paired',last_sync_at:100};
+ assert.equal(hostOnline(host,110000),true);
+ assert.equal(hostOnline(host,130000),false);
+ assert.equal(hostOnline({...host,state:'pending'},110000),false);
+ assert.equal(hostOnline({...host,last_sync_at:null},110000),false);
+});
+test('Node mounts the shared router inventory inside the device section, not outside the board tree',async()=>{
+ const source=await readFile(new URL('../../node-agent/ui/src/NodeSensors.tsx',import.meta.url),'utf8');
+ assert.match(source,/devices=\{<>\{content\.devices\}
/);
+ assert.doesNotMatch(source,/
({id:'a',state:'ready',attached:true,observed_at:100,active_mode:'direct',selected_mode:'aggregation',active_slots:[1],internet:'unknown',modems:[1,2,3].map(slot=>({slot,operator:'op'+slot,connectivity:'online',radio:'enabled',rsrp:-90})),slot_map:[{slot:2,sim:1,position:'right'},{slot:3,sim:2,position:'center'},{slot:1,sim:3,position:'left'}],client_api:{details:{fallback:true},policy:{mode:'aggregation'}}});
+test('viewport exposes actual SIM and physical order without inferring aggregation',()=>{
+ const v=routerObservation(device(),{available:true,fresh:true},101000);
+ assert.deepEqual(v.channels.map(c=>c.label),['SIM1','SIM2','SIM3']);
+ assert.equal(v.channels.find(c=>c.active).operator,'op1');
+ assert.equal(v.mode.current,'Прямой выход · SIM3');
+ assert.match(v.mode.message,/Агрегация задана/);
+ assert.equal(v.internet,'Интернет не подтверждён');
+ assert.notEqual(routerObservationKey('a'),routerObservationKey('b'));
+});
+test('stale transport, removed device and old device evidence cannot display a live path or signal',()=>{
+ for(const [d,snapshot,now] of [[device(),{available:true,fresh:false},101000],[{...device(),attached:false},{available:true},101000],[device(),{available:true},141000],[{...device(),state:'unreachable'},{available:true},101000]]){
+ const v=routerObservation(d,snapshot,now);assert.equal(v.ready,false);assert.equal(v.mode.activeSlot,null);assert.ok(v.channels.every(c=>c.rsrp==null&&!c.active));
+ }
+});
+test('per-modem stale data and missing SIM do not reuse a previous strength; aggregation needs explicit mode',()=>{
+ const d=device();d.modems[0].radio_age_seconds=50;d.modems[1].radio='NOSIM';d.active_mode='aggregation';d.active_slots=[];
+ const v=routerObservation(d,{available:true,fresh:true},101000);
+ assert.equal(v.mode.current,'Агрегация');assert.ok(v.channels.every(c=>!c.active));
+ assert.equal(v.channels[0].rsrp,null);assert.equal(v.channels[2].rsrp,null);assert.equal(v.channels[1].rsrp,-90);
+});
+
+test('explicit per-channel freshness vetoes an otherwise fresh router snapshot',()=>{
+ const d=device();d.client_api.wan=[{slot:2,fresh:false}];
+ assert.equal(routerObservation(d,{available:true,fresh:true},101000).channels[0].rsrp,null);
+});
+
+test('SIM indicators distinguish the effective exit from merely registered modems',()=>{
+ const d=device(),snapshot={available:true,fresh:true};
+ let v=routerObservation(d,snapshot,101000);
+ assert.deepEqual(v.channels.map(c=>c.indicator),['neutral','neutral','success']);
+ assert.equal(v.live,true);assert.equal(v.waiting,false);
+ d.client_api.wan=[{slot:1,up:false,fresh:true}];
+ v=routerObservation(d,snapshot,101000);
+ assert.equal(v.channels[2].indicator,'warning');
+ v=routerObservation(d,{available:true,fresh:false},101000);
+ assert.equal(v.live,false);assert.equal(v.waiting,true);
+ assert.ok(v.channels.every(c=>c.indicator==='neutral'));
+ v=routerObservation({...d,attached:false},snapshot,101000);
+ assert.equal(v.live,false);assert.equal(v.waiting,false);
+});
+
+
+test('active indicator follows raw modem identity for every physical SIM permutation',()=>{
+ const maps=[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]];
+ for(const order of maps)for(const active of [1,2,3]){
+ const d=device();
+ d.slot_map=order.map((slot,index)=>({slot,sim:index+1,position:['right','center','left'][index]}));
+ d.modems.reverse(); // Payload order is independent of physical slot identity.
+ d.active_slots=[active];d.selected_mode='aggregation';
+ d.client_api.policy.preferred_sim='M'+(active%3+1);
+ const v=routerObservation(d,{available:true,fresh:true},101000);
+ assert.deepEqual(v.channels.map(c=>c.indicator),order.map(slot=>slot===active?'success':'neutral'));
+ assert.equal(v.channels.find(c=>c.active).operator,'op'+active);
+ assert.equal(v.mode.current,`Прямой выход · SIM${order.indexOf(active)+1}`);
+ }
+});
+
+test('observed aggregation lights each connected fresh WAN in physical SIM order',()=>{
+ for(const active_mode of ['aggregation','proxy']){
+ const d=device();d.active_mode=active_mode;d.active_slots=[];d.client_api.details={};
+ d.client_api.wan=[3,1,2].map(slot=>({slot,up:true,fresh:true,sim_present:true,modem_present:true}));
+ let v=routerObservation(d,{available:true,fresh:true},101000);
+ assert.deepEqual(v.channels.map(c=>c.indicator),['success','success','success']);
+ assert.ok(v.channels.every(c=>!c.active&&c.indicatorLabel==='Канал агрегации доступен'));
+ for(const veto of [{up:false},{fresh:false},{sim_present:false},{modem_present:false}]){
+ d.client_api.wan=[{slot:2,up:true,fresh:true,...veto},{slot:1,up:true,fresh:true},{slot:3,up:true,fresh:true}];
+ v=routerObservation(d,{available:true,fresh:true},101000);
+ assert.deepEqual(v.channels.map(c=>c.indicator),['neutral','success','success']);
+ }
+ }
+});
+test('configured, pending, fallback or stale aggregation cannot invent green SIMs',()=>{
+ for(const details of [{pending:true},{fallback:true}]){
+ const d=device();d.active_mode='aggregation';d.active_slots=[];d.client_api.details=details;
+ d.client_api.wan=[1,2,3].map(slot=>({slot,up:true,fresh:true}));
+ assert.ok(routerObservation(d,{available:true,fresh:true},101000).channels.every(c=>c.indicator==='neutral'));
+ }
+ const d=device();d.active_mode='aggregation';d.active_slots=[];d.client_api.details={};
+ assert.ok(routerObservation(d,{available:true,fresh:true},101000).channels.every(c=>c.indicator==='neutral'));
+ d.client_api.wan=[1,2,3].map(slot=>({slot,up:true,fresh:true}));
+ assert.ok(routerObservation(d,{available:true,fresh:false},101000).channels.every(c=>c.indicator==='neutral'));
+ d.modems[0].radio='NOSIM';
+ assert.equal(routerObservation(d,{available:true,fresh:true},101000).channels[2].indicator,'neutral');
+});
diff --git a/apps/node-agent/ui/src/NodeSensors.tsx b/apps/node-agent/ui/src/NodeSensors.tsx
index 3f1a412e..16763fa5 100644
--- a/apps/node-agent/ui/src/NodeSensors.tsx
+++ b/apps/node-agent/ui/src/NodeSensors.tsx
@@ -8,9 +8,10 @@ import {SensorWorkspace} from '../../../../packages/sensor-ui/src/SensorWorkspac
import type {SensorTransport} from '../../../../packages/sensor-ui/src/contracts';
import {request,type Status} from './api';
import {NodeRouters} from './NodeRouters';
+import {BoardSections} from '../../../../packages/sensor-ui/src/BoardSections';
import {Button,Icon,SettingsCard} from '@nodedc/ui-react';
import {createBoardLayoutStore} from '../../../../packages/sensor-ui/src/boardLayout';
const layout=createBoardLayoutStore({read:()=>request('/api/presentation/board-layout'),patch:(section,open)=>request('/api/presentation/board-layout','PATCH',{section,open})});
const configurationArchive:NonNullable={list:(device,before)=>request(`/api/device-configurations/${encodeURIComponent(device)}${before?'?before='+encodeURIComponent(before):''}`),read:(device,version)=>request(`/api/device-configurations/${encodeURIComponent(device)}/${encodeURIComponent(version)}`)};
const transport:SensorTransport={liveTelemetry:signal=>request('/api/devices/telemetry','GET',undefined,signal),configurationArchive,localPreview:{open:(command,signal)=>fetch("/api/devices/preview",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(command),signal}),read:(peer,after,signal)=>fetch("/api/devices/preview/read",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({peer_id:peer,after}),signal})},enrollment:{state:()=>request("/api/devices/enrollment"),submit:value=>request("/api/devices/enrollment/operations","POST",value),operation:id=>request("/api/devices/enrollment/operations/"+encodeURIComponent(id))},subscribe:(receive,unavailable)=>{const events=new EventSource('/api/devices/events');events.onmessage=e=>{try{receive(JSON.parse(e.data));}catch{unavailable();}};events.onerror=unavailable;return()=>events.close();},inventory:signal=>request('/api/devices','GET',undefined,signal),submit:value=>request('/api/devices/operations','POST',value),operation:id=>request('/api/devices/operations/'+encodeURIComponent(id))};
-export function NodeSensors({value,openSettings}:{value:Status;openSettings:()=>void}){return
Бортовой компьютер {value.node_id}
Операционная система {value.host.os}
Архитектура {value.host.architecture}
Процессоры {value.host.cpus}
Память {value.host.memory_kib?`${(value.host.memory_kib/1048576).toFixed(1)} ГиБ`:"Нет сведений"}
Mission Core Node {value.version} Подготовка среды }} contributions={[xgridsK1SensorUi,insta360X4SensorUi,vescSensorUi,usbCanSensorUi,jkBmsSensorUi]} createRerunHost={createIsolatedRerunHost} transport={transport}/> ;}
+export function NodeSensors({value,openSettings}:{value:Status;openSettings:()=>void}){return {content.devices} >} description={value.name} computer={
Бортовой компьютер {value.node_id}
Операционная система {value.host.os}
Архитектура {value.host.architecture}
Процессоры {value.host.cpus}
Память {value.host.memory_kib?`${(value.host.memory_kib/1048576).toFixed(1)} ГиБ`:"Нет сведений"}
Mission Core Node {value.version} Подготовка среды }/>} contributions={[xgridsK1SensorUi,insta360X4SensorUi,vescSensorUi,usbCanSensorUi,jkBmsSensorUi]} createRerunHost={createIsolatedRerunHost} transport={transport}/> ;}
diff --git a/docs/node/43_DEVICE_PRESENCE.md b/docs/node/43_DEVICE_PRESENCE.md
new file mode 100644
index 00000000..33766c03
--- /dev/null
+++ b/docs/node/43_DEVICE_PRESENCE.md
@@ -0,0 +1,74 @@
+# Live equipment presence in Core and Node
+
+Core's vehicle equipment tree and Node's local equipment section present current
+device instances. Saved enrollment, credentials and configuration do not prove
+that a device is attached. An absent instance is hidden, not deleted. Its next
+valid observation restores the same identity and settings.
+
+## Shared presentation contract
+
+- Sensors use `packages/sensor-ui/src/presence.ts`: the inventory must be fresh
+ and the individual instance must be online. A plugin cannot opt into permanent
+ offline rows. Reading saved configuration is independent of visibility.
+- Routers use `packages/router-ui/src/contracts.ts`: the snapshot must be
+ available and fresh, the instance must not be detached or unreachable, and its
+ observation must be younger than 40 seconds. The existing 30-second future
+ clock tolerance is preserved. A stalled browser request expires the snapshot
+ after 20 seconds without a successful response.
+- Independent trackers appear only with live online telemetry; a failed or
+ stalled telemetry read cannot retain their rows indefinitely. The receiving
+ view expires a response after 20 seconds.
+- A VPS in the vehicle equipment tree must be paired and have a synchronization
+ less than 30 seconds old. Its durable record remains in System/VPS for
+ administration. Presence is not inferred from enrollment.
+- Node places routers inside the same **Устройства аппарата** section as its
+ sensors, using the existing shared `BoardSections` composition.
+
+Presence is sampled: removal follows discovery or freshness expiry, not the
+instant a physical connector moves. An existing settings window can remain open
+for inspection; disappearing from the equipment list does not erase settings.
+
+## Router observation
+
+The Node collector also expires stale attachments. Cached ARP entries and saved
+credentials cannot revive an unreachable router. Rejected credentials may leave
+a router visible for access repair only when its public family endpoint still
+answers. Decoration of an unreachable observation cannot set `attached=true`.
+
+Router presence is distinct from cellular registration and Internet access.
+A Banana Pi answering over Ethernet remains visible even if every SIM is
+disabled or the aggregation server is unavailable. This change does not switch
+the board's uplink, restart a router or repair cellular service.
+
+Instance identity remains provider-owned: serial identity for supported USB
+devices, MAC/device-CA identity for routers, and enrolled instance identity for
+trackers. Labels and model names do not collapse separate devices. The existing
+router discovery supports distinct local addresses; concurrent routers with
+overlapping identical LAN addresses require separate qualification and are not
+claimed here.
+
+## Qualification — 2026-11-13
+
+Core and Node UI type checks/builds, 1,575 Core unit tests, Node UI tests and all
+Node Go tests with the race detector passed. Focused lifecycle fixtures cover
+ten same-model sensor identities, two routers on distinct synthetic LANs,
+unplug/replug identity retention, stale observations, cached ARP and access
+failure. These are simulations, not qualification of ten physical cameras.
+
+Node `0.8.53-135` was installed with the versioned owner installer on the existing
+prepared Ubuntu board. Installation completed, services recovered, its local
+API reported the new version and a fresh Banana Pi observation. The installed
+binary matches the qualified payload. The board-to-Core route remained Wi-Fi.
+Core's live equipment list was visually checked: unavailable RealSense, tracker
+and VPS rows were absent; available equipment remained.
+
+The runtime update preserves the exact OS/network/device helper payloads and
+maintainer scripts from qualified Node 134. The only package changes are the
+version, executable (including UI) and provenance. The prepared-board package
+checks passed; this is not a new clean-Ubuntu or physical hotplug acceptance.
+The same Node 135 installer is published through Core's installer catalog.
+
+Private receipts, artifact hashes, package comparison, test logs and served
+installer verification are under `.runtime/device-presence-135`. Qualified
+releases and the previous rollback release remain under the normal package
+owners; disposable transport copies have a separate cleanup receipt.
diff --git a/packages/sensor-ui/src/SensorWorkspace.tsx b/packages/sensor-ui/src/SensorWorkspace.tsx
index 4063bb9c..c5024125 100644
--- a/packages/sensor-ui/src/SensorWorkspace.tsx
+++ b/packages/sensor-ui/src/SensorWorkspace.tsx
@@ -12,6 +12,7 @@ import {sensorContribution,type SensorUiContribution,wirelessContributions} from
import type {RerunHostFactory} from './rerunHost';
import './sensors.css';
import {InventoryObserver} from './inventoryObserver';
+import {visibleSensors} from './presence';
import {BoardSections,type BoardSectionsProps} from './BoardSections';
import {WirelessEnrollmentWindow} from './WirelessEnrollmentWindow';
export interface SensorBoardContent {settings:ReactNode;devices:ReactNode;refresh:()=>Promise;addDevice:()=>void;canAddDevice:boolean;showingSavedDevices:boolean}
@@ -46,7 +47,7 @@ export function SensorWorkspace({onOpenDetail,sceneSeedKey,transport,enabled=tru
setInventory(value);setFresh(true);setSelected(target.id);setAdding(false);
}
const device=inventory?.items.find(v=>v.id===selected);
- const connected=inventory?.items.filter(v=>readOfflineInventory||v.online||sensorContribution(contributions,v)?.retainOffline)??[];
+ const connected=visibleSensors(inventory,enabled&&fresh);
const editingCurrent=inventory?.items.find(v=>v.id===editing?.id);
const settingsDevice=editingCurrent??editing;
const settingsFor=(item:Sensor)=>{const contribution=sensorContribution(contributions,item);return {supportsPreparation:contribution?.supportsPreparation!==false,supportsRenaming:contribution?.supportsRenaming,facts:contribution?.settingsFacts?.(item)};};
@@ -63,7 +64,7 @@ export function SensorWorkspace({onOpenDetail,sceneSeedKey,transport,enabled=tru
const prep=devicePreparation(inventory!,item);
const status=(sensorContribution(contributions,item)?.status??sensorStatus)(item,enabled&&fresh);const label=busy?(operation?.action_id==='prepare'?'Подготовка устройства':'Выполняется команда'):status.label;
return } title={item.name} description={item.model} metadata={{item.connection_label||`USB ${item.usb}`} } statusPlacement={configured?'leading':'trailing'} aria-busy={busy} progress={busy&&pending==='prepare'?preparationProgress(prep,label):undefined} status={{configured?null:label} } actions={<>void action(item,name,parameters)}/>{!configured&&sensorContribution(contributions,item)?.supportsPreparation!==false&&void action(item,'prepare')}> }{sensorContribution(contributions,item)?.settingsInDetail?openDetail(item)}> :<>{sensorContribution(contributions,item)?.supportsRenaming!==false&&{setEditing(item);}}> }{sensorContribution(contributions,item)?.detailLabel?openDetail(item)}>{sensorContribution(contributions,item)?.detailLabel} :openDetail(item)}> }>}>}/> ;})}
- {!inventory&&enabled&&!error? :!enabled?(!renderBoard? :null):inventory&&connected.length===0? :null}
+ {!inventory&&enabled&&!error? :!enabled?(!renderBoard? :null):null}
>;
const boardSettings=contributions.filter(value=>value.BoardSettings&&contributions.filter(other=>other.kind===value.kind).length===1);
diff --git a/packages/sensor-ui/src/extensions.ts b/packages/sensor-ui/src/extensions.ts
index 62776cc1..5de77d7f 100644
--- a/packages/sensor-ui/src/extensions.ts
+++ b/packages/sensor-ui/src/extensions.ts
@@ -27,7 +27,6 @@ export interface SensorUiContribution {
kind:string;
Detail:ComponentType;
icon:IconName;
- retainOffline:boolean;
supportsPreparation:boolean;
supportsRenaming?:boolean;
detailLabel?:string;
diff --git a/packages/sensor-ui/src/presence.ts b/packages/sensor-ui/src/presence.ts
new file mode 100644
index 00000000..43fe37b3
--- /dev/null
+++ b/packages/sensor-ui/src/presence.ts
@@ -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)??[]:[];
+}
diff --git a/plugins/insta360-x4/frontend/src/plugin.ts b/plugins/insta360-x4/frontend/src/plugin.ts
index 96dbab79..012a1ff2 100644
--- a/plugins/insta360-x4/frontend/src/plugin.ts
+++ b/plugins/insta360-x4/frontend/src/plugin.ts
@@ -4,7 +4,7 @@ import {cameraLabel,cameraRowActions,cameraStatus} from './model';
import {X4Observation} from './X4Observation';
export const insta360X4SensorUi:SensorUiContribution={
- kind:'insta360.x4',Detail:X4Detail,icon:'camera',retainOffline:true,
+ kind:'insta360.x4',Detail:X4Detail,icon:'camera',
supportsPreparation:true,supportsRenaming:true,status:cameraLabel,
rowActions:cameraRowActions,
settingsFacts:device=>[{id:'serial',label:'Серийный номер',value:cameraStatus(device).serial||'Не получен'}],
diff --git a/plugins/jk-bms/frontend/src/plugin.ts b/plugins/jk-bms/frontend/src/plugin.ts
index ee69a60d..2073a4f3 100644
--- a/plugins/jk-bms/frontend/src/plugin.ts
+++ b/plugins/jk-bms/frontend/src/plugin.ts
@@ -3,6 +3,6 @@ import {BmsDetail} from './BmsDetail';
import {batteryState,statusLabel} from './model';
export const jkBmsSensorUi:SensorUiContribution={
- kind:'jk.bms',Detail:BmsDetail,icon:'activity',retainOffline:true,supportsPreparation:false,supportsRenaming:false,
+ kind:'jk.bms',Detail:BmsDetail,icon:'activity',supportsPreparation:false,supportsRenaming:false,
detailPresentation:'modal',status(device,fresh){const state=batteryState(device,fresh);return {label:statusLabel(state),tone:state.fresh?'success':state.sample?'warning':'neutral'};},
};
diff --git a/plugins/usb-can/frontend/src/plugin.ts b/plugins/usb-can/frontend/src/plugin.ts
index d78387fd..d6fedd38 100644
--- a/plugins/usb-can/frontend/src/plugin.ts
+++ b/plugins/usb-can/frontend/src/plugin.ts
@@ -2,7 +2,7 @@ import type {SensorUiContribution} from '../../../../packages/sensor-ui/src/exte
import {CanDetail} from './CanDetail';
export const usbCanSensorUi:SensorUiContribution={
kind:'waveshare.usb-can-fd-b',Detail:CanDetail,icon:'network',
- retainOffline:true,supportsPreparation:true,supportsRenaming:true,
+ supportsPreparation:true,supportsRenaming:true,
settingsInDetail:true,detailPresentation:'modal',detailLabel:'Настройка USB-CAN',
status:(device,enabled)=>({tone:enabled&&device.online&&device.verified?'success':'neutral',label:enabled&&device.online&&device.verified?'Подключён':'Нет свежей связи'}),
};
diff --git a/plugins/vesc/frontend/src/plugin.ts b/plugins/vesc/frontend/src/plugin.ts
index 7c12bf95..75897189 100644
--- a/plugins/vesc/frontend/src/plugin.ts
+++ b/plugins/vesc/frontend/src/plugin.ts
@@ -4,6 +4,6 @@ import {VescBoardSettings} from './VescBoardSettings';
import {vescLabel} from './model';
export const vescSensorUi:SensorUiContribution={
- kind:'vesc.controller',Detail:VescDetail,BoardSettings:VescBoardSettings,icon:'activity',retainOffline:true,
+ kind:'vesc.controller',Detail:VescDetail,BoardSettings:VescBoardSettings,icon:'activity',
supportsPreparation:true,supportsRenaming:true,settingsInDetail:true,detailPresentation:'modal',detailLabel:'Настройка VESC',status:vescLabel,
};
diff --git a/plugins/xgrids-k1/frontend/src/sensors/plugin.ts b/plugins/xgrids-k1/frontend/src/sensors/plugin.ts
index 101ebf70..ff75ab47 100644
--- a/plugins/xgrids-k1/frontend/src/sensors/plugin.ts
+++ b/plugins/xgrids-k1/frontend/src/sensors/plugin.ts
@@ -5,7 +5,7 @@ import {k1Status} from './presentation';
import {K1Observation} from './K1Observation';
export const xgridsK1SensorUi:SensorUiContribution={
- kind:'k1', Detail:K1SettingsWindow, detailPresentation:'modal', icon:'network', retainOffline:true, supportsPreparation:false,
+ kind:'k1', Detail:K1SettingsWindow, detailPresentation:'modal', icon:'network', supportsPreparation:false,
supportsRenaming:false,settingsInDetail:true,status:k1Status,
wirelessEnrollment:{label:'XGRIDS LixelKity K1',View:DeviceEnrollmentWindow},
observation:{Session:K1Observation,catalog:{label:'XGRIDS LixelKity K1',views:[{id:'points',scene:true,label:'XGRIDS K1 · Облако точек'},{id:'camera',label:'XGRIDS K1 · Камера'}]},views:device=>[{id:'points',scene:true,label:`${device.name} Point Cloud`},{id:'camera',label:`${device.name} Cam Right`}]},