Page management, step 3: section types with their own settings; the front page as sections

Migration 083 gives the section types that need more than blocks their
own tables (hero, slides, countdown, stats, paths, featured cards, the
Community blog's slots, pinned posts and feeds) and turns the front page
into Home's sections: the hero, then its bands in order. Any section can
be hidden. The Front page editor, its tables and the Community page's
are gone; /api/front-page and /api/community-blog fold into the page's
sections (sectionData.js). The admin engine reads and writes a child
collection's own side tables and gated nested collections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aidan Dona 2026-10-17 00:34:56 -05:00
parent f33c0008fe
commit f1a0b06ac2
46 changed files with 1525 additions and 1339 deletions

View file

@ -18,9 +18,12 @@
regions or groups row should exist)
children ordered collections, replaced wholesale on save;
`readRole` on one hides it from lesser roles, as
on an extension (an organization's contacts)
on an extension (an organization's contacts). A
child may have `extensions` of its own (a page
section's settings for its type), and its nested
collections a `when` on its values
singleton the one id this entity ever has; the engine
refuses create and delete (see front_page)
refuses create and delete (see navigation)
undeletable ids the engine refuses to delete (the pages the
site draws in code)
check (db, id) => void, run after a save has written
@ -52,7 +55,6 @@ import { people } from "./admin-schema/people.js";
import { teams } from "./admin-schema/teams.js";
import { awards } from "./admin-schema/awards.js";
import { timeline } from "./admin-schema/timeline.js";
import { frontPage } from "./admin-schema/frontPage.js";
import { blogPosts } from "./admin-schema/blog.js";
import { siteSettings } from "./admin-schema/siteSettings.js";
import { siteNav } from "./admin-schema/siteNav.js";
@ -74,7 +76,6 @@ export const ENTITIES = {
teams,
awards,
timeline,
front_page: frontPage,
blog_posts: blogPosts,
pages,
navigation: siteNav,