03 · Setup, branding & backups
The Setup page holds the master settings (one row in the setup table, id main). Saving shows “Setup saved. Task deadlines recalculated if the date changed.”
Sections on the page
| Section | Fields | Notes |
|---|---|---|
| About you | Partner 1 name, Partner 2 name (e.g. Alex, Sam) | Shown on every guest page, in titles and emails |
| Date & locations | Wedding date, Ceremony venue, Reception venue (“Venue name or TBC”) | “Leave the date blank until you’ve decided — the playbook adapts.” Until set, tasks say “Suggested task deadlines appear once set”. |
| Budget ceiling | Total budget ceiling (£), Contingency % (default 10), “Available for costs” | Ceiling is the total. Contingency is worked out separately and never counted as spend. |
| Guest target | Guest target (leave blank until decided) | |
| Priorities & non-negotiables | Your top three priorities; three non-negotiables (“things you will not compromise on”, e.g. “Immediate family at the ceremony”) | “Agree these together — they should guide every decision.” |
| How this works | Explainer | Tasks get suggested deadlines from the wedding date; agreed deadlines for bookings always win. Budget compares forecast against ceiling minus contingency. Guests are day / evening / potential and RSVPs feed the totals. |
| Weekly review | Checklist | e.g. Sunday evening: review the Dashboard, reconcile spending against receipts, process new RSVP responses, agree each partner’s next 1–3 actions |
| Password & access | Change password, or “Cloudflare Access — you’re signed in as …” | See notebook 02 |
| AI assistant access | “Let Claude or ChatGPT read and update the plan”: Create link, Copy link, Revoke | See notebook 26 |
| Data & backups | “Everything in one downloadable file” | Full backup |
What changing Setup does
- Changing the wedding date recalculates every task’s suggested and effective deadline (notebook 06).
- Names, date and venues feed the guest pages on the next request. No redeploy needed. Blank values show neutral placeholders (
[PARTNER NAMES],[wedding date]) so pages are always valid. - Over the email assistant, chat or MCP,
update_setupis a “confirm first” change (notebooks 22, 23).
Backups and exports
| Route | Gives you |
|---|---|
GET /api/export/all |
Download full backup: every table in one file. Leaves out passwords, API keys, tokens, push keys and code-guess rows. |
GET /api/export/budget |
Budget CSV (also the “Export CSV” button on Budget) |
GET /api/export/guests |
Guest list CSV |
GET /api/export/contacts |
Wedding-day contacts CSV |
GET /api/export/run-sheet |
Run sheet CSV |
D1 Time Travel separately keeps minute-level restore points for 30 days.
Branding (Worker variables, worker/wrangler.toml [vars], read by src/brand.js)
| Variable | Example value | Used for |
|---|---|---|
SITE_DOMAIN |
example.com |
Every host and link, and the cookie domain |
WEDDING_NAME |
The Example Wedding |
Page titles, app icon label, emails, guest pages |
WEDDING_SHORT_NAME |
Example |
Also builds ids: service-worker cache example-wedding-v2, guest storage keys example-wedding-guest-code / …-guest-site-unlocked, sample code EXAMPLE-DEMO, MCP server name example-wedding-planner |
WEDDING_HASHTAG |
#TheExampleWedding |
Optional hashtag |
If these are unset everything falls back to neutral “Wedding Planner” wording (with a one-time warning in the log).
Careful: changing WEDDING_SHORT_NAME renames the service-worker cache (every installed phone re-downloads the app once) and the guest storage keys (guests type their access code once more). Pick it before the guest site goes live.
The Worker fills %WP_BRAND_*% placeholders (escaped) into index.html, manifest.webmanifest and sw.js as it serves them.
First-run seeding
On the first signed-in request the Worker adds the 46 default playbook tasks and 9 budget categories (notebooks 06 and 07). It is race-safe: each insert has a WHERE NOT EXISTS guard and a seed_tasks_done flag stops it running again. (This was added after a real double-seed that created 46 tasks × 5.)