feat(web): lamp-only header on the content width
Drops #master-verdict entirely - element, .rail-verdict rules and every line that wrote into it. The lamp is the only header signal; the unreachable detail moves onto the board's arr module so nothing is lost. Rail contents move into .rail-inner capped at the deck's 68rem and centred, leaving the panel full-bleed. Committed by the blitz orchestrator: the authoring session wedged with the work complete on disk and stopped accepting input.
This commit is contained in:
+2
-6
@@ -148,7 +148,6 @@ function must<T extends Element>(selector: string): T {
|
||||
function main() {
|
||||
const board = must<HTMLElement>(".board");
|
||||
const masterLamp = must<HTMLElement>("#master-lamp");
|
||||
const verdict = must<HTMLElement>("#master-verdict");
|
||||
const version = must<HTMLElement>("#version");
|
||||
|
||||
const master = moduleRefs("master");
|
||||
@@ -193,10 +192,9 @@ function main() {
|
||||
|
||||
if (probe.kind === "unreachable") {
|
||||
masterLamp.dataset.state = "unreachable";
|
||||
verdict.dataset.tone = "fault";
|
||||
verdict.textContent = `daemon unreachable — ${probe.detail}`;
|
||||
version.textContent = "v —";
|
||||
setModule(master, "unreachable", "fault", "down");
|
||||
// the outage detail lives on the board's arr module — the header has no verdict line
|
||||
setModule(master, "unreachable", "fault", "down", probe.detail);
|
||||
for (const refs of Object.values(checks)) {
|
||||
setModule(refs, "off", "idle", "no signal");
|
||||
}
|
||||
@@ -210,8 +208,6 @@ function main() {
|
||||
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}`;
|
||||
|
||||
setModule(master, degraded ? "degraded" : "ok", degraded ? "warn" : "ok", report.status);
|
||||
|
||||
Reference in New Issue
Block a user