feat(widgets): Overview verdict, pending monitors' age, fullest filesystems first (#5810)
CI / lint (push) Successful in 2s
CI / integration (push) Successful in 1m23s
CI / unit (push) Successful in 1m33s
CI / publish (push) Successful in 1m16s

- Overview: a verdict line when something is wrong ('1 alert firing, 1
  monitor down.'); its picker description now says what it lists (alerts,
  monitors down, anomalies). Host figures have their home in Hosts.
  Comments no longer name the Status page that was folded into Monitors.
- Monitors widget: a monitor not checked yet says when it was added.
- Host page: filesystems fullest first, by the worse of space and inodes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-15 10:11:37 -04:00
co-authored by Claude Opus 5.5
parent 5c7a4cf9a0
commit b29b160baa
8 changed files with 45 additions and 6 deletions
+11
View File
@@ -181,3 +181,14 @@ async def test_the_widget_says_when_all_is_well(app):
up = {**_row(_mon("web", mid="m1"), "up", _check()), "uptime": {"24h": 100.0}}
page = await _widget(app, [], [up])
assert "All 1 monitor up." in page and "tone-ok" in page
async def test_a_pending_monitor_says_when_it_was_added(app):
"""#5810: a monitor not yet checked says how long it has waited."""
m = _mon("new-api", mid="m7")
m.created_at = datetime.now(timezone.utc) - timedelta(minutes=6)
pending = {**_row(m, "pending", None), "uptime": {}}
page = await _widget(app, [pending], [], counts={"up": 0, "degraded": 0, "down": 0,
"pending": 1, "paused": 0})
page = " ".join(page.split())
assert "not checked yet · added <time" in page and "6m ago" in page