Tier 0: render what the services already decided, honestly

Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
Gabriel Brown
2026-08-25 00:24:30 -04:00
parent be0e55214b
commit 8b1205e4b8
38 changed files with 1474 additions and 260 deletions
@@ -284,26 +284,21 @@ Rectangle {
border.width: activeFocus ? 2 : 0
border.color: Theme.accent
// Health owns the verdict; this footer only renders it. It used to
// decide for itself, in the opposite order to the Health page's hero,
// and the two then disagreed out loud whenever a health check failed
// after a successful one -- see Health.headlineState.
function footerText(): string {
if (Health.checks.length === 0)
return Health.diagnosticUnavailable ? "Health check unavailable" : "Checking the desktop";
if (Health.status === "error")
return "Desktop needs attention";
if (Health.status === "warning") {
const count = Health.summary.warnings + Health.summary.errors;
return count + (count === 1 ? " health observation" : " health observations");
}
return "Desktop is healthy";
return Health.headline;
}
function footerColor(): color {
if (Health.checks.length === 0)
return Health.diagnosticUnavailable ? Theme.danger : Theme.fgMuted;
if (Health.status === "error")
return Theme.danger;
if (Health.status === "warning")
return Theme.warn;
return Theme.ok;
switch (Health.tone) {
case "danger": return Theme.danger;
case "warn": return Theme.warn;
case "muted": return Theme.fgMuted;
default: return Theme.ok;
}
}
Rectangle {