feat: ingest data from new agent system

This commit is contained in:
Aarnav Tale 2025-03-11 22:34:30 -04:00
parent e36352b7f3
commit 5b9dc7cfc6
No known key found for this signature in database
3 changed files with 23 additions and 3 deletions

View file

@ -15,6 +15,7 @@ interface Props {
machine: Machine;
routes: Route[];
users: User[];
isAgent?: boolean;
magic?: string;
stats?: HostInfo;
}
@ -22,8 +23,9 @@ interface Props {
export default function MachineRow({
machine,
routes,
magic,
users,
isAgent,
magic,
stats,
}: Props) {
const expired =
@ -79,6 +81,10 @@ export default function MachineRow({
tags.unshift('Subnets');
}
if (isAgent) {
tags.unshift('Headplane Agent');
}
const ipOptions = useMemo(() => {
if (magic) {
return [...machine.ipAddresses, `${machine.givenName}.${prefix}`];