From 8a602797202e5f6e7b1654df7724b3324ed70254 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Jun 2026 11:43:10 +0000 Subject: [PATCH] Add selectable node status tiles and a Node Detail card Clicking a tile in Node Status highlights it and surfaces its name, source integration, status, and detail in a new Node Detail card on the bottom row, between Integration Health and a now-narrower Recent Activity card. --- src/pages/Infrastructure.tsx | 42 +++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/src/pages/Infrastructure.tsx b/src/pages/Infrastructure.tsx index 4cfdec3..a824104 100644 --- a/src/pages/Infrastructure.tsx +++ b/src/pages/Infrastructure.tsx @@ -108,6 +108,7 @@ export default function Infrastructure() { const [resources, setResources] = useState(null) const [integrations, setIntegrations] = useState(null) const [events, setEvents] = useState(null) + const [selectedNode, setSelectedNode] = useState(null) const navigate = useNavigate() useEffect(() => { @@ -251,9 +252,11 @@ export default function Infrastructure() {
setSelectedNode(node)} + className="cursor-pointer transition-colors" style={{ - backgroundColor: 'rgba(10, 10, 12, 0.55)', - border: `1px solid ${nodeStatusColor[node.status]}33`, + backgroundColor: selectedNode === node ? 'rgba(200,164,52,0.1)' : 'rgba(10, 10, 12, 0.55)', + border: selectedNode === node ? '1px solid rgba(200,164,52,0.5)' : `1px solid ${nodeStatusColor[node.status]}33`, borderRadius: '8px', padding: '8px 10px', display: 'flex', @@ -281,7 +284,7 @@ export default function Infrastructure() { {/* Bottom Row */}
-
+
{/* Integration Health */}
@@ -306,6 +309,39 @@ export default function Infrastructure() {
+ {/* Node Detail — shows the node selected up in Node Status */} +
+
+

Node Detail

+ {selectedNode ? ( +
+
+ + {selectedNode.name} +
+
+ {selectedNode.integration} + | + {selectedNode.status} +
+ {selectedNode.detail && ( +

{selectedNode.detail}

+ )} +
+ ) : ( +

Select a node above to view its details.

+ )} +
+
+ {/* Recent Activity */}