From 07e729ae248fce81097e396b248dc91783153507 Mon Sep 17 00:00:00 2001 From: iris Date: Mon, 1 Jun 2026 23:34:52 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20last=20frontend=20style=20nits=20?= =?UTF-8?q?=E2=80=94=20http=20case=20in=20common.js,=20setTimeout=20wrappe?= =?UTF-8?q?rs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - common.js fetchStateFile: 'HTTP' -> 'http' — last uppercase instance in the frontend (tabs.js, app.js, logs.js already fixed in prior PRs) - tabs.js: two redundant arrow wrappers in setTimeout dropped — setTimeout(() => f(), N) -> setTimeout(f, N) where f takes no args --- frontend/packages/dashboard/src/common.js | 2 +- frontend/packages/dashboard/src/tabs.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/packages/dashboard/src/common.js b/frontend/packages/dashboard/src/common.js index 161bf773..22f15719 100644 --- a/frontend/packages/dashboard/src/common.js +++ b/frontend/packages/dashboard/src/common.js @@ -387,7 +387,7 @@ export const Panel = (() => { async function fetchStateFile(path) { const resp = await fetch('/api/state-file?path=' + encodeURIComponent(path)); const text = await resp.text(); - if (!resp.ok) throw new Error(text || ('HTTP ' + resp.status)); + if (!resp.ok) throw new Error(text || ('http ' + resp.status)); return text; } // A 2-tab file preview: a "rendered" tab (default) + a raw-text tab. diff --git a/frontend/packages/dashboard/src/tabs.js b/frontend/packages/dashboard/src/tabs.js index 14312497..35b36e94 100644 --- a/frontend/packages/dashboard/src/tabs.js +++ b/frontend/packages/dashboard/src/tabs.js @@ -1281,7 +1281,7 @@ window.marked = marked; saveBtn.title = txt; } else { saveBtn.textContent = '✓'; - setTimeout(() => fetchAndRenderToolGroups(), 800); + setTimeout(fetchAndRenderToolGroups, 800); } } catch (err) { saveBtn.textContent = 'err'; @@ -3218,7 +3218,7 @@ window.marked = marked; } // Hold the flash briefly so the operator can read it before the // refresh wipes the row in place. - setTimeout(() => { refreshSchedules(); }, 1500); + setTimeout(refreshSchedules, 1500); } catch (err) { alert('fire-now failed: ' + err); restoreBtn();