- GET /api/admin/ports names each port's install (church, product, web/API, domain); the port list shows it, linked to the install, and says which ports are held for a port check. - A church server's hand-written frpc tunnels are listed as taken (note: frpc tunnel "<name>" on <server>) on each frp-read/frp-write, and taken off when they leave the file. - Central servers: allow_ports must cover the port range and every listed port outside it. An allow_ports alert names what's missing and the value to set; the frp card warns, and Edit has "Use the Hub's allow_ports" (INI or TOML). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
870 lines
50 KiB
Markdown
870 lines
50 KiB
Markdown
# 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]
|
||
|
||
## [2.20.0] - 2026-11-23
|
||
|
||
No migration. `GET /api/admin/ports` and a server's `frp` state carry more fields; nothing is removed.
|
||
|
||
### Added
|
||
|
||
- **The port list says what each port is for**: the church, the product and web or API, linked to the
|
||
install, with its domain (and "uninstalled, free from …" once it's gone). Ports held for an
|
||
install's port check say so.
|
||
- **A church server's hand-written frpc tunnels are listed as taken**, named after the tunnel
|
||
(`frpc tunnel "games-night" on church-1`), each time its frp config is read. A tunnel taken out of
|
||
frpc is taken off the list at the next read. Ports of installs and ports marked by hand are left
|
||
as they are.
|
||
- **frps's allow_ports is checked against the port list.** It must allow the Hub's port range and
|
||
every listed port outside it, so installs never need an frps restart. When it doesn't, the
|
||
central server gets an alert (and the alert email) naming the missing ports and the value to set,
|
||
the frp config card says so, and **Edit → Use the Hub's allow_ports** puts that value in the file
|
||
(INI or TOML) to save with a restart.
|
||
|
||
## [2.19.0] - 2026-11-23
|
||
|
||
**Migration:** a new table, `AgentRelease`. No API change for existing calls.
|
||
|
||
### Added
|
||
|
||
- **The server agent's releases.** A release source can be for the **Server agent** (the defaults have
|
||
it: the monorepo's `agent@` tags, notes in `apps/agent/WHATS-NEW.md`). The Releases page shows them
|
||
with their notes and how many servers run each, under **Server agent** and **Everything**. A saved
|
||
list of sources from before gets an **Add the agent's source** button.
|
||
- **Update agent picks a release**: Latest by default, the newest 10 with Show older versions, the
|
||
version running on the server marked and not pickable, and the chosen version's notes under it.
|
||
The Hub refuses a version that isn't an agent release (while it knows of any).
|
||
- The Servers list and a server's page say when a newer agent is out ("1.5.0 available").
|
||
|
||
### Changed
|
||
|
||
- The Releases page's **Everything** list is newest first by release date (it was by version number).
|
||
|
||
## [2.18.0] - 2026-11-23
|
||
|
||
Frontend only: no migration, no API changes.
|
||
|
||
### Changed
|
||
|
||
- **Releases are picked from a list, not typed.** New install and Move onto the monorepo now list the
|
||
product's releases, like the install's Update popup and the Updates page: first Latest (with its
|
||
version), then the newest 10, with **Show older versions** for the rest. Each is marked latest,
|
||
running now (when updating an install) or with what it needs ("needs Accounts 1.2.0").
|
||
- Move onto the monorepo lists Cross Events releases from 2.2.0, the first in the monorepo.
|
||
|
||
## [2.17.0] - 2026-11-23
|
||
|
||
Frontend only: no migration, no API changes. With 2.16.0, every add and edit that was an action on a
|
||
page is a popup; forms that are the page itself (the Settings tabs, the Updates planner) stay as they are.
|
||
|
||
### Changed
|
||
|
||
- **A server's page**: Configuration shows its values, and Edit opens them in a popup. **Update
|
||
agent** is a popup from the Actions card.
|
||
- **frp config** shows the file read-only, with Where the file is and Read now on the card; Edit
|
||
opens the file in a popup with Restart afterwards, the two-factor code and Save on the server.
|
||
- **Ports & defaults**: the install defaults, port range and central server IP show as values with
|
||
an Edit popup; **Mark as taken** is a button on the port list that opens a popup.
|
||
- **An install's page (Installs)**: Clear public key is a popup with the two-factor code, and the
|
||
notes show as text with an Edit popup. Its message is under the header.
|
||
- **An invoice** always shows its lines and totals; Edit (drafts and approved invoices) opens them
|
||
in a popup, so Approve no longer asks you to save first. **Void** asks for its reason and
|
||
**Refund** for its note in a popup instead of the browser's prompt.
|
||
|
||
## [2.16.0] - 2026-11-23
|
||
|
||
Frontend only: no migration, no API changes.
|
||
|
||
### Changed
|
||
|
||
- **Every add and edit on the list pages is a popup**, like the customer and install pages: Add
|
||
server, Add customer, New install, Link existing, New notice and Edit notice, Add release and Edit
|
||
release. Each asks before discarding what you have typed, shows its error by its button, and the
|
||
page keeps one message under its header.
|
||
- **Add server** shows the join command in the same popup; closing it before Copy asks first, since
|
||
the command is shown only once.
|
||
- **Release sources** shows the sources as a table, with Sync now and Use the defaults on the card;
|
||
Edit opens the sources and the access token in a popup, and saving syncs straight away.
|
||
- **One-off invoice on Billing is a popup**, with the church to choose (on the customer page it is
|
||
for that church). `/billing/invoices/new` opens it.
|
||
|
||
## [2.15.0] - 2026-11-23
|
||
|
||
Frontend only: no migration, no API changes.
|
||
|
||
### Changed
|
||
|
||
- **An install's page is a header and tabs**, like the customer page. The header shows the church,
|
||
product and status, with tiles for the site (and whether it has registered), version, server,
|
||
ports and last heartbeat. Below are **Jobs**, **Settings (.env)** and **Exports** (when there are
|
||
any); the tab is in the address (`?tab=settings`).
|
||
- **Every action is a popup.** Schedule update (the header's button, or the Version tile), move
|
||
onto the monorepo, mark as a demo site / load demo data, uninstall, remove from the Hub and
|
||
remove the record open over the page, the rare and destructive ones from the ⋯ menu. Each asks
|
||
before discarding what you've typed, and shows its error by its button. The confirmations
|
||
(type the short name, two-factor code, the final "are you sure") are unchanged.
|
||
- **Settings (.env) shows the values; Edit opens one file in a popup** to change, remove or add
|
||
variables, then save and restart (or rebuild).
|
||
- **Banners for what needs attention**: not registered yet, no heartbeat for a day (with Remove
|
||
from the Hub), and an uninstall already planned for this install (with a link to its job).
|
||
- One message under the header for the whole page, shared with the customer page.
|
||
|
||
## [2.14.0] - 2026-11-23
|
||
|
||
Frontend only: no migration, no API changes.
|
||
|
||
### Changed
|
||
|
||
- **The customer page is a summary and three tabs.** The header shows the church's products, what
|
||
it owes, the next invoice (date and estimated amount), its address and AI allowance; click a tile
|
||
to open it. Below are **Overview** (details, billing schedule, address, AI, sites),
|
||
**Products** and **Invoices and payments**. The tab is in the address (`?tab=products`), and
|
||
links from Billing open Invoices and payments.
|
||
- **Every add and edit is a popup.** Details, schedule, address, AI allowance, add product, edit
|
||
product, notice of licence change, record payment and one-off invoice open over the page, which
|
||
shows only read views. A popup closes on Esc or a click outside, asking first if you've changed
|
||
something; its error shows by its Save button. Record payment is a popup on Billing and the
|
||
invoice page too.
|
||
- **One card per product.** The licence (tier, expiry, grace, notes) and its billing (charged
|
||
from, custom price) are one card with one Edit and one Save. Suspend, revoke, reactivate and
|
||
release are in the card's ⋯ menu, away from the everyday fields.
|
||
- **One details form.** The contact details and the billing details (billing email, postal
|
||
address, founding) are edited together.
|
||
- **One message** under the header for the whole page, instead of one per section.
|
||
- **History as one timeline.** Invoices, payments, notices of licence change and billing emails
|
||
in date order, with a filter; picking one kind shows its own table, sortable as before.
|
||
- Archive / Restore moved into the ⋯ menu by the customer's name.
|
||
|
||
## [2.13.0] - 2026-11-23
|
||
|
||
Migration `20261123120000_alert_cleared` (one column on `InstallEvent`).
|
||
|
||
### Added
|
||
|
||
- **Clear alerts by hand.** Each open alert has a Clear link, and Alerts → Open has Clear all. A
|
||
cleared alert leaves the open list and the dashboard count but stays open to the 5-minute
|
||
checks, so it isn't raised or emailed again while the problem lasts; when the problem goes away
|
||
it's resolved as usual, and if it comes back it's a new alert. Clearing is in the audit log.
|
||
- **Sort invoices, payments and churches.** Click a column heading on Billing (invoices, payments,
|
||
churches) or a customer's invoices to sort by it, again to turn it round; a customer's payments
|
||
have a sort menu. The choice is remembered in this browser. Invoices now show the due date in a
|
||
column of its own.
|
||
|
||
### Fixed
|
||
|
||
- **A small scrollbar beside tab rows** (Settings, Billing, Servers → Updates). The active tab's
|
||
underline overflowed the row by a pixel, so the browser made it scroll; the rule under the tabs
|
||
no longer takes up room.
|
||
|
||
## [2.12.0] - 2026-11-23
|
||
|
||
Needs agent 1.5.0 (`agent@1.5.0`) to uninstall one product of a church; vendors contracts 1.16.0.
|
||
Migration `20261123090000_customer_archive` (one column on `Customer`).
|
||
|
||
### Fixed
|
||
|
||
- **Uninstalling one product removed the whole church, and the Hub didn't know.** The uninstall
|
||
job named only the church, so the agent removed every product of it; the Hub marked only the
|
||
one install removed, showed the other as live, and its own uninstall later failed. Now the
|
||
export and uninstall name the product (agent 1.5.0). A report of a whole-church uninstall (no
|
||
products, or the script saying nothing is left) marks every product of the church on that
|
||
server removed, frees their ports, refuses their licences' heartbeats and cancels what was
|
||
still planned for them. With an older agent, uninstalling one product of a church with others
|
||
is refused (update the agent first).
|
||
|
||
### Added
|
||
|
||
- **A second product while another is being uninstalled.** The uninstall form asks: add it to
|
||
that run (one export and one uninstall for both, at that time; at least 4 hours away, so the
|
||
church gets notice) or give it its own time. The last product to go removes the whole church
|
||
(its folder and app user) when it runs; the form says so beforehand and the email afterwards.
|
||
Accounts goes last: refused while the church's other products stay, and not planned before
|
||
their uninstall. A failed or cancelled run puts every product it named back to live.
|
||
- **Remove a stale install from the Hub.** An install without a heartbeat for 24 hours shows as
|
||
"No heartbeat" and gets "Remove from the Hub" (type its short name): for a site already gone
|
||
from its server (uninstalled by hand, server rebuilt). Nothing runs on the server. New:
|
||
`POST /api/admin/deployments/:id/forget`.
|
||
- **Archive customers.** Archive or restore on the customer's page; archived customers are left
|
||
out of the list, pickers and the dashboard count, and listed under Customers → Archived
|
||
(`GET /api/admin/customers?archived=1`). Not while it still has installs on a server, sites
|
||
sending heartbeats, or billing on.
|
||
- **Several email addresses** for a customer's email and billing email, with a + button. Invoices,
|
||
statements and receipts go to every billing address. Stored as one comma-separated value, so
|
||
no migration.
|
||
|
||
### Changed
|
||
|
||
- Statements show an R0 invoice's amount (R0.00) instead of a blank.
|
||
|
||
## [2.11.0] - 2026-11-21
|
||
|
||
Needs agent 1.4.0 on the servers (`agent@1.4.0`) for the new parts; vendors contracts 1.15.0.
|
||
Migration `20261121110000_server_frp_config` (two columns on `Server`).
|
||
|
||
### Added
|
||
|
||
- **Ports checked on both servers before an install.** A new install reserves a few candidate
|
||
ports and asks every central server and the church server which are free (`probe-ports`): on
|
||
the central server, nothing listens on it and frps's allow_ports has it; on the church server,
|
||
nothing listens on it and frpc's config doesn't use it. The install waits until both have
|
||
answered, then runs on the first pair free on both (an Accounts-first batch gets two pairs). Busy
|
||
ports go in the port list as taken. Too few free: another round with new ports, three at most;
|
||
then, or when a check fails or is missed, the install is called off, its ports freed, and an
|
||
email says why. The central agent must be online to start an install. With an agent older than
|
||
1.4.0 on either server, the install runs as before, with a warning.
|
||
- **frp config on each server's page.** Where frps's (central) or frpc's (church) config is (set a
|
||
path, or let the agent find it), what's in it, and changing it in the Hub: secrets never leave
|
||
the server (shown as `***hidden***`, kept on save), the new file is checked with `frp* verify`,
|
||
a backup is kept, frp is restarted, and the old file goes back if frp doesn't start (an email
|
||
then). Two-factor, as for uninstalls. New: `POST /api/admin/servers/:id/frp/read` and `/frp/write`.
|
||
|
||
### Changed
|
||
|
||
- The central server's alerts name the file the agent reads (frps.toml too) instead of
|
||
"frps.ini", and a server whose agent finds no frp config gets an alert saying to set where it is
|
||
(instead of "proxy_bind_addr not set", which was only because the file wasn't where it looked).
|
||
|
||
## [2.10.0] - 2026-11-20
|
||
|
||
### Changed
|
||
|
||
- **Every email the Hub sends is laid out as Cross Events' and Accounts' are**
|
||
(`src/utils/emailLayout.js`): the Cross Code header with the logo, a white card with a heading,
|
||
a button for the one thing to do (with the link written out under it), coloured notes, tables,
|
||
a job's steps as ticks and crosses, log lines and nginx config in a code block, and a footer that
|
||
says why the email came. Each still has a plain-text version. That covers the job reports
|
||
(install, update, adopt, demo data, export, .env change, uninstall, batch stopped, missed job,
|
||
purge), the central server check, installs found on a server, install and server alerts, update
|
||
requests, an invoice that couldn't be sent, the SMTP test, notices to churches, and every email to
|
||
a site admin (update planned, reminder, done, didn't go through, postponed, cancelled, site ready,
|
||
data download, closing, maintenance), whose What's New notes are now a list. Billing emails keep
|
||
their own layout. `mail.sendMail` attaches the logo to any HTML that shows it.
|
||
- **The FastPanel email** (and the install's page) gives the backend location as nginx config to
|
||
paste, with `location ^~ /api/`. FastPanel's static-file handling adds a regex location for file
|
||
extensions that wins over a plain `/api`, so `/api/uploads/…/logo.png` reached the frontend and
|
||
logo uploads failed (Cross Events 3.6.1). deployment.md §8 uses `^~` for the Hub's own site too
|
||
(`/api/…/statement.pdf`).
|
||
|
||
### Added
|
||
|
||
- **Proxy done checks a file under /api** (`/api/proxy-check.png`): if the frontend answers
|
||
(`X-Powered-By: Next.js`), the site isn't made live and the page says to use `location ^~ /api/`.
|
||
|
||
## [2.9.0] - 2026-11-20
|
||
|
||
Needs `@crosscode/contracts` 1.13.0 (vendored). The checks need Cross Events 3.5.0 (older ones don't
|
||
report how they sign in).
|
||
|
||
### Added
|
||
|
||
- **Whether people can sign in.** A Cross Events install's page shows its sign-in (its own or
|
||
through Accounts), whether it's linked to the church's Accounts, and the last sign-in that
|
||
failed. New alerts: **signs in through Accounts but isn't linked** (critical: nobody can sign
|
||
in), **linked to an Accounts that isn't this church's**, **a sign-in failed** in the last 24
|
||
hours (with the reason the site saw), and on an Accounts install, **nothing is linked to it**
|
||
while the church has Cross Events. They show on the dashboard, the install and Alerts, and new
|
||
ones are emailed as other alerts are.
|
||
|
||
## [2.8.0] - 2026-11-20
|
||
|
||
Needs `@crosscode/contracts` 1.12.0 (vendored) and, on each server, agent 1.3.0.
|
||
|
||
### Added
|
||
|
||
- **An install's .env on its page** (Servers → Installs → an Events or Accounts install, "Settings
|
||
(.env)"). "Read from the server" queues an `env-read` job; the values show when the agent has
|
||
answered (the panel checks every few seconds), with the addresses first (`FRONTEND_URL`,
|
||
`APP_BASE_URL`, `BACKEND_URL`, `NEXT_PUBLIC_API_URL`; `ACCOUNTS_URL`, `ACCOUNTS_API_URL`).
|
||
Secrets never reach the Hub: only whether they're set.
|
||
- **Changing values and restarting.** Edit, add or remove plain values in one file and "Save and
|
||
restart" (an `env-set` job). The backend's file restarts the backend (or not, if you untick it);
|
||
the frontend's file rebuilds and restarts the frontend. The server keeps a copy of the file and
|
||
puts it back if the site doesn't answer afterwards; the panel then says so. After a change the
|
||
file is read again by itself. Secrets, values the server generates and values the apps can't
|
||
start with (TRUST_PROXY=TRUE) are refused. One change per install at a time (`ALREADY_PLANNED`).
|
||
The audit log records the names changed, not the values.
|
||
- `env-read` and `env-set` in the Jobs page's type filter.
|
||
|
||
## [2.7.1] - 2026-11-19
|
||
|
||
### Fixed
|
||
|
||
- **A double click could plan an update twice.** The update buttons (Updates page, an install's
|
||
Schedule / Update now) and every other action on an install's page are off from the click until
|
||
the Hub answers ("Working…"). The server also refuses a second update for an install that already
|
||
has one planned or running (`ALREADY_PLANNED`: cancel that job first), so a second tab can't
|
||
either.
|
||
|
||
## [2.7.0] - 2026-11-19
|
||
|
||
### Added
|
||
|
||
- **Emergency updates "as soon as possible".** An emergency update (still with a reason and your
|
||
two-factor code) can run at the agent's next poll, within a minute, instead of at a time at least
|
||
15 minutes away, which stays as the other choice. The church is emailed "is being updated now" and
|
||
sees a banner saying so. (ROADMAP-v3 decision 30, changed 2026-11-19.)
|
||
- **An event on now holds an emergency update for a second yes.** From the church's Cross Events
|
||
heartbeat (`stats.live`, Events 3.2.0+: events with a session or a one-day event on now, and
|
||
check-ins in the last hour; a heartbeat older than 30 minutes doesn't count), an emergency update
|
||
that would take such a site down is refused with what's on (`LIVE_EVENT`) until you confirm. An
|
||
Accounts update looks at the church's Events, whose sign-in it takes down. The audit log records it.
|
||
|
||
### Changed
|
||
|
||
- Contracts 1.10.0 (`backend/vendor/`), so the heartbeat keeps `stats.live`.
|
||
|
||
## [2.6.1] - 2026-11-19
|
||
|
||
### Fixed
|
||
|
||
- **Jobs → Failed answered 500 every time.** 2.6.0's status list had a `timed_out` that isn't a job
|
||
status (the database has `expired`), so Postgres refused the query. The list now matches the
|
||
JobStatus enum exactly (a test checks it), Failed shows failed and expired jobs, and a status or
|
||
product the database doesn't know is dropped or refused (400) instead of reaching it.
|
||
- **Searching alerts answered 500:** it searched the alert level (an enum) as text; it now matches
|
||
level names instead.
|
||
- Checked against Postgres: every jobs filter and the alerts and audit searches.
|
||
|
||
## [2.6.0] - 2026-11-19
|
||
|
||
### Added
|
||
|
||
- **Jobs: every status and a page at a time.** Filters for Succeeded and Cancelled (with Planned and
|
||
running, Failed, Rolled back, Missed and Refused), a product, a job type and a search on the
|
||
church or domain; paged on the server (`?page`, `?pageSize`, at most 200), instead of the last 200.
|
||
- **Everything is paged.** The audit log and alerts on the server (with a search there), instead of
|
||
the last 300 / 200; releases, installs on servers, servers, the port list, and each server's and
|
||
install's jobs a page at a time. Installs on servers show each install's product, with a filter
|
||
and a search.
|
||
- **Installs added on a server are found.** A `status` job (Servers → a server → Check status and
|
||
find installs) adds any church product it reports that the Hub has no install record for (its
|
||
domain, ports and version from the server), tied to the site registered at that domain, with its
|
||
ports on the port list. A registered site with no install record has its customer's server asked
|
||
by itself, at most once a day.
|
||
- An install's page shows its registered site and last heartbeat, or that it hasn't registered.
|
||
|
||
### Changed
|
||
|
||
- **Updates are for one product at a time.** The Updates page asks for Cross Events or Accounts
|
||
first, then shows only that product's live installs and its own releases (a list, not a text
|
||
box), and every install page offers only its product's releases. The server refuses installs of
|
||
more than one product, a release of another product (`accounts@…` for Events), and a product that
|
||
doesn't match the page.
|
||
- **A Cross Events update says what happens to Accounts.** `crosscode deploy` always updates a
|
||
church's Accounts too, to its newest release unless told otherwise; the Hub now always tells it:
|
||
the version it runs (nothing changes), or the newest Accounts when the Events release needs a
|
||
newer one (and the confirmation says so). A church without Accounts gets it installed first in the
|
||
same batch (`add-product`, on `accounts.<the rest of the domain>`) when the release needs it.
|
||
- A site the Hub installed is tied to its registration on every heartbeat, not only the first.
|
||
|
||
### Fixed
|
||
|
||
- The update check compared the release object, not its version, with the church's other products,
|
||
so a requirement could be missed.
|
||
|
||
## [2.5.0] - 2026-11-19
|
||
|
||
For Cross Events 3.0 (crosscode-platform `docs/EVENTS-3.0-PLAN.md` §9), which signs in through the
|
||
church's Accounts. Contracts 1.8.0 (`backend/vendor/`).
|
||
|
||
### Added
|
||
|
||
- **New install meets the release's requirements.** A release that needs Accounts ("— requires
|
||
accounts 1.1.0" in its notes, as Cross Events 3.0) installs the church's Accounts first when it
|
||
has none: two installs in one batch, Accounts (an `install` job, or `add-product` next to the
|
||
church's other products) and then the product (`add-product`), which only runs once Accounts
|
||
succeeded. If Accounts fails, the product's record fails and its ports are freed. Accounts goes
|
||
on `accounts.<the rest of the domain>` (`events.grace.co.za` → `accounts.grace.co.za`) unless the
|
||
form's new **Accounts domain** says otherwise. A church whose Accounts is older than required is
|
||
refused ("Update its Accounts first"), as is a release no Accounts release is new enough for.
|
||
Cross Events 3.0 connects itself to the church's Accounts once both are listed, so no one has to
|
||
press Connect.
|
||
|
||
## [2.4.0] - 2026-11-19
|
||
|
||
### Added
|
||
|
||
- **Demo sites.** On a Cross Events install's page: **Mark as a demo site** (typing its short
|
||
name), then **Load demo data** with a choice of demo (small church, events and conferences,
|
||
weekly ministry, three campuses), typing the short name again. It queues a `seed-demo` job:
|
||
the agent runs `crosscode demo`, which takes a backup, replaces the data (keeping the site
|
||
settings and the install's admin) and restarts the site. You're emailed the result. Refused for
|
||
sites not marked as demo, and for agents before 1.2.0 (`AGENT_TOO_OLD`). Demo sites show a
|
||
"demo" tag in the installs list. Audit log: `install_marked_demo`, `install_unmarked_demo`,
|
||
`demo_seed_queued`.
|
||
- Migration `20261119140000_deployment_demo` (`Deployment.isDemo`). `@crosscode/contracts` 1.7.0.
|
||
|
||
## [2.3.3] - 2026-11-19
|
||
|
||
### Fixed
|
||
|
||
- **A server setting the apps can't start with is refused up front.** With `TRUST_PROXY=TRUE` in
|
||
a server's configuration, an Events install built for minutes and then failed: the backend
|
||
crashed at startup (`invalid IP address: TRUE`) and the install was removed. Saving a server's
|
||
configuration now refuses such a value, saying what to use instead (`loopback` behind frp), and
|
||
installs and updates are refused (`CONFIG_INVALID`) while a configuration saved before this
|
||
still has one. The rules are `agent.checkEnvValue` in `@crosscode/contracts` 1.6.0 (now
|
||
vendored); the crosscode script checks again on the server.
|
||
|
||
## [2.3.2] - 2026-11-19
|
||
|
||
### Fixed
|
||
|
||
- **Installs stuck as "Uninstalling".** An uninstall runs the export first and is cancelled if the
|
||
export fails, but the install was left "uninstalling" for good. It now goes back to live (or
|
||
waiting for the proxy), as it does when an uninstall job fails or is cancelled by hand. Before,
|
||
those two always set it to live.
|
||
- **Uninstall was offered for a failed install.** A failed install has already removed what it made on
|
||
the server, so its export always failed ("church.env is missing"). Uninstall is now refused for a
|
||
failed install, and for one still installing. A failed install's page offers **Remove the record**
|
||
instead (`DELETE /api/admin/deployments/:id`), which frees the short name. This also clears
|
||
records already stuck "uninstalling" when their install had failed.
|
||
|
||
## [2.3.1] - 2026-11-18
|
||
|
||
### Fixed
|
||
|
||
- **"The agent hasn't been heard from" while it was only busy.** An agent running a job (an
|
||
install, update or export can take 30 minutes) neither polls nor sends stats until the job is
|
||
done (agents before 1.1.1), so after 5 minutes the Hub raised a critical alert and emailed that
|
||
the server was down. A server running a job the Hub handed it now counts as busy, not down,
|
||
until that job's time limit (plus 10 minutes) has passed; after that the job is failed and
|
||
silence alerts again. Servers show "Running a job", and New install no longer calls such a
|
||
server offline. Agent 1.1.1 also keeps sending stats during a job.
|
||
|
||
For Accounts 1.0.0 (crosscode-platform `docs/ACCOUNTS-1.0-PLAN.md` §9). Needs agent 1.1.0 on the
|
||
church servers for Accounts installs. Contracts 1.5.0 (`backend/vendor/`).
|
||
|
||
### Added
|
||
|
||
- **New install offers Accounts.** A church's first product can be Accounts (an `install` job with
|
||
its free `CCA-` licence). A church already on that server (the same short name) gets the new
|
||
product added next to its others: an `add-product` job (`crosscode add`), handled like an install
|
||
(waits for the proxy, FastPanel email, ports freed if it fails). Refused for another customer's
|
||
short name, a church whose products are on another server, or while its other install hasn't
|
||
finished.
|
||
- Accounts' env template (`envTemplates/accounts.json`) for releases without one.
|
||
|
||
Unchanged (since Hub 2.0): a church gets its Accounts licence with its first product, and Accounts
|
||
is never billed. Accounts releases come in once a release source for `accounts@` tags is added
|
||
(Releases page).
|
||
|
||
## [2.2.0] - 2026-11-18
|
||
|
||
For Cross Events 2.4.0 (crosscode-platform `docs/EVENTS-2.4-PLAN.md` §1): installs move to
|
||
protocol v2 without their licence key. Contracts 1.4.0 (`backend/vendor/`).
|
||
|
||
### Added
|
||
|
||
- **A public key on the v2 heartbeat** (`publicKey`). The Hub saves it when the install has none,
|
||
so an install that registered with v1 (every Cross Events before 2.4.0) becomes a v2 install its
|
||
siblings can link to. The reply says `publicKeyStatus`: `saved`, `matches` or `mismatch`. A
|
||
different key never fails the heartbeat (the licence keeps refreshing): the saved key stays and
|
||
an alert opens on the install.
|
||
- **Clear public key** on an install's page (two-factor again, audited as
|
||
`install_public_key_cleared`), for a site whose server was restored or rebuilt with a new key.
|
||
The page also shows whether the site's key is saved.
|
||
|
||
## [2.1.1] - 2026-11-18
|
||
|
||
### Fixed
|
||
|
||
- **Adopt**: the church's address goes to `crosscode adopt --address`. crosscode can only work it
|
||
out from an `events.<address>` domain, so adopting a site like events-demo.crosscode.co.za failed
|
||
on the server. The form now asks for the address (required for such domains) and the Hub refuses
|
||
to plan the move without it.
|
||
- **Link existing**: the short name is a name (`hope`), not a folder; the form and the error say so.
|
||
- A **Check status now** on the central server works with agent@1.0.1 (crosscode-platform), which
|
||
answers it itself; agent@1.0.0 failed it with `spawn /usr/local/bin/crosscode ENOENT`.
|
||
|
||
## [2.1.0] - 2026-11-17
|
||
|
||
Servers and the agent (crosscode-platform `docs/AGENT-1.0-PLAN.md`, phase 1d), tested end to end on
|
||
a VM with a church server, a central server and agent@1.0.0. **Before deploying, see
|
||
`deployment.md` → "Upgrading to 2.1"** (a new job-signing key).
|
||
|
||
### Added
|
||
|
||
- **Servers**: Add server gives a one-time join command (valid an hour) for the server agent. Each
|
||
server's page shows CPU and RAM over 24 hours, 7 days and 90 days with spikes marked, disks,
|
||
versions, PM2 processes, its sites, jobs and alerts, and its configuration (database, TRUST_PROXY;
|
||
stored encrypted and sent only sealed to that server's key). Stats are kept per minute for 7 days
|
||
and per hour for 90 days.
|
||
- **Agent API** (`/api/agent/v1`): join, poll, stats, report and export upload, signed with each
|
||
server's Ed25519 key. Jobs are signed with a separate job key and built when the agent picks them
|
||
up; each server gets one job at a time; a job not picked up in its window is **missed** and never
|
||
runs late.
|
||
- **New install**: customer, short name, domain, site admin and server (with its free RAM, CPU and
|
||
sites); the Hub makes the licence, picks two ports from the port list, checks the server's
|
||
configuration against the release's env template, and the agent installs. The report and the
|
||
FASTPANEL steps come by email; **Proxy done** checks the public addresses and sends the church its
|
||
welcome email.
|
||
- **Updates**: scheduled at least 4 hours ahead, or as an emergency (15 minutes, a reason, 2FA),
|
||
for one install or a batch that runs one at a time and stops at the first failure. Churches get an
|
||
email with what's new, a banner, a reminder an hour before, and the outcome.
|
||
- **Link existing** installs, and move 2.1.x ones onto the monorepo (an `adopt` job).
|
||
- **Uninstall** (2FA and the short name): the church's data is exported first, encrypted on the
|
||
server with a key that only travels in the emailed link (the Hub passes it on once and doesn't
|
||
store it), then the site is removed; the final backup is purged after 30 days (put off once).
|
||
- **Server alerts**: agent silent, disk over 85%, RAM over 90% for 5 minutes, a process restarting,
|
||
frpc down, and on the central server frps down or `proxy_bind_addr` missing.
|
||
- Pages: Servers, Installs, Updates, Jobs (each job's steps and log), Ports & defaults, and the
|
||
public download page that decrypts an export in the browser.
|
||
|
||
### Changed
|
||
|
||
- `@crosscode/contracts` 1.3.0 (agent jobs, reports, stats, env templates, church export).
|
||
|
||
### Fixed (in the VM test)
|
||
|
||
- A failed install's short name can be used again, and so can an uninstalled one.
|
||
- The servers settings (install defaults, port range, central server IP) are saved.
|
||
- Update and closing banners reach a site the Hub installed (its registration is linked to it).
|
||
|
||
## [2.0.2] - 2026-11-17
|
||
|
||
### Fixed
|
||
|
||
- **An invoice that was paid and then refunded can be voided**. Before, Void
|
||
was refused while any payment was recorded against the invoice, and the only way round it was to
|
||
remove the payment, which lost the record that money came in and went back. A payment now has
|
||
**Refund** (invoice page → Payments): it stays on record with its receipt, no longer counts as
|
||
paid, and the statement shows the refund going back out. Void is allowed when no payment on the
|
||
invoice is left unrefunded. Migration `20261118120000_payment_refunds` (two new columns).
|
||
|
||
## [2.0.1] - 2026-11-17
|
||
|
||
### Added
|
||
|
||
- **AI use in tokens for churches**: the AI status (`/api/installs/ai/status`, and
|
||
the `status` in every AI reply) also carries `usedInputTokens` / `usedOutputTokens` (this month,
|
||
all the church's installs) and `capInputTokens` / `capOutputTokens`, an estimate of the allowance
|
||
(half the cap priced as input and half as output, at the current model price, exchange rate and
|
||
markup). Cross Events 2.2.0 shows only these and the percentage; rand stays on the Hub. The cents
|
||
fields are unchanged, so older installs keep working (protocol §3b).
|
||
|
||
### Changed
|
||
|
||
- **Default AI markup is 15%** (was 40%). Only applies where Settings → AI has no markup saved; a
|
||
saved value, and a customer's own markup, are kept.
|
||
|
||
## [2.0.0] - 2026-11-05
|
||
|
||
**Cross Code Hub**: every product a church has — Cross Events, Accounts, Church Website, Church App —
|
||
in one place (ROADMAP-v3 phase 1; built in steps, `docs/HUB-2.0-PLAN.md`). **Before deploying, see
|
||
`deployment.md` → "Upgrading to 2.0"** (run `check-hub2` first). Cross Events 2.1.x installs keep
|
||
working unchanged (protocol 1). Protocol 2 is described in `docs/hub-protocol.md` §6.
|
||
|
||
### Added
|
||
|
||
- **Products** (step 1): a licence and an install are for one product: Cross Events, Accounts,
|
||
Church Website or Church App (existing ones are Cross Events). Generate a licence for a product
|
||
on the customer's page; keys have the product's prefix (`CEH-` Events as before, `CCA-`
|
||
Accounts, `CCW-` Website, `CCP-` App).
|
||
- **One licence per product per customer** that isn't revoked (a revoked one can be replaced),
|
||
enforced by the database. Un-revoking a licence whose product has another open licence is
|
||
refused.
|
||
- **Accounts licence** (free, never invoiced) created automatically with a customer's first other
|
||
product licence.
|
||
- `npm run check:hub2`: before deploying 2.0, lists customers with two open licences (the 2.0
|
||
migration stops on them, naming them). Run it against production first.
|
||
- `@crosscode/contracts`, committed as `backend/vendor/crosscode-contracts-<version>.tgz` (1.1.0).
|
||
- **Protocol v2** (step 2) next to v1 (`utils/protocol.js`; `/api/public-key` lists `[1, 2]`):
|
||
register and heartbeat say which `product` they are (it must match the licence, else
|
||
`409 WRONG_PRODUCT`), register sends the install's public key, the heartbeat's stats are per
|
||
product, and the replies add `linkedProducts`: the church's other installs in use that have a
|
||
public key (product, id, address, key; nothing else). v2 bodies are checked against the
|
||
contracts' schemas (`400 INVALID_REQUEST` says what's wrong); v1 requests and replies are exactly
|
||
as before. Tests put every contract sample through the routes and check the replies against the
|
||
contract.
|
||
- Licence tokens carry `customerId` and `product` (Cross Events 2.1 ignores them).
|
||
- **Releases per product** (step 3): each product has its own releases and latest version (an
|
||
install is offered its own product's releases and shows as behind against its own latest).
|
||
**Release sources** on the Releases page: per product, one or more repositories with a tag prefix
|
||
and a notes file. The defaults: every product from `crosscode-platform` (`events@1.2.3`,
|
||
`accounts@…`, `website@…`, `app@…`, notes in `apps/<product>/WHATS-NEW.md`) plus Cross Events
|
||
before the move from the repository set until now (`v1.2.3` tags). `contracts@` tags are ignored.
|
||
A product's releases are only removed when every one of its sources was read and found tags, so
|
||
an unreachable source never wipes releases; a product with no source is managed by hand.
|
||
- **Requirements between products**: `— requires accounts 1.2.0` in a release's notes heading.
|
||
Request update answers `409 REQUIREMENT_NOT_MET` (saying what's needed) until the church's
|
||
install of that product runs that version or later, counting every release the update would
|
||
bring. The install page shows what's missing; the Releases page shows each release's needs.
|
||
Protocol v2 replies carry them (`requires`, contracts 1.1.0); v1 replies are unchanged.
|
||
- **Billing per customer** (step 4): one invoice per church per period for all its products. The
|
||
billing schedule (cycle, start, next invoice, review) is the church's; each licence has the date
|
||
it's **charged from** and the day it's invoiced up to. Prices for the **Church Website** (R99, 5 GB
|
||
included) and the **Church App** (R99 to R999 on active members, Network priced per church), next to
|
||
the Cross Events tiers. **Bundles** 15% off two products and 25% off three, after the founding
|
||
prices; Accounts is free and never counts. **Extra website storage** R20 per 5 GB a month, never
|
||
discounted (12 months' price when billed yearly). A product added to a billed church gets its
|
||
**free month**, then the days before its first full period are charged by the day. The annual
|
||
review moves each product's tier (Cross Events on event income, the App on active members), with
|
||
a notice of licence change per product. Customer page → Billing: the schedule, each product's
|
||
billing and the **next invoice** as it would be drafted today (`GET …/customers/:id/preview`).
|
||
Invoices, PDFs and emails name the products. Invoices made before 2.0 (one per licence) stay as
|
||
they were, and their drafts can still be recalculated.
|
||
- **The church's address** (step 5), one for all its products: own domain (R0), Cross Code address
|
||
(`<church>.crosscode.co.za`, R10 a month) or domain included (R25 a month; other endings at cost
|
||
as a custom price). Charged once per invoice and never discounted (12 months' price when yearly).
|
||
For a domain included: its renewal date, an email to the alert address 30 days before (once per
|
||
renewal), and **Renewed** on the customer page to move it on a year.
|
||
- **AI per church** (step 6): the monthly AI cap and markup are the church's (customer page →
|
||
Details), shared by all its sites: a call from any of them counts what all of them used this month,
|
||
under one lock so two calls at once can't both take the last of it. The licence token carries the
|
||
church's cap. Settings → AI shows each site's use with its product and the church's cap.
|
||
- **Dashboard** (step 7): monthly recurring revenue (each billed church's full month after
|
||
discounts, add-ons included, yearly divided by 12), overdue invoices, and per product: installs,
|
||
latest version, how many are behind or critical, and licences by status. The install page lists
|
||
the church's other products and whether this site is told about them (Linked products, protocol
|
||
v2), next to what an update needs (step 3).
|
||
|
||
### Changed
|
||
|
||
- **Cross Code Hub** in the dashboard, emails, PDFs and new two-factor set-ups (the `hel1.`
|
||
licence-token prefix stays: it's part of the protocol).
|
||
- Installs register with protocol v1 only with a Cross Events licence (`409 WRONG_PRODUCT`
|
||
otherwise); the other products register with protocol v2 (step 2).
|
||
- Migrations `20261104132032_products`, `20261104150000_releases_per_product`,
|
||
`20261104170000_billing_per_customer` (moves each billed licence's schedule to its customer,
|
||
so billing carries on unchanged), `20261104190000_customer_address`,
|
||
`20261105080000_ai_per_customer` (each church takes its licence's AI cap and markup).
|
||
|
||
## [1.7.0] - 2026-11-03
|
||
|
||
### Added
|
||
|
||
- **Billing** (README "Billing"; nav → Billing). Invoices are drafted automatically **14 days**
|
||
before each licence's invoice date and emailed to the alert email with the draft PDF for
|
||
**approval**; approved invoices go out **on their date from 08:00** SA time. Drafts and approved
|
||
invoices can be edited (lines, dates, recipient, notes), recalculated, sent early, put back to
|
||
draft or voided; one-off invoices too. Unapproved invoices whose date has come are emailed about
|
||
once and wait.
|
||
- **Annual tier review**: the first invoice for a period on or after a licence's review date uses
|
||
the site's 12-month event-income band (Cross Events 2.0.2+) and can move the tier up or down;
|
||
approving it emails the church a **notice of licence change**, and the tier changes when the
|
||
invoice goes out. Notices can also be sent by hand (customer page → Billing). No band reported →
|
||
the tier stays and the draft says so.
|
||
- **Founding churches** (customer page → Billing, or Billing → Churches and founding): 35% off on
|
||
every tier, as its own invoice line; since-date and a note.
|
||
- **Payments** with **receipts** (REC-…), against an invoice or on account; invoices show paid,
|
||
part paid, overdue. **Statements** for any dates, as a PDF or emailed.
|
||
- Every billing email is **styled HTML with a PDF** (invoice / tax invoice, receipt, statement,
|
||
notice of licence change), logged per customer with any send error.
|
||
- Licences: billing cycle (none, monthly, yearly at 10 months' price), billing start, next invoice
|
||
date, next review, custom monthly price. Customers: billing email, postal address, founding.
|
||
- Settings → **Billing**: on/off, business and banking details, VAT (off: plain invoices; on:
|
||
prices VAT-inclusive, tax invoices with the VAT number), draft days, send hour, payment terms,
|
||
number prefixes, invoice footer.
|
||
- Migration `20261103111645_invoicing`; dependency `pdfkit` 0.17.2. Tests `tests/billing.test.js`
|
||
(rules, dates, statements, and that the server's tiers match `frontend/src/lib/tiers.ts`);
|
||
`scripts/sample-billing-pdfs.js` writes sample PDFs.
|
||
|
||
### Changed
|
||
|
||
- `sendMail` takes `html`, `attachments`, `replyTo` and `fromName` (alerts are unchanged).
|
||
|
||
## [1.6.2] - 2026-11-03
|
||
|
||
### Added
|
||
|
||
- **Billing tiers.** The install page's Licence box shows the plan, the site's **event income over
|
||
the last 12 months** (`income.eventIncome12m`, sent by Cross Events 2.0.2+; no donations or
|
||
sponsorships) and the tier that income falls in, with its price and founding price. It notes
|
||
when the licence's plan is a different tier. The tiers are in `frontend/src/lib/tiers.ts`
|
||
(the public prices are in crosscode-site `src/data/pricing.mjs`: change both together).
|
||
- **Plan on the licence card** (customer page): Trial or one of the eight tiers (Seed to Network).
|
||
A licence still on the old `standard` plan keeps it until it's changed.
|
||
|
||
### Changed
|
||
|
||
- Protocol doc: 14 income bands up to `over R10 000 000` (Cross Events 2.0.2), and
|
||
`eventIncome12m`. Older installs still send the old bands; their `over R100 000` can't be placed
|
||
in a tier.
|
||
|
||
## [1.6.1] - 2026-10-30
|
||
|
||
### Changed
|
||
|
||
- **Claude Sonnet 5.5 is the default AI model** (was Haiku 5.5), after a trial of all five helpers
|
||
on both: Haiku made factual mistakes in a report summary, over-counted feedback themes and
|
||
misspelt words in messages. A Hub that already saved its AI settings keeps its model until it's
|
||
changed on Settings → AI.
|
||
- **Settings → AI has a model list** — Sonnet 5.5, Haiku 5.5 and Opus 5.5 with their list prices,
|
||
or another model ID typed in. Choosing one fills in its prices (still editable, with a note and
|
||
"Use the list price" when they differ). Blank prices use the built-in ones.
|
||
- Cache reads are metered at each model's own price (Opus 5.5 reads at half the usual rate).
|
||
|
||
## [1.6.0] - 2026-10-30
|
||
|
||
### Added
|
||
|
||
- **AI for Cross Events 2.0** (protocol §3b) — sites call AI through the Hub, which holds the Claude
|
||
API key, checks each licence's monthly cap and meters every call. `POST /api/installs/ai/status`
|
||
tells a site whether to show its AI buttons (hidden at a R0 cap, disabled once the month's
|
||
allowance is used up); `POST /api/installs/ai/complete` runs one helper call (Claude Haiku 5.5,
|
||
instructions prompt-cached, optional JSON schema). Both are signed like the heartbeat.
|
||
- **Metering in rand:** real cost from the tokens, the model's price and an exchange rate set in the
|
||
Hub; charged = real × (1 + markup). The cap counts charged rand. The worst case of each call is
|
||
held against the cap in a locked transaction before Claude is called, so calls at the same moment
|
||
can't push a month over; failed calls cost nothing, refused or cut-off answers cost what they used.
|
||
Only the install, helper, tokens, cost and time are kept — never prompt or response text.
|
||
- **Settings → AI:** Claude API key (encrypted), model, prices, exchange rate, default markup,
|
||
**Test the saved key**, and every site's use per month (real cost, charged, profit).
|
||
- **Licences:** an AI markup override next to the AI cap. **Install page:** this month's AI use
|
||
against the cap, use by helper, and six months of real cost, charged and profit.
|
||
|
||
## [1.5.0] - 2026-10-28
|
||
|
||
### Added
|
||
|
||
- **Changing an update request** — when a site asked for a version that has since been overtaken and
|
||
asks again, the open request moves on to the latest version instead of being ignored: the alert
|
||
reads "latest is 1.47.3 (changed from 1.47.0)" and the alert address gets one email about the
|
||
change. The response says `changed: true` and gives `previousVersion` (protocol §3a). Needs Cross
|
||
Events 1.47.4 for the button; older sites keep working as before.
|
||
|
||
## [1.4.1] - 2026-10-28
|
||
|
||
### Changed
|
||
|
||
- **Release notes are read from the default branch** (`main`), not from the newest tag. Notes still
|
||
only show for tagged versions, so a section written ahead of a release stays hidden until it's
|
||
tagged — and notes for versions already out can be added or corrected without a new release.
|
||
|
||
## [1.4.0] - 2026-10-28
|
||
|
||
### Added
|
||
|
||
- **Releases from git** — every `v1.2.3` tag of the Cross Events repository is a release, and the
|
||
newest tag is the latest version: no more setting it by hand. What's new in each version comes
|
||
from the repo's `WHATS-NEW.md` (written for churches; `urgent` or `security` in a version's heading
|
||
marks a security or serious bug fix). Synced every 15 minutes and with **Sync now** on the new
|
||
**Releases** page, which shows each version, its notes and how many installs run it. 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. Set to the hope-events repository by default; a
|
||
token is only needed if it becomes private. With the repository cleared, releases are added by
|
||
hand on the same page.
|
||
- **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.
|
||
|
||
Cross Events 1.46.2 shows 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.
|