# Changelog All notable changes to the Cross Events Hub. Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/); versions follow [Semantic Versioning](https://semver.org/). ## [Unreleased] ### Added - **Releases page** — each Cross Events version with what's new in it, and whether it's **urgent** (a security or serious bug fix). Installs on an older version get the notes for every version they'd get, so the church can decide whether to ask for the update; urgent ones can't be put off. The newest release is the latest version (it used to be set on the Settings page; the version that was set there becomes the first release, without notes). - **Notices page** — write a message for every install or chosen ones: a **banner** on their site for site admins and supervisors (from and until a time, e.g. planned maintenance), an **email** to the customer and the site's admin contact, or both. Banners can be edited or ended early. - **Withdrawn update requests** — when a church withdraws its update request, the alert is resolved and you're emailed, so you don't update the site after all. ### Changed - Settings → "Releases and alerts" is now "Alerts"; the latest version follows the Releases page. Needs Cross Events 1.4x with the matching changes to show the notes and notices; older installs keep working and ignore them. ## [1.3.0] - 2026-10-28 ### Added - **Search and pages on every list.** Installs (searchable by church, address or version, with a health filter: critical, warnings, healthy, behind latest), Customers (name, contact, email, phone or site) and Alerts (message or install) each have a search box. Lists show 25 at a time with previous/next. The minute-by-minute refresh on Installs keeps you on the page you're on. An install's History shows 20 at a time. ### Changed - **Settings is split into tabs**: Releases and alerts, Email, Login and security, and Audit log. The open tab is kept in the address (`/settings#email`), so a reload or a link lands on it. The audit log has a search box and shows 30 entries at a time. ### Fixed - **Sign out** stayed at the bottom of the page on long pages, so it scrolled out of view. The side navigation now stays fixed to the window height. ## [1.2.0] - 2026-10-28 ### Added - **Email (SMTP) on the Settings page**: server, port, username, password and from address, stored in the database (the password encrypted with `HUB_ENCRYPTION_KEY`, and never sent back to the browser). **Send test** logs in to the mail server with what's in the form, saved or not, and sends a test email, showing the server's reason if it fails. Tests and their results are in the audit log. ### Changed - SMTP is no longer read from `backend/.env`. On first start, an existing `SMTP_*` setup is copied into Settings once; after that the `SMTP_*` lines can be removed. `ALERT_EMAIL` in `.env.example` was never used (the alert address is a setting) and is gone. - The audit log records that the SMTP password changed, never the password. ## [1.1.2] - 2026-10-27 ### Added - **`scripts/deploy.sh`** to update the Hub on the server: backs up the database, checks out the release, installs, migrates, builds, restarts PM2 and checks both apps answer. If any step fails it goes back to the previous version, restoring the database if new migrations had run. See `deployment.md` §12. ### Changed - `frontend/tsconfig.tsbuildinfo` is no longer kept in git (builds change it). ## [1.1.1] - 2026-10-27 ### Fixed - The install page's Usage card now shows **Campuses** (Off, or On with the number of active campuses). The Hub already stored `campuses` and `campusCount` from the heartbeat but didn't show them; `campusCount` comes from Cross Events 1.43.0+. ## [1.1.0] - 2026-10-27 ### Added - **Update requests** (`docs/hub-protocol.md` §3a): `POST /api/installs/update-request`, signed like the heartbeat. When a church's site admin presses "Request update", the Hub opens an `update_requested` alert on the install (shown under Alerts and in its history) and emails the alert address once; asking again while it's open doesn't email again. The alert resolves itself when the install's heartbeat reports a newer version. `409 UP_TO_DATE` if it's already on the latest release. Installs no longer show the deploy command. ### Changed - The signature check for install requests is shared by the heartbeat and update requests. - `docs/hub-protocol.md` brought in line with the install's copy (licence states from Cross Events 1.41.1). ## [1.0.1] - 2026-10-27 ### Changed - Renamed from Hope Events Hub to **Cross Events Hub**, following the rename of Hope Events to Cross Events. Page titles, alert emails and the authenticator-app label now say Cross Events. Protocol identifiers (`hel1.` licence tokens, `CEH-` licence keys) are unchanged, so existing installs and licences keep working. ### Added - Logo in the sidebar and on the login page; favicon and Apple touch icon. ## [1.0.0] - 2026-10-26 ### Added - **Hub v1** (`docs/hub-protocol.md`, protocol 1): - Install API: public key, register (licence key → install id, secret and signed licence), heartbeat (HMAC-signed, 5-minute clock window) returning a fresh licence token. - Licence tokens signed with Ed25519, valid 30 days, carrying status, expiry, grace days and limits (AI cap for Cross Events 2.0). - Dashboard: installs with health, version (flagged when behind the latest release), licence and last heartbeat; install detail with health, usage, licence, history and notes. - Customers and licences: generate keys (`CEH-XXXX-XXXX-XXXX-XXXX`), set status (active / suspended / revoked), expiry, grace and AI cap, release a licence from a site. - Alerts every 5 minutes — offline, database, stale backup, low disk, errors, failing jobs, pending migrations, licence expiring/expired, behind latest — emailed once when they start. - Heartbeats kept 30 days, then one a day. - Login with two-factor (authenticator app) required, sign out everywhere, password change, audit log.