Planning Center: compare a People list with the site's people and apply what an admin picks
Migration 085 adds people.pco_id and Site settings' list. Data -> Planning Center fetches the list, suggests matches (linked, same email, same name), shows each field that would change (Planning Center wins), and applies the chosen links, updates and new unpublished people in one transaction. Needs PCO_APP_ID and PCO_SECRET. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a10ff6d75f
commit
e8aab4d7ec
12 changed files with 607 additions and 7 deletions
10
TODO.md
10
TODO.md
|
|
@ -78,12 +78,6 @@
|
|||
## Admin
|
||||
|
||||
## Data
|
||||
- [ ] **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: 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
|
||||
- [ ] **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
|
||||
|
|
@ -117,7 +111,9 @@
|
|||
|
||||
|
||||
# Part 2: Done
|
||||
## Page management (branch `page-management`, on top of `page-features`, no PR yet; migrations 080 to 084, back up the database before deploying)
|
||||
## Page management (branch `page-management`, on top of `page-features`, no PR yet; migrations 080 to 085, back up the database before deploying)
|
||||
- [x] **Planning Center sync** (Data, migration 085, `docs/planning-center.md`): Data → Planning Center (admins and up) fetches one Planning Center People list (Site settings → Planning Center) and compares each member with the site: linked, or suggested by the same email, else the same name, with the fields that would change (name, sort name, private email and phone) side by side. For each: link (and update; Planning Center wins), link to someone else, make a new unpublished person, or skip; Apply writes it all at once. One way, by hand. Off until `PCO_APP_ID` and `PCO_SECRET` are on the service. Tested against a stand-in for Planning Center's API only.
|
||||
- [ ] Check with the real list: the token, a list number, a compare, an apply.
|
||||
- [x] **Rotating words** (Sections, migration 084): text typed as `{Next|Now|Rising}` cycles through its choices, in the hero's headline, section titles (bands' too), headings, paragraphs, callouts and quotes, eg. `{Next|Now} Generation of {Unity|New Thought}`. Five motions (slide, flip like a card, fade, type letter by letter, mirror turning round), from the top or the bottom, a number of seconds per word: defaults in Site settings → Animated words, and a hero or a block can set its own. Each word's space is the longest's, so the line doesn't jump. Less motion (the system's setting, or reading mode) shows the first word, still, and screen readers always get the first; menus, tab titles, search descriptions and newsletters use the first word too (`src/components/RotatingWords.tsx`, `src/lib/words.ts`).
|
||||
- [ ] Check in a browser: each motion and direction, a group in a section title and a paragraph, the space it keeps on a phone, reduced motion.
|
||||
- [x] **Section types with their own settings, and the front page as sections** (migration 083): the front page is Home in Page management, a page of sections like the others: its hero first, then its bands in their old order (hidden ones stay hidden), each a section type that can go on any page with content of its own: Hero (words, buttons, photos, video, livestream or event), Event countdown, Event calendar, Numbers, Featured cards, Connect nav, and a Timeline shown as the rail of featured moments. The Community blog's slots, pinned posts and feeds moved into its section, so it can go on any page too. Any section can be Hidden. The Front page editor is gone (its fields are each section's), and so are its tables and the Community page's. On the front page the bands look as they did and any other section is a band in the same style; on other pages a band brings its own heading. The National Retreats band became an Events section with an All retreats button. The newsletter's "featured cards" come from the front page's featured card sections. Admin engine: a child collection can have its own side tables and gated nested collections.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue