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

@ -2,11 +2,9 @@ import { Link } from "react-router-dom";
import LegalText, { type LegalPart } from "../components/LegalText.tsx";
import PageShell from "../components/PageShell.tsx";
import { sitePage } from "../lib/site.ts";
import type { PageText } from "./fixedPages.ts";
import { BRAND } from "../lib/color.ts"
/* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage("/terms");
/* Change the date when the wording changes. */
const LAST_UPDATED = "September 28, 2026";
@ -88,6 +86,7 @@ const SECTIONS = [
},
];
export default function TermsPage() {
return <PageShell title={PAGE.title} intro={PAGE.description} sections={SECTIONS} />;
/* Its title and intro: its site_pages row (Pages → Page management). */
export default function TermsPage({ page: PAGE }: { page: PageText }) {
return <PageShell title={PAGE.title} intro={PAGE.description ?? undefined} sections={SECTIONS} />;
}