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

21
TODO.md
View file

@ -43,13 +43,11 @@
## Sections
- [ ] **Hero text that flips**: the headline's word changes (Next, Now, and other words for our generation), or mirrors.
- [ ] Which words, and are they edited in Front page (a list) or fixed? Answer:
- [ ] What motion: a flip like a card, a fade, letters typing, a mirror? Answer:
- [ ] Which words, and are they edited in Front page (a list) or fixed? Answer: Next cycles through words with an animation, allow us to customize this and the list of words, this should be a text content component that can be used places. also direction from where the words slide in, top or bottom.
- [ ] What motion: a flip like a card, a fade, letters typing, a mirror? Answer: make all of these.
- [ ] Respect reduced motion by showing one word (the first)? [ ] yes
- [ ] "Next generation of New Thought": is that the line it plays on, or a second line under the headline? Answer:
- [ ] **NGU and partners**: "How does this partner with An Awakened Path and antn" (from the notes; unclear).
- [ ] What is "antn" (an organization's name)? Answer:
- [ ] Is this a section to build (eg. on Organization or Partners), or a question to answer in a blog post? Answer:
- [ ] "Next generation of New Thought": is that the line it plays on, or a second line under the headline? Answer: Unity should also be another one of these animated words that cycles through a list.
- Settled 2026-10-16: words are written inline, {Next|Now|Rising}, in the hero headline, section titles, headings and paragraphs; motion (slide, flip, fade, type, mirror), direction (from top or bottom) and seconds per word have site defaults in Site settings, overridden by the hero or a block.
## Page Features
- [ ] **Full profiles**: people get full profile pages. Profile accounts, claiming and visibility are done (Part 2, Accounts); what's left is the page itself.
@ -78,6 +76,10 @@
## Mobile
## Page Editing
- [ ] **Page management revamp**, in steps (answers from 2026-10-16: disabled means out of the menus, sitemap and search with the address still working; admins can make new pages; the front page, the Community blog's settings, the form and embed pages and Privacy/Terms all become pages of sections; section types like the hero, stats, featured cards, calendar and countdown can go on any page, each with its own content).
- [x] Step 1, the page registry (Done, below).
- [ ] Step 2: Feedback, Request, Give, QR codes become pages of sections (a section type each for the form, the giving embed and the QR maker); Privacy and Terms become editable blocks (their data request form a section type).
- [ ] Step 3: section types with their own settings: the Community blog (its slots, pinned posts and feeds move into the section, so it can go on any page), then the front page's hero, countdown, retreats, calendar, stats, timeline, featured cards and connect, and the front page itself a page of sections.
## Admin
@ -85,10 +87,9 @@
- [ ] **Planning Center sync to People**: Planning Center People into the site's people records.
- [ ] One way (Planning Center → site), or both? Answer: to site only
- [ ] Who gets synced: everyone, or a Planning Center list or tag (eg. "Website")? Most people in Planning Center shouldn't have a public page. Answer:a specific list
- [ ] Which fields: name, photo, email, phone, birthday? Which win when both sides differ? Answer:
- [ ] Which fields: name, photo, email, phone, birthday? Which win when both sides differ? Answer: planning center. but show the comparasin (reconcile) for each user. Fields (2026-10-16): name, and email and phone into the private fields. Matching: suggested by email or name, an admin confirms, then remembered by Planning Center's id.
- [ ] How often: a button in Data, hourly, nightly? Answer: manually only
- [ ] Is there a Planning Center API app (personal access token) we can use, and which account owns it? Answer: use the API
- Skipped on 2026-10-16 until the fields (and which side wins) are decided.
- [ ] **New Thought young adult directory**: the tabs are built (Part 2, Page features). Content: make the People tags (eg. Authors, Creators), tag people, and set Community's Directories section to them.
## Navigation
@ -122,6 +123,10 @@
# Part 2: Done
## Page management (branch `page-management`, on top of `page-features`, no PR yet; migration 080, back up the database before deploying)
- [x] **Page registry** (migration 080): every page of the site is a row in Pages → Page management (admins and up): its address, title, intro, Hidden (Not found below viewer) and Disabled (out of the menus, the sitemap and search; the address still works), and the order of its admin card. New pages are made there, as pages of sections at the address given (any address but the admin's, the API's, the records' and the account pages'). The admin home's Pages group opens with a Page management banner (New page, Menus), then a card per page. The six page editors (Retreats, Community...) are one editor now; site.json's `pages` and Navigation's page list moved into the registry and are gone. The fixed pages (Feedback, Request, Give, QR codes, Privacy, Terms, the front page) take their words from it too and can't be deleted.
- [ ] Check in a browser: the admin home's banner and page cards, making a page (address, sections) and opening it, hiding and disabling one (menus, the page signed out), renaming Feedback, the Under page select in Navigation.
## v1.14.0-profiles: page features (branch `page-features`, with `nav-access` under it, no PR yet; migrations 078 and 079, back up the database before deploying)
- [x] **Featured event label** (Mobile): the "Featured event" badge left the headline; from lg up it sits above the event's card it names, and on a phone (the card under the words) it's left out.
- [x] **Site version names**: the tag's words after the number are the version's name, `v1.13.2-region-cards` → "The Region Cards Update" (`src/lib/version.ts`), shown with the number in the site's footer and beside the version in the admin's footer and home.