# Changelog All notable changes to this project are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project follows [Semantic Versioning](https://semver.org/). ## [3.9.0] - 2026-12-01 No migration, no new settings or environment variables. Works with any Accounts; nothing changes on a site without Accounts. ### Fixed - **The church's details come from Accounts.** The church profile set only the fonts, corners and footer, so after a change in Accounts (or a demo scenario loaded on a new church) Events kept its own old name, logo and colours while the Website showed the new ones. Now, while Accounts is connected, the profile's name, logo, icon, main and accent colours, email, phone and address win over `org_name`, `logo_url`, `favicon_url`, `primary_color`, `accent_color`, `org_email`, `org_phone` and `org_address` everywhere: the public settings (`GET /api/v2/settings`), and everything that reads the settings cache (emails, WhatsApp, PDFs, 2FA labels). Only what the profile has: no icon or accent there keeps this site's own. `org_tagline` and `secondary_color` stay this site's (`src/accounts/church.ts` `churchSettings`, `utils/settingsCache.js` `setAccountsOverrides`). `church.changed` fetches the profile straight away; disconnecting Accounts brings the site's own back. The look sent to Accounts on a move stays this site's own (`getStoredSetting`). - **PDFs with the church's logo from Accounts.** Tickets, invoices, receipts, certificates and privacy exports could only draw a logo uploaded here. The logo from Accounts is copied into `uploads/accounts` (once per address, when the profile arrives or the first PDF needs it; old copies removed; 2 MB at most; `utils/logoCopy.js`). Only PNG and JPEG can be drawn in a PDF; an SVG logo (the demo churches') isn't copied and the PDFs show the church's name, as before. - A logo address on another `localhost` port (Accounts in development) is no longer rewritten to the API's address; only this site's own uploads are (`resolveToApiOrigin`). ### Changed - **Settings → Organisation and Branding** show the fields Accounts sets read-only, with a link to the church profile in Accounts, and never send them back (`GET /api/v2/settings/all` adds `accounts_managed`, the keys Accounts sets, with Accounts' values). ## [3.8.0] - 2026-11-30 Needs contracts 1.21.0 and `@crosscode/demo` 1.1.0 (built with Events; the `crosscode` script on `main` builds it). **One migration** (`20261130120000_whatsapp_stop`): `User.whatsappOptedOut` and a `WhatsAppStop` table. No new settings. Works with any Accounts; the opt-out reaches the church's other products with Accounts 1.9.0. Part of Church App 1.0.0 (docs/APP-1.0-PLAN.md §8 and §12). ### Changed - **STOP stops all WhatsApp** (APP-1.0-PLAN decision 11), not only news: event updates, tickets, kids check-in messages and two-step codes too (codes go by email). Checked before every message (`sendText`, `sendPdf`, `src/utils/whatsappStop.js`), against the numbers that replied STOP here (`WhatsAppStop`) and the accounts Accounts says opted out (`User.whatsappOptedOut`, from `user.updated`'s `whatsapp_opted_out`). News on WhatsApp is turned off as before. - **A STOP received here is passed on to Accounts** (`whatsapp.optout`, contracts 1.20.0), which keeps it for every product. The reply says how to undo it: the account page in Accounts, or, without Accounts, reply START (which turns it back on here). With Accounts, START only answers with the account page; turned back on there, `user.updated` clears this site's STOP for the number too. STOPP and UITTEKEN (Afrikaans) count as STOP. ### Added - **Demo scenarios** (contracts 1.21.0, APP-1.0-PLAN §12): `set-demo.js --profile=` for the eight (heritage-parish … clean-campus), each built as one of the four kinds of demo but around the scenario's church from `@crosscode/demo`: its people (the same as in Accounts, the Website and the App; leads become the demo staff and event contacts), and its own campuses with people at their home campus. Accounts' part loads first; the demo then links its people to their accounts and never removes them (`people.removeDemo` skips the scenario's own). A small church's events sell to the people it has (the breakfast isn't sold out at St Columba's). The four demos as before. ## [3.7.2] - 2026-11-27 No migrations, no new settings. ### Fixed - **New demo data no longer leaves the old events on the church's Website.** `set-demo.js` truncated `FeedEntry`, so the feed never listed the old events in `deleted` and the Website kept showing them beside the new ones. Now `FeedEntry` is kept and its live entries are marked removed, the links' `lastGoodAt` is reset (their copies were truncated, so the next fetch is a full one), and after loading the script publishes the new events, sends `event.changed` to the linked products and fetches their events back in (`demoFeed`), so the Website's next page load is right. - **Copies of a linked product's events can't stay forever.** The 15-minute `feed-sync` job and "Sync now" fetch the whole list and drop copies that aren't in it (`syncLink(link, now, { full: true })`), so events a sibling lost without listing them in `deleted` (a reseed, a restore) go within 15 minutes. The fetch after an `event.changed` still asks only for what changed. ## [3.7.1] - 2026-11-26 No migrations, no new settings. ### Fixed - **A product installed after this site's last heartbeat can connect straight away.** A connect (in either direction) was refused while the other install wasn't in the cached copy of the Hub's list, refreshed every 15 minutes. So a new Church Website couldn't connect for the event feed until then. Now, for an install it doesn't know, the site sends the Hub a heartbeat to get a fresh list and looks again (at most one such heartbeat a minute, so unknown installs can't make it call the Hub more often). Same change as Accounts 1.7.1 and Website 1.0.2. ## [3.7.0] - 2026-11-24 The church's look from its Accounts (docs/WEBSITE-1.0-PLAN.md §9). **Requires Accounts 1.7.0** (WHATS-NEW.md says so, and the Hub updates Accounts first) for the brand style. No migrations, no new settings. ### Added - **The church's fonts and corners on the public pages.** The backend reads the church profile from Accounts (`GET /api/church/v1`, kept for 10 minutes; `src/accounts/church.ts`) and the public pages get it from the new `GET /api/v2/church` (public). `` gets `brandAttributes(style)` from `@crosscode/ui` and the root layout imports `@crosscode/ui/fonts.css` (self-hosted, so no font is loaded from another site). Body text and h1–h3 use `--cc-font-body` and `--cc-font-heading` when the church picked a pairing, and `--radius` follows the corner style (`soft` is 0.5rem, the same as before). The dashboard and setup screens (`data-cc-staff`) keep the system fonts and 0.5rem. - **`church.changed` from Accounts** at `POST /api/church/v1/changed` (signed with the Accounts link, `LINK_HEADERS`): the profile is fetched again on the next page. Before 3.7.0 this answered 404 and Accounts kept retrying for a week. - **The shared church footer** (`ChurchFooter`, `@crosscode/ui` 0.3.0) on the public pages when Accounts is connected: name and logo, service times, address, contact, social links and links to the church's other sites and the privacy notice, with Terms of Use and cookie settings below. Without Accounts, and on the dashboard (`