Page management, step 1: every page in a registry, new pages, hidden and disabled

Migration 080 makes site_pages the list of every page: address, title,
intro, Hidden, Disabled (out of menus, sitemap and search) and card order.
site.json's pages and Navigation's page list move into it. Pages ->
Page management (one editor in place of six) makes new pages of sections
at any free address; the admin home opens Pages with a banner and a card
per page. A catch-all route draws whatever page is at an address; the
fixed pages take their words from the registry and can't be deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aidan Dona 2026-10-16 23:19:54 -05:00
parent 56acedf926
commit 1342691f49
36 changed files with 584 additions and 405 deletions

View file

@ -120,49 +120,30 @@ export const PAGES_NAV = {
label: "Pages",
blurb: "What a page shows and in what order.",
children: [
// The header's and footer's links, page titles and hidden pages.
// The banner on the admin home: every page, new ones, the menus.
// Each page's own card follows it there (AdminHome.tsx).
{
to: "/admin/navigation",
label: "Navigation",
blurb: "The header's pages and buttons, the footer's links, each page's title and intro, and which pages are hidden.",
to: "/admin/pages",
label: "Page management",
blurb: "Every page of the site: make new ones, change an address, title or intro, and hide or disable any of them. Then each page's sections.",
banner: true,
children: [
{ to: "/admin/pages/new", label: "New page" },
{ to: "/admin/navigation", label: "Menus (Navigation)" },
],
},
// One record, not a list: the item opens it directly.
// One record, not a list: the item opens it directly. On the
// admin home, the Home page's own card goes here instead.
{
to: "/admin/front_page",
label: "Front page",
blurb: "The hero, its photos or livestream, and which bands the home page draws.",
},
// The site's own pages, in the header's order: each is its
// sections, built in the editor (sitePages.ts).
{
to: "/admin/retreats_page",
label: "Retreats",
blurb: "Its sections: the event carousels and grids, and anything else written for it.",
menuOnly: true,
},
{
to: "/admin/community_page",
label: "Community",
blurb: "Its sections: the blog (and its pinned posts and feeds), groups map, regions and partners.",
},
{
to: "/admin/resources_page",
label: "Resources",
blurb: "Its sections and their content.",
},
{
to: "/admin/organization_page",
label: "Organization",
blurb: "Mission, vision and values, the leadership teams and volunteering, details and contact.",
},
{
to: "/admin/history_page",
label: "History",
blurb: "Its sections: the timeline (its entries are under Data), and anything else.",
},
{
to: "/admin/shop_page",
label: "Shop",
blurb: "The shop's intro page: its sections and the links out to the store.",
to: "/admin/navigation",
label: "Navigation",
blurb: "The header's pages and buttons and the footer's links.",
},
],
};