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

@ -41,15 +41,14 @@ also take a separate `http2 on;`.
## The bundle
Only the home page is in the main bundle. Every other page, and the
whole admin, loads when first visited (`src/App.tsx`). A tab still
running an old build that asks for a page removed by a deploy reloads
once to pick up the new one.
Every page, the front page included, and the whole admin, loads when
first visited (`src/App.tsx`). A tab still running an old build that
asks for a page removed by a deploy reloads once to pick up the new
one.
The home page asks for events and the timeline alongside its own data
(`src/pages/Home.tsx`), and the server tells the browser to fetch
`/api/front-page` and the first hero photo while the JS downloads
(`preload` in `server/src/pageMeta.js`).
The server tells the browser to fetch the front page's data
(`/api/site-pages/home`) and its hero's first photo while the JS
downloads (`preload` in `server/src/pageMeta.js`).
## Images