feat(web): rebuild fleet page with Hub-style identity guard and context actions

- Surface device identity state, carrier details and upstream link health.

- Add fleet-level identity monitoring and restart/baseband context actions.

- Apply consistent notification scoping across fleet views.
This commit is contained in:
chick
2026-09-07 00:45:28 +08:00
parent 635527dd26
commit 864e1bd90c
16 changed files with 1596 additions and 90 deletions
@@ -153,11 +153,13 @@ export function createNotificationCenterApiDataSource(
...(draft.condition.mode === 'all' ? {} : { value: draft.condition.value }),
},
scope:
draft.scope.mode === 'tags'
? { mode: 'tags', tags: [...draft.scope.tags], match: draft.scope.match }
: draft.scope.mode === 'devices'
? { mode: 'devices', instanceIds: [...draft.scope.instanceIds] }
: { mode: 'all' },
draft.scope.mode === 'groups'
? { mode: 'groups', groups: [...draft.scope.groups] }
: draft.scope.mode === 'tags'
? { mode: 'tags', tags: [...draft.scope.tags], match: draft.scope.match }
: draft.scope.mode === 'devices'
? { mode: 'devices', instanceIds: [...draft.scope.instanceIds] }
: { mode: 'all' },
channelIds: [...draft.channelIds],
templates: { title: draft.templates.title, body: draft.templates.body },
...(draft.rateLimit === undefined ? {} : { rateLimit: draft.rateLimit }),