chore(ui,agent): harden collector parsing, drop dead CSS, resilver label

Addresses final code review:
- to_int/1 now returns 0 on nil or unparseable strings instead of crashing
- remove unused .pool-row CSS (superseded by .pool-block)
- clamp capacity bar width to [0, 100] to prevent visual overflow
- pool_scrub_line/1 uses scan_function so resilver shows as "resilver..."
This commit is contained in:
Carsten 2026-04-22 18:06:17 +02:00
parent dd992573a1
commit 28a40a2650
5 changed files with 67 additions and 21 deletions

View file

@ -246,17 +246,6 @@ hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); color: var(--fg-bright); }
.pool-row {
display: flex;
justify-content: space-between;
padding: 0.45rem 0;
border-bottom: 1px solid var(--border);
gap: 0.8rem;
font-size: 0.85rem;
}
.pool-row:last-child { border-bottom: none; }
.pool-row .details { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
.capbar {
height: 4px;
background: var(--panel-2);