feat(dashboard): Monitors widget carries uptime; Uptime / SLA retired (#5250)
The Monitors widget opens with a verdict ("1 of 5 monitors down."), then one
row per monitor under a single header: latency and uptime over 24h, 7d and
30d, down monitors first with why and since when, the name linking to the
monitor. Counts follow the type filter. Problems always show; the limit
trims only the healthy rest ("+N more up").
Uptime / SLA (uptime_summary) repeated those numbers per host; migration
0033 moves dashboards onto Monitors. Shared widget styles (.w-verdict,
.w-table, .w-sub, .w-more) carry the widget-shape ruling for the widgets
that follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -381,6 +381,22 @@ body.dash-editing .widget-drawer { transform:translateY(0); }
|
||||
.cell-state { font-size:0.85rem; color:var(--text-muted); padding:0.25rem 0; }
|
||||
.cell-state-failed { display:flex; flex-direction:column; align-items:flex-start; gap:0.5rem; color:var(--yellow); }
|
||||
.widget-link:hover { color:var(--text); }
|
||||
/* Widget content, in the order of the widget-shape ruling (UI & Design):
|
||||
a verdict line, the exceptions, then the healthy rest in a compact table
|
||||
whose column labels appear once. Names cut off with … and show whole on
|
||||
hover; the table never scrolls sideways. */
|
||||
.w-verdict { font-size:0.85rem; margin-bottom:0.5rem; }
|
||||
.w-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:0.82rem; font-variant-numeric:tabular-nums; }
|
||||
.w-table th { text-align:right; font-weight:500; font-size:var(--fs-size-tiny); color:var(--text-dim); text-transform:uppercase; letter-spacing:var(--fs-tracking-tiny); padding:0 0 0.25rem 0.5rem; white-space:nowrap; }
|
||||
.w-table td { text-align:right; padding:0.2rem 0 0.2rem 0.5rem; border-top:1px solid var(--border); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
||||
.w-table th:first-child, .w-table td:first-child { text-align:left; padding-left:0; }
|
||||
.w-table td.w-name { overflow:hidden; text-overflow:ellipsis; }
|
||||
.w-table td.w-name a { color:inherit; text-decoration:none; }
|
||||
.w-table td.w-name a:hover { text-decoration:underline; }
|
||||
.w-table .dot { margin-right:0.4rem; vertical-align:middle; }
|
||||
.w-sub { display:block; font-size:0.72rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
||||
.w-more { font-size:0.75rem; color:var(--text-dim); padding-top:0.3rem; }
|
||||
|
||||
|
||||
/* Time range selector */
|
||||
.range-btn { background:none; border:1px solid var(--border-control); border-radius:4px; color:var(--text-muted); padding:0.18rem 0.5rem; cursor:pointer; font-size:0.75rem; font-family:inherit; transition:background .1s,color .1s,border-color .1s; }
|
||||
|
||||
Reference in New Issue
Block a user