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 */}