Content management
Everything is managed via the Payload admin panel at /admin (production: your Vercel URL + /admin).
Adding a godchild
- Go to Godchildren → Create
- Fill in
name,slug(lowercase, no spaces),theme_color - Leave
tokenblank — it is auto-generated on save - Set
active: true - Assign a patron saint if one exists
- Add
allowed_sources— these control which gospel readings appear in the chapelet detail (e.g.st-luc,st-matthieu) - Save → copy the URL:
https://your-domain/[slug]/[token]
Share the URL with the godchild. That URL never changes unless you regenerate the token.
Deactivating a godchild
Setting active: false immediately makes all their URLs return 404. Useful if a phone is lost.
Adding prayers
Source of truth: recueil.md at repo root. Copy content from there.
- Go to Prayers → Create
- Set
category: base— standard prayers (Notre Père, Je vous salue Marie, etc.)chapelet— rosary-specificangelus,intercession,litanie— as labelled in the recueil- Paste
contentusing the rich text editor - Upload
audioif you have a recording
Adding mysteries
There are 20 mysteries (5 per type × 4 types). Add them once.
- Go to Mysteries → Create
- Set
mystery_type(joyeux / lumineux / douloureux / glorieux) andorder(1–5) - Fill
name,fruit,introduction - Set
days— the weekdays this mystery type is traditionally prayed: - Joyeux → lundi, samedi
- Lumineux → jeudi
- Douloureux → mardi, vendredi
- Glorieux → mercredi, dimanche
- Add
readings— each reading needs asource_key(e.g.st-luc) andsource_labelplus the text - The
source_keymust match what's listed in each godchild'sallowed_sources
Adding a brique
A brique is a short note or audio message pushed to one or all godchildren.
- Go to Briques → Create
- Write
titleandcontent - Set
type:textoraudio(upload file if audio) - Set
target: leave blank for all godchildren, or pick one - Set
scheduled_dateif you want it to appear on a specific day - Toggle
published: truewhen ready
Adding a saint
- Go to Saints → Create
- Fill
name,slug,feast_day(format:MM-DD, e.g.01-28) - Add
descriptionand upload animage - Add embedded
prayersspecific to that saint
Sending a push notification
Push is triggered manually from code (no admin UI yet). The godchild must have: - Installed the app via "Add to Home Screen" (iOS 16.4+ required) - Accepted the push permission prompt shown on the dashboard
The push subscription is stored automatically in their Godchildren record after they accept.