Cleanup of old-data fixes; an editor for the Organization page

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 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 23:37:35 -05:00
parent 1da79c128b
commit 43797f38bc
14 changed files with 308 additions and 127 deletions

View file

@ -0,0 +1,43 @@
/* The Organization page (/organization): one row, its blocks and its
volunteering links (055_organization_page.sql). Two block
collections, each its own owner kind, so the editor shows them
apart: the Mission, Vision & Values section, and the Leadership
section (a People block per team, in order). */
import { text, url, blocksChild } from "./columns.js";
export const organizationPage = {
key: "organization_page",
table: "organization_page",
idColumn: "id",
idKind: "slug",
singleton: "organization",
concurrency: "updated_at",
list: {
columns: ["id", "updated_at"],
filters: [],
search: [],
order: "id",
},
columns: [
text("mission_title"),
text("leadership_title"),
text("leadership_blurb"),
text("volunteer_title"),
text("volunteer_blurb"),
],
children: [
{ ...blocksChild("org_page_mission"), key: "mission_blocks" },
{ ...blocksChild("org_page_leadership"), key: "leadership_blocks" },
{
key: "volunteer_links",
table: "organization_page_links",
owner: { column: "page_id" },
order: "sort_order",
columns: [text("label", { required: true }), url("url", { required: true })],
},
],
};