Page editors: Retreats, Community, Resources, Organization and History built from sections
Each page is now a list of sections edited in Admin → Pages: a title (30 characters at most, for the side nav), URL ID, blurb and accent, its own content blocks, and an optional preset (Community blog, groups map, region list, partner cards, events, timeline, NGU's details). Migration 056 seeds every page as the code drew it and moves the Organization editor's blocks and volunteering into its sections. The Community blog's settings move into the Community editor. The header, footer and side nav read each page's sections from the API. The admin engine reads and writes nested collections to any depth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4a1d6fd6e9
commit
9daf7b1a4f
29 changed files with 972 additions and 938 deletions
18
src/App.tsx
18
src/App.tsx
|
|
@ -49,11 +49,9 @@ const lazyPage = (load) =>
|
|||
throw err
|
||||
}),
|
||||
)
|
||||
const Retreats = lazyPage(() => import("./pages/Retreats.tsx"))
|
||||
const Community = lazyPage(() => import("./pages/Community.tsx"))
|
||||
const Organization = lazyPage(() => import("./pages/Organization.tsx"))
|
||||
const Resources = lazyPage(() => import("./pages/Resources.tsx"))
|
||||
const History = lazyPage(() => import("./pages/History.tsx"))
|
||||
// Community, Retreats, Resources, Organization and History: each
|
||||
// built in the admin from sections.
|
||||
const SitePage = lazyPage(() => import("./pages/SitePage.tsx"))
|
||||
const Feedback = lazyPage(() => import("./pages/Feedback.tsx"))
|
||||
const Request = lazyPage(() => import("./pages/Request.tsx"))
|
||||
const Giving = lazyPage(() => import("./pages/Giving.tsx"))
|
||||
|
|
@ -91,9 +89,9 @@ export default function App() {
|
|||
{/* Layout renders the nav once and swaps page content into <Outlet /> */}
|
||||
<Route element={<Layout />}>
|
||||
<Route index element={<Home />} />
|
||||
<Route path="retreats" element={<Retreats />} />
|
||||
<Route path="retreats" element={<SitePage key="retreats" id="retreats" />} />
|
||||
<Route path="/events/:id" element={<EventDetail />} />
|
||||
<Route path="community" element={<Community />} />
|
||||
<Route path="community" element={<SitePage key="community" id="community" />} />
|
||||
<Route path="/regions/:id" element={<OrganizationDetail />} />
|
||||
<Route path="/groups/:id" element={<OrganizationDetail />} />
|
||||
<Route path="/partners/:id" element={<OrganizationDetail />} />
|
||||
|
|
@ -102,9 +100,9 @@ export default function App() {
|
|||
<Route path="/awards/:id" element={<AwardDetail />} />
|
||||
<Route path="/people/:id" element={<PersonDetail />} />
|
||||
<Route path="/blog/:id" element={<BlogPost />} />
|
||||
<Route path="organization" element={<Organization />} />
|
||||
<Route path="resources" element={<Resources />} />
|
||||
<Route path="history" element={<History />} />
|
||||
<Route path="organization" element={<SitePage key="organization" id="organization" />} />
|
||||
<Route path="resources" element={<SitePage key="resources" id="resources" />} />
|
||||
<Route path="history" element={<SitePage key="history" id="history" />} />
|
||||
<Route path="feedback" element={<Feedback />} />
|
||||
<Route path="request" element={<Request />} />
|
||||
<Route path="qr" element={<QrCodes />} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue