[NX-103 Issue] Add offline state handling for unreachable targets

Introduced a mechanism to detect and handle when a target is unreachable, including a detailed offline state message with host and port information. Updated the UI to display a card notifying users of the target's offline status and styled the card accordingly in CSS.
This commit is contained in:
2026-02-14 15:58:22 +01:00
parent 1ad237d750
commit 5c566cd90d
2 changed files with 68 additions and 7 deletions

View File

@@ -2022,6 +2022,29 @@ select:-webkit-autofill {
font-size: 12px;
}
.target-offline-card {
border-color: #a85757;
background: linear-gradient(130deg, #2c1724 0%, #1f1f38 100%);
}
.target-offline-card h3 {
margin: 0 0 8px;
color: #fecaca;
}
.target-offline-card p {
margin: 0 0 10px;
color: #fde2e2;
}
.target-offline-meta {
display: flex;
flex-wrap: wrap;
gap: 16px;
font-size: 12px;
color: #d4d4f5;
}
.chart-tooltip {
background: #0f1934ee;
border: 1px solid #2f4a8b;