From 1d6d8f017807af16701181a27adacc401f7702a5 Mon Sep 17 00:00:00 2001 From: Pouzor Date: Mon, 9 Mar 2026 21:46:40 +0100 Subject: [PATCH] feat: enhance pending device cards with service badges and recognized service title - Show recognized service name (Home Assistant, Synology, Proxmox, etc.) as card title instead of IP when detected via service signatures - Keep IP displayed smaller below when title differs from IP - Add SSH / HTTP / HTTPS badges as colored pills - Show +N badge for additional services beyond the three common ones --- frontend/src/components/panels/Sidebar.tsx | 62 +++++++++++++++------- 1 file changed, 42 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/panels/Sidebar.tsx b/frontend/src/components/panels/Sidebar.tsx index ba98c12..d1b0574 100644 --- a/frontend/src/components/panels/Sidebar.tsx +++ b/frontend/src/components/panels/Sidebar.tsx @@ -222,27 +222,38 @@ function PendingDevicesPanel({ onNodeApproved }: { onNodeApproved: (nodeId: stri {!loading && devices.length === 0 && (

No pending devices

)} - {devices.map((d) => ( - - ))} + {(hasSsh || hasHttp || hasHttps || otherCount > 0) && ( +
+ {hasSsh && } + {hasHttp && } + {hasHttps && } + {otherCount > 0 && } +
+ )} + + ) + })} + {label} + + ) +} + interface ActionButtonProps { icon: React.ElementType label: string