feat: add nodes list table with last connect

This commit is contained in:
Peter Steinberger
2026-01-21 03:02:50 +00:00
parent 438a41f91f
commit caf9dec89c
5 changed files with 71 additions and 15 deletions

View File

@@ -39,6 +39,7 @@ export type NodePairingPairedNode = {
remoteIp?: string;
createdAtMs: number;
approvedAtMs: number;
lastConnectedAtMs?: number;
};
export type NodePairingList = {
@@ -295,6 +296,7 @@ export async function updatePairedNodeMetadata(
commands: patch.commands ?? existing.commands,
bins: patch.bins ?? existing.bins,
permissions: patch.permissions ?? existing.permissions,
lastConnectedAtMs: patch.lastConnectedAtMs ?? existing.lastConnectedAtMs,
};
state.pairedByNodeId[normalized] = next;