Stream topology discovery progress and mark missing links stale.

SSE updates the UI per NE; edges not seen in a successful scan turn red and can be cleared.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-07-30 00:35:16 +08:00
parent bfc10ee8cf
commit bf82a01a03
11 changed files with 748 additions and 67 deletions

View file

@ -2089,6 +2089,88 @@ pre {
gap: 8px;
}
.topo-discover {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 220px;
padding: 10px 12px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
overflow: hidden;
}
.topo-discover__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.topo-discover__summary {
margin: 0;
font-size: 13px;
color: #334155;
}
.topo-discover__error {
margin: 0;
font-size: 13px;
color: #b91c1c;
}
.topo-discover__list {
list-style: none;
margin: 0;
padding: 0;
overflow: auto;
flex: 1;
min-height: 0;
}
.topo-discover__list li {
padding: 8px;
border-radius: 8px;
margin-bottom: 4px;
background: #fff;
border: 1px solid #e2e8f0;
}
.topo-discover__list li.is-fail {
border-color: #fecaca;
background: #fff1f2;
}
.topo-discover__item-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-weight: 600;
color: #0f172a;
}
.topo-discover__badge {
font-size: 11px;
font-weight: 700;
color: #166534;
}
.topo-discover__list li.is-fail .topo-discover__badge {
color: #b91c1c;
}
.topo-discover__item-meta,
.topo-discover__item-cmd {
margin-top: 2px;
font-size: 12px;
color: #64748b;
}
.topo-discover__item-cmd {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.topo-canvas {
position: relative;
flex: 1;