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/modules/obs.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'static/modules') diff --git a/static/modules/obs.js b/static/modules/obs.js index bcf237b..f7969b8 100644 --- a/static/modules/obs.js +++ b/static/modules/obs.js @@ -55,23 +55,20 @@ async function post(action, body = {}) { } // The dashboard's running slot: what is live, the scene and the elapsed -// time, and a stop for it. +// time. No stop here: a tap opens the OBS tab, so a stray touch cannot end a +// recording. export const busy = (st) => Boolean(st.connected && (st.recording || st.streaming)); export function slot(st, el) { if (!el.firstChild) { el.innerHTML = ` - - `; + `; } const what = st.recording ? (st.paused ? "Recording paused" : "Recording") : "Streaming"; el.querySelector(".what > span").textContent = `${what} · ${st.currentScene ?? ""}`; el.querySelector(".pct").textContent = st.recording ? clock(st.recordingTime) : "live"; - el.querySelector(".meta > span").textContent = - [st.recording ? "recording" : null, st.streaming ? "streaming" : null].filter(Boolean).join(" + "); - el.querySelector(".act").onclick = () => - post(st.recording ? "record" : "stream", { on: false }); + el.querySelector(".meta > span").textContent = st.recording && st.streaming ? "and streaming" : ""; } function bigButton(kind, name, label, on, times) { -- cgit v1.2.3