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>
1.8 KiB
Planning Center
Admin → Data → Planning Center (admins and up) brings one Planning Center People list into the site's people, by hand (migration 085). One way: nothing is sent to Planning Center.
Setup
-
In Planning Center, make (or pick) a People list of the people who should be on the site, eg. "Website". Its number is in its address:
people.planningcenteronline.com/lists/1234567. -
Admin → Panel → Site settings → Planning Center → People list: that number.
-
A personal access token: https://api.planningcenteronline.com/oauth/applications → Personal Access Tokens → New, as an account that can see that list. Put its two halves on the service (
systemctl edit ngu-api):[Service] Environment=PCO_APP_ID=... Environment=PCO_SECRET=...then
systemctl restart ngu-api. (PCO_BASEoverrides the API's address, for testing.)
Using it
Compare with Planning Center fetches the list. Each member shows:
- the site person they're linked to, or one suggested by the same email (private or public), else the same name;
- for that person, each field that would change: name, sort name ("Last, First"), private email and private phone, the site's value beside Planning Center's.
For each, choose Link to the suggestion (and whether to update it from Planning Center), link to someone else, make a new person (unpublished, to fill in and publish later), or Skip. Apply writes what you chose, all at once; nothing changes before. Planning Center wins where both have a value; a blank in Planning Center leaves the site's. Once linked, a person is matched by Planning Center's id from then on, whatever their name or email becomes.
Code: server/src/planningCenter.js (the API, the comparison, the
writes), server/src/routes/pco.js, src/pages/admin/AdminPco.tsx.