chore(web): drop probe button and footer rail
The 15 s health poll stays; the manual trigger and the rtt/poll-note footer earned nothing over it. Closes #106 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+1
-10
@@ -98,8 +98,6 @@ function main() {
|
||||
const masterLamp = must<HTMLElement>("#master-lamp");
|
||||
const verdict = must<HTMLElement>("#master-verdict");
|
||||
const version = must<HTMLElement>("#version");
|
||||
const roundtrip = must<HTMLElement>("#roundtrip");
|
||||
const probeButton = must<HTMLButtonElement>("#probe");
|
||||
|
||||
const master = moduleRefs("master");
|
||||
const checks = {
|
||||
@@ -153,18 +151,16 @@ function main() {
|
||||
for (const name of ["tmdb", "prowlarr", "master"] as const) {
|
||||
setTrace(name, null);
|
||||
}
|
||||
roundtrip.textContent = "rtt —";
|
||||
return;
|
||||
}
|
||||
|
||||
const { report, roundtripMs } = probe;
|
||||
const { report } = probe;
|
||||
const degraded = report.status === "degraded";
|
||||
|
||||
masterLamp.dataset.state = degraded ? "degraded" : "ok";
|
||||
verdict.dataset.tone = degraded ? "warn" : "ok";
|
||||
verdict.textContent = degraded ? "chain degraded" : "all signals nominal";
|
||||
version.textContent = `v${report.version}`;
|
||||
roundtrip.textContent = `rtt ${roundtripMs} ms`;
|
||||
|
||||
setModule(master, degraded ? "degraded" : "ok", degraded ? "warn" : "ok", report.status);
|
||||
setTrace("master", degraded ? "warn" : "ok");
|
||||
@@ -192,16 +188,11 @@ function main() {
|
||||
return;
|
||||
}
|
||||
inFlight = true;
|
||||
probeButton.disabled = true;
|
||||
render(await probeHealth());
|
||||
probeButton.disabled = false;
|
||||
inFlight = false;
|
||||
refreshQueuesBadge?.();
|
||||
}
|
||||
|
||||
probeButton.addEventListener("click", () => {
|
||||
void probe();
|
||||
});
|
||||
window.setInterval(() => {
|
||||
void probe();
|
||||
}, POLL_MS);
|
||||
|
||||
Reference in New Issue
Block a user