From 23784accded053c72636126e1126e27e2b2d4d51 Mon Sep 17 00:00:00 2001 From: marvin Date: Fri, 18 Sep 2026 17:11:03 -0400 Subject: [PATCH] Fix Scheduled Jobs reading the wrong dashboard property path, fix Docker socket tile width (v0.16.6) --- README.md | 2 +- ROADMAP.md | 2 ++ package.json | 2 +- src/public/features.js | 4 ++-- src/public/index.html | 4 ++-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 26f8958..ebb62e1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Docker Architectures Caddy - Version + Version

Why Site Gateway · diff --git a/ROADMAP.md b/ROADMAP.md index 43a3576..274ef32 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -138,3 +138,5 @@ Roughly in priority order: `v0.16.4` rewords the Reload & Restart section's "Docker socket not detected" message so it no longer reads as a duplicate of the Docker container-selection message elsewhere on the System tab. Both checks are independent (one gates the proxy-target container picker, the other gates whether Site Gateway can confirm this container will actually come back up before offering a restart), but they previously used the exact same sentence, which looked like a copy-paste mistake. No behavior change — the Restart button is still disabled under the same conditions as before. `v0.16.5` gives the Docker container-selection status its own `.health-tile` card (matching `BACKUP_PASSWORD` directly above it) instead of a plain paragraph — the two Environment/Integrations rows now look consistent whether Docker's socket is mounted or not. Also adds breathing room between the Reload & Restart buttons and the status line beneath them, which was sitting flush against the button row. + +`v0.16.6` fixes the real cause of the System tab's Scheduled jobs section always showing "No scheduled jobs reported.": the dashboard API nests job data under `dashboard.system.jobs`, but the System tab was reading `dashboard.jobs` — one level too shallow, so it was always undefined regardless of what the server returned. Also fixes the Docker socket status tile rendering wider than the `BACKUP_PASSWORD` tile above it — it wasn't wrapped in the same `.health-grid` container, so it spanned the full panel width instead of matching the two-column tile layout used everywhere else on the System tab. diff --git a/package.json b/package.json index d5e74e3..757540e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "site-gateway", - "version": "0.16.5", + "version": "0.16.6", "private": true, "description": "Site Gateway: simple self-hosted website publishing, reverse proxying, and automatic HTTPS.", "type": "module", diff --git a/src/public/features.js b/src/public/features.js index 42fd773..ca8b3f7 100644 --- a/src/public/features.js +++ b/src/public/features.js @@ -453,7 +453,7 @@ function renderDockerPanel() { if (!section) { section = document.createElement("div"); section.className = "docker-integration-section"; - section.innerHTML = '

Docker container selection

Docker socket
'; + section.innerHTML = '

Docker container selection

Docker socket
'; panel.append(section); section.querySelector("#docker-integration-toggle").addEventListener("change", async event => { const checkbox = event.currentTarget; @@ -574,7 +574,7 @@ async function renderSystemStatus(panel) { version = document.querySelector("#system-version"), jobs = document.querySelector("#system-jobs"), syncStatus = document.querySelector("#system-sync-status"), restartButton = document.querySelector("#system-restart"), restartStatus = document.querySelector("#system-restart-status"); - if (jobs) jobs.innerHTML = (state.dashboard?.jobs || []).map(job => `
${extendedEscape(job.name)}${job.enabled ? `Active \u00b7 ${extendedEscape(job.schedule)}` : "Disabled"}
`).join("") || '

No scheduled jobs reported.

'; + if (jobs) jobs.innerHTML = (state.dashboard?.system?.jobs || []).map(job => `
${extendedEscape(job.name)}${job.enabled ? `Active \u00b7 ${extendedEscape(job.schedule)}` : "Disabled"}
`).join("") || '

No scheduled jobs reported.

'; const envStatus = document.querySelector("#system-env-status"); if (envStatus) { const encryptionAvailable = Boolean(state.config?.backup?.encryptionAvailable); diff --git a/src/public/index.html b/src/public/index.html index a310449..664ee10 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -8,7 +8,7 @@ Site Gateway - + - +