From d0ef71dc2e15860fb99e8d49810dc6d91ec76f79 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 19:58:53 +0100 Subject: fix(dashboard): review fixes - The OBS slot has no one-tap stop: a tap opens the OBS tab, so a stray touch cannot end a recording. - Scrolling lines are measured once their slot is on screen, and every slot again when one comes or goes. - The lock watcher survives a missing pidof. - Trend gradients are in user space, so a flat line still paints. - Uptime under an hour shows minutes. - The shell no longer imports panel files for the modules the dashboard draws. - The spec matches the build VM and OBS slots and the error wording. Co-Authored-By: Claude Opus 5.5 --- static/app.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'static/app.js') diff --git a/static/app.js b/static/app.js index c296b90..79010bf 100644 --- a/static/app.js +++ b/static/app.js @@ -105,14 +105,17 @@ function mountTab(name, panel, section) { poll(name, panel.interval ?? 1, (st) => panel.update?.(st, wrap)); } +// Modules with no panel file: dashboard.js draws them. +const DRAWN = ["stats", "tablet", "llm", "actions"]; + async function boot() { const r = await fetch("/api/modules"); if (!r.ok) return; // Every panel's code at once; then mount in the server's order, so the // tabs do not shuffle with whichever import lands first. const names = (await r.json()).map(({ name }) => name); - const loaded = await Promise.all(names.map((name) => - import(`./modules/${name}.js`).then((m) => m.default, () => null))); + const loaded = await Promise.all(names.map((name) => (DRAWN.includes(name) ? null + : import(`./modules/${name}.js`).then((m) => m.default, () => null)))); names.forEach((name, i) => { const panel = loaded[i]; if (!panel?.tab) return; // no tab: drawn by the Dashboard, if at all -- cgit v1.2.3