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:
+4
-10
@@ -18,11 +18,10 @@
|
||||
fault red) with a soft glow, phosphor-cyan for the one interactive control.
|
||||
STORY: the operator opens the board, reads the master lamp, and knows in a
|
||||
second whether arr can do its job — and which upstream is down, by name.
|
||||
FIRST VIEWPORT: a top rail (wordmark + master lamp + verdict + version +
|
||||
PROBE control), then the chain: TMDB and PROWLARR modules on the left
|
||||
feeding the central arr module, TRANSMISSION driven on the right, joined by
|
||||
bus hairlines with direction arrows. Footer rail carries the round-trip
|
||||
readout. On a phone the chain stacks vertically.
|
||||
FIRST VIEWPORT: a top rail (wordmark + master lamp + verdict + version),
|
||||
then the chain: TMDB and PROWLARR modules on the left feeding the central
|
||||
arr module, TRANSMISSION driven on the right, joined by bus hairlines with
|
||||
direction arrows. On a phone the chain stacks vertically.
|
||||
FORM: broadcast master-control panel, #2 of 7 on the ordered list; external
|
||||
roll (shell RANDOM → 2, witness 57910; concept-seed.mjs degraded to empty
|
||||
output in this environment).
|
||||
@@ -93,7 +92,6 @@
|
||||
<p class="rail-verdict readout" id="master-verdict" role="status">probing chain…</p>
|
||||
<div class="rail-meta">
|
||||
<span class="readout dim" id="version" data-testid="version">v —</span>
|
||||
<button type="button" class="control" id="probe">probe</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -331,9 +329,5 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="rail rail-foot">
|
||||
<span class="readout dim" id="roundtrip">rtt —</span>
|
||||
<span class="readout dim" id="poll-note">repolls every 15 s</span>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+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);
|
||||
|
||||
@@ -134,14 +134,6 @@ body {
|
||||
box-shadow: inset 0 1px var(--highlight);
|
||||
}
|
||||
|
||||
.rail-foot {
|
||||
margin-top: auto;
|
||||
border-bottom: 0;
|
||||
border-top: 1px solid var(--line);
|
||||
justify-content: space-between;
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
|
||||
.rail-id {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user