From 6aedf21bf6dc495fdda89abadbd383fb3ea9e15e Mon Sep 17 00:00:00 2001 From: Karim Gabriele Varano Date: Tue, 30 Jun 2026 19:52:57 +0200 Subject: [PATCH] Squashed 'cms/core/' changes from 8f4068d..9676bb0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 9676bb0 core: update-check is token-free (running vs vendored cms/core version) 59fb691 core: System panel fix + settings (update-check, self-service password, admins) 67bcb6a docs: HANDOVER — kgva LIVE on core (Variant A, in-place CT130); both sites on core git-subtree-dir: cms/core git-subtree-split: 9676bb0264a7caf254ccbc461bc803a6b3583127 --- HANDOVER.md | 4 +-- admin/src/App.jsx | 68 +++++++++++++++++++++++++++++++++++++++ admin/src/api.js | 2 ++ api/package.json | 2 +- api/src/index.js | 2 ++ api/src/routes/account.js | 38 ++++++++++++++++++++++ api/src/routes/system.js | 51 +++++++++++++++++++++-------- api/test/system.test.js | 1 + 8 files changed, 152 insertions(+), 16 deletions(-) create mode 100644 api/src/routes/account.js diff --git a/HANDOVER.md b/HANDOVER.md index afd5a9f..c9750c0 100644 --- a/HANDOVER.md +++ b/HANDOVER.md @@ -12,7 +12,7 @@ `api/src/plugin-manager.js`, `api/src/plugins/dialog/index.js` + their tests. - **Run tests:** `cd api && npm install && node --test` → **44 green**. `node_modules` is git-ignored; the fresh clone needs `npm install` once. -- **Status:** stages 1–9 DONE (6 = full schema-driven editor; 9 = kgva on core, DB-less, staged-verified, repo pushed). openbureau runs on core (dev CT 134); kgva LIVE site still static (unchanged) with the CMS dormant in-repo. **Remaining: deliberate cutovers** — (a) redeploy openbureau with the schema editor after Karim eyeballs it; (b) provision the kgva-core CMS container + Caddy switch (his call, repoints a live domain). Original stage-5 note kept below for history. +- **Status:** stages 1–9 DONE; openbureau + kgva BOTH LIVE on core. openbureau on dev CT134 (schema editor + supabase); kgva LIVE at karimgabrielevarano.xyz via core (Variant A: CMS serves the site; CT130 rebuilt in-place — Docker + kgva-cms on :8081, nginx :80 proxies to it and keeps /media, static timer disabled, Caddy untouched). CAVEAT: kgva GIT_PUBLISH=false → edits on CT130 disk, not git-backed (enable GIT_PUBLISH + creds to fix). Rollback for kgva: restore nginx .static.bak + re-enable kgva-deploy.timer + stop kgva-cms. Original stage-5 note kept below for history. - **Immediate next action (historic):** stage 5 + 5.5 **DONE** on the branch (commits `c4230a4` cutover, `5e06337` DDL, `a93d11a` migration runner). Plugin-manager singleton (`api/src/plugins.js`) wired into `index.js`/`stats.js`/`publish.js`, hard-coded @@ -153,7 +153,7 @@ openbureau's extras become plugins (first: `dialog`); kgva enables none. stack's migrate service owns db/schema.sql incl. dialog). Deployed to dev CT 134 and FULL write-verified: login/list/edit/preview/publish/dialog all identical, no git divergence (GIT_PUBLISH=false). Rollback image `cms-cms:rollback` kept. -9. [DONE (repo + staged verify); live cutover PENDING] kgva consumes core. In +9. [DONE — LIVE on core (Variant A)] kgva consumes core. In `karim/kgva` (git.kgva.ch, main 51a94b8): `cms/core` = core subtree, `cms/kgva.config.js` (project/page/section, auth:'local', no plugins), `docker-compose.yml` builds the core image (Hugo 0.163.3, no VITE_SUPABASE_URL → local-auth admin), `cms/seed-admin.mjs`, diff --git a/admin/src/App.jsx b/admin/src/App.jsx index 3f86b72..b43b042 100644 --- a/admin/src/App.jsx +++ b/admin/src/App.jsx @@ -389,6 +389,31 @@ function Profile({ onMsg }) {