From 6821a30b65d36fe3a8cf8f1fcdd9a5054b1d9365 Mon Sep 17 00:00:00 2001 From: Marvin Wade Date: Sun, 20 Sep 2026 16:16:31 -0400 Subject: [PATCH] Prefix Hosted Site file-replace log entries to match other Hosted Site actions --- ROADMAP.md | 2 ++ package.json | 2 +- src/public/index.html | 4 ++-- src/server.js | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index d6dd040..3032375 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -264,3 +264,5 @@ Roughly in priority order: `v0.16.69` closes a gap flagged after reviewing the ZimaOS compose file: `compose.yaml`, `compose.release.yaml`, and `compose.zimaos.yaml` all documented `DATA_DIR_LIMIT_GB` and the `mem_limit`/`cpus`/`cpuset` resource-panel options in README/install.html but never actually carried them as commented-optional entries the way the marketing site's install guide showed -- someone copying a real compose file instead of the docs page got none of that guidance. All three now include the same commented-out block (env-var style in the two static compose files, `${VAR}`-substituted and wired through `.env.example` in `compose.release.yaml`). This also folds in the marketing site's `install.html`, which had drifted out of sync with an already-updated draft and was missing the same options on the user's machine -- resynced so the published guide matches what ships in the repo. `v0.16.70` fixes the Access Logs table (Administration > Logs, "Access requests"), the last page still on its own pre-unification CSS: `.log-table` pinned the Status and Duration columns with `position:sticky` and drew a divider `box-shadow` on each -- a horizontal-scroll affordance none of the other log-type pages use -- and left the Request column at a fixed width instead of stretching to fill the panel, so wide viewports showed an empty gap past Duration. Both are removed: the two trailing columns are back in normal table flow, and Request now takes `width:auto` to absorb the remaining space, matching how Gateway Events, Backup history, and the Audit log already size their last column. Purely a CSS change -- no markup, data, or behavior changes. + +`v0.16.71` fixes a Gateway Events / Audit log message that slipped past v0.16.66: the Hosted Site file-upload route ("Replace files") still wrote the old, un-prefixed `Files replaced for "".` line instead of the `Hosted site "" ...` convention every other Hosted Site action uses (created, enabled/disabled, deleted, and the field-level update summaries). It lived in its own route separate from the four `PATCH` handlers v0.16.66 touched, so it was missed at the time and only noticed once a user pointed out the log entry gave no way to tell which route type it belonged to. Now reads `Hosted site "" files replaced.`, matching the rest. diff --git a/package.json b/package.json index a7bd2ca..e7ca920 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "site-gateway", - "version": "0.16.70", + "version": "0.16.71", "private": true, "description": "Site Gateway: simple self-hosted website publishing, reverse proxying, and automatic HTTPS.", "type": "module", diff --git a/src/public/index.html b/src/public/index.html index f6870d5..b67e8e8 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -8,7 +8,7 @@ Site Gateway - + - + diff --git a/src/server.js b/src/server.js index 5230016..796a486 100644 --- a/src/server.js +++ b/src/server.js @@ -2192,7 +2192,7 @@ app.post("/api/sites/:id/files", upload.single("files"), async (req, res, next) if (!req.file) return res.status(400).json({ error: "Choose a ZIP file or index.html." }); await installUpload(site, req.file); await syncCaddy(); - recordActivity(`Files replaced for “${site.name}”.`); + recordActivity(`Hosted site “${site.name}” files replaced.`); res.json(publicSite(site)); } catch (error) { next(error); } });