Adds a version listing in the hub for each agent.

This commit is contained in:
theRealBassist
2024-08-19 17:45:15 -04:00
parent 7cf7b706c1
commit 19272c05bf
4 changed files with 13 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ import {
PauseCircleIcon,
PlayCircleIcon,
Trash2Icon,
Wifi,
} from 'lucide-react'
import { useMemo, useState } from 'react'
import { $systems, pb } from '@/lib/stores'
@@ -135,6 +136,14 @@ export default function SystemsTable() {
},
header: ({ column }) => sortableHeader(column, 'System', Server),
},
{
accessorKey: 'info.v',
cell: (info) => {
return(
<div>{info.getValue() as string}</div>)
},
header: ({ column }) => sortableHeader(column, 'Version', Wifi),
},
{
accessorKey: 'info.cpu',
cell: CellFormatter,

View File

@@ -6,6 +6,7 @@ export interface SystemRecord extends RecordModel {
status: 'up' | 'down' | 'paused' | 'pending'
port: string
info: SystemInfo
agentVersion: string
}
export interface SystemInfo {