From 43797f38bca735c23ab0ca167a8c035df71acf62 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Wed, 30 Sep 2026 23:37:35 -0500 Subject: [PATCH 1/3] Cleanup of old-data fixes; an editor for the Organization page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nothing before these changes was ever public, so the fixes kept for older data go: the /leadership redirect (MOVED in routes/pages.js), index.html's move of "ngu-" browser keys to "site-", the boot-time sorting of images from before folders (media.js), and emoji path icons (a path with no named icon shows a dot; migration 055 turns the baseline's seeded emoji into their names). Pages → Organization page (migration 055): a singleton with the Mission, Vision & Values blocks, the Leadership blocks (a People block per team, in order) with a heading and blurb, and Volunteering (title, blurb, links). content_blocks gains the two owner kinds; GET /organization-page serves it. Co-Authored-By: Claude Opus 5.5 --- docs/media-uploads.md | 10 -- index.html | 10 -- server/src/admin-schema.js | 2 + server/src/admin-schema/organizationPage.js | 43 ++++++ server/src/index.js | 7 +- server/src/media.js | 83 +---------- .../src/migrations/055_organization_page.sql | 134 ++++++++++++++++++ server/src/routes/organizationPage.js | 43 ++++++ server/src/routes/pages.js | 14 -- src/data/pathIcons.ts | 4 +- src/lib/adminSchema.ts | 2 + src/lib/adminSchema/organizationPage.ts | 71 ++++++++++ src/pages/admin/adminNav.ts | 5 + src/pages/sections/home/Pathfinder.tsx | 7 +- 14 files changed, 308 insertions(+), 127 deletions(-) create mode 100644 server/src/admin-schema/organizationPage.js create mode 100644 server/src/migrations/055_organization_page.sql create mode 100644 server/src/routes/organizationPage.js create mode 100644 src/lib/adminSchema/organizationPage.ts diff --git a/docs/media-uploads.md b/docs/media-uploads.md index bb2bfe3..a0e025e 100644 --- a/docs/media-uploads.md +++ b/docs/media-uploads.md @@ -38,16 +38,6 @@ Each image's `-640.webp` small copy sits beside it. Video and audio clips (Tools → Video clips) stay in the root. The Media page and every image picker have a tab per folder; a picker opens on its field's folder, and uploads there. - -**Images from before folders** (a bare name in the root) are sorted -once, when the server first starts with this version: a logo or icon -field names it → `logos/`; saved as a preview → `thumbnails/`; anything -else → `images/`. Every record that names it is rewritten to the new -path in one transaction, after the files move (if that fails, the files -move back). The journal says `uploads: moved N image(s) into folders`. -Back up the database and uploads before that first start; nothing is -needed after. - nginx needs no change: `location /uploads/` already serves the folders. ## Files copied in by hand diff --git a/index.html b/index.html index c84d3d0..50ffe59 100644 --- a/index.html +++ b/index.html @@ -13,16 +13,6 @@ and the accessibility choices, for the same reason. -->