events 3.9.0, website 1.9.0, accounts 1.10.0: the church's details from Accounts everywhere
- Events: the Accounts profile's name, logo, icon, colours and contact details win over Events' own settings while Accounts is connected (pages, emails, WhatsApp, PDFs); Settings shows them read-only with a link to Accounts. The Accounts logo is copied for PDFs (PNG and JPEG). Fixes Events keeping its old church after a demo scenario load. - Website: a background per homepage section in the church's colours; "More info" instead of "Register" for events without registration; the shared colour field. - Accounts: the shared colour field in Church profile. - @crosscode/ui 0.4.0: ColourField and isHexColour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,39 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user