From cce30bd29c7b623f630918b91ab6014b4774f89b Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Tue, 26 Mar 2024 16:55:29 -0400 Subject: [PATCH] feat: show node acl tags on the main screen --- app/routes/_data.machines._index.tsx | 109 +++++++++++++++------------ 1 file changed, 61 insertions(+), 48 deletions(-) diff --git a/app/routes/_data.machines._index.tsx b/app/routes/_data.machines._index.tsx index 3c49bea..7577dc8 100644 --- a/app/routes/_data.machines._index.tsx +++ b/app/routes/_data.machines._index.tsx @@ -25,60 +25,73 @@ export default function Page() { return ( - - + + - - {data.map(machine => ( - - - + {data.map(machine => { + const tags = [...machine.forcedTags, ...machine.validTags] + + return ( + + - - - ))} +
+ {tags.map(tag => ( + + {tag} + + ))} +
+ + + + + + ) + })}
Name IP Addresses Last Seen
- -

{machine.givenName}

- {machine.name} - - -
- {machine.ipAddresses.map((ip, index) => ( -
+ +

{machine.givenName}

+ + {machine.name} - - - ))} -
- - -

- {machine.online - ? 'Connected' - : new Date( - machine.lastSeen - ).toLocaleString()} -

-
-
+ {machine.ipAddresses.map((ip, index) => ( + + ))} + + + +

+ {machine.online + ? 'Connected' + : new Date( + machine.lastSeen + ).toLocaleString()} +

+
+
)