Devotionals can be written, edited and imported up to two years ahead
(was 3 months), and a CSV holds two years in one file (800 rows, 8 MB).
GET /api/v2/devotionals answers 2 weeks (from and the 13 days after it)
instead of 3 months. Contracts 1.24.0 vendored. No migration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The App installs from New install on app.<address>, with Accounts 1.9.0
first, and is in every product list and filter (installs, Updates).
Every product has demo data; a demo client loads a whole demo scenario
in one seed-scenario job (agent 1.7.0), and installs show whether they
are out of step with it. The Website's and App's .env from the Hub.
Devotionals: written or imported from CSV up to 3 months ahead in the
free translations (KJV, BSB), and GET /api/v2/devotionals for App
licences. An alert when an App's active-member band is above its tier.
Contracts 1.23.0 vendored. Migration 20261130120000_app_scenarios_devotionals.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Product filter on Jobs offered only Cross Events and Accounts, so
the Church Website's jobs couldn't be picked out. It now comes from
lib/products. The API already accepted every product.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A customer can be a demo client: every install a demo site (Accounts
included, and any later install), never billed (billing off, no invoice
drafted, sent or made by hand). Migration: Customer.isDemo, demoSince.
- Any install can be marked as a demo site; Events and the Website have
demo data. The Website's eight demo churches need agent 1.6.0.
- Contracts 1.19.0 vendored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The product tabs were a fixed Events/Accounts list from before the Church
Website, so Website installs couldn't be batch-updated there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A customer's Sites card has "Update everything to latest": every product
that's behind, in one batch (Accounts first, one at a time, stopping at the
first failure), scheduled or as an emergency, planned whole or not at all.
Later products keep Accounts at the version the batch updates it to.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New install checked the install record's version, which only changed
with the Hub's own jobs for that product. Accounts updated alongside
Events 3.7.0 still showed 1.6.0 there, so New install -> Website refused
cross-demo2 while the installs list showed 1.7.0. It now uses the
heartbeat's version, and each heartbeat updates the record's version.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A release needs what every earlier release of its product needed (the
highest version per product), so "requires accounts 1.7.0" is written
once in WHATS-NEW.md. Fixes New install -> Website 1.0.1 sending a
Website-only install job: its heading didn't repeat 1.0.0's requirement,
so Accounts wasn't installed first and the agent refused the job.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /api/installs/storage-request (contracts 1.18.0): recorded on the
install, Joshua emailed once, closed when the licence gets more extra
storage steps. The church is emailed once when its website's storage
passes 80% and once when it's full (from the heartbeat). Vendors
contracts 1.18.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New install offers the Church Website: Accounts first when the church has
none, at accounts.<its address> (www. dropped); the FastPanel email sends a
www. site's bare domain to www. with a 301.
- Licence.extraStorageSteps (migration): the token sends a Website its limit
(5 GB + steps, limits.storageBytes, contracts 1.17.0); invoices bill the
steps bought instead of the storage reported. Edit popup field 0-99.
- A Website/App licence starts on its plan however it's made (New install too).
- Vendored @crosscode/contracts 1.17.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
- AgentRelease (migration 20261123150000_agent_release): the agent's releases, apart from the
products' so licences and billing are untouched.
- Release sources can be for the Server agent; the defaults include it (monorepo agent@ tags,
apps/agent/WHATS-NEW.md). Same sync rules as products. A saved list without it gets an
"Add the agent's source" button on the Releases page.
- GET /api/admin/agent-releases; server summaries carry agentLatest; update-agent jobs go to a
known agent release, the latest when none is asked for (agentTag).
- Update agent is a ReleaseSelect with the chosen version's notes; the Servers list and a server's
page say when a newer agent is out; the Releases page shows agent releases (Server agent filter,
Everything newest first by date).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- components/ReleaseSelect.tsx: Latest (with its version) first, then the newest 10 releases,
Show older versions for the rest; marked latest, running now and what each needs.
- New install and Move onto the monorepo use it (they were free text); the install's Update popup
and the Updates page use it too. Move onto the monorepo lists Events from 2.2.0 (the first
monorepo tag).
- docs/VERSION-PICKERS-PLAN.md: this and 2.19.0 (agent releases). Frontend only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Server page: Configuration is a read view with an Edit popup; Update agent is a popup.
- frp config: the file shows read-only; Edit opens it in a popup with Restart, the two-factor
code and Save on the server (its confirmation unchanged).
- Ports & defaults: install defaults, port range and central IP as a read view with an Edit popup;
Mark as taken is a popup from the port list.
- Install page (/installs/[id]): Clear public key is a popup with the two-factor code; the notes
are a read view with an Edit popup; the page message is under the header.
- Invoice: always the read view; Edit (draft, approved) opens a popup, so Approve no longer needs
a save first. Void and Refund are popups instead of prompt().
- docs/POPUPS-PLAN.md done. Frontend only: no migration, no API changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add server, Add customer, New install and Link existing open in popups (Modal from 2.14.0):
ask before discarding, error by the button; saving still opens the new page.
- Add server: the join command in the same popup; closing before Copy asks first (Modal's
`dirty` can now be the question to ask).
- Notices and Releases: one popup for new and edit (NoticeModal, ReleaseModal); the cards are read
views. Release sources: a table with Sync now and Use the defaults; Edit opens the rows and the
access token in a popup and saving syncs.
- One-off invoice on Billing is the OneOffInvoice popup with a church picker; NewInvoice goes and
/billing/invoices/new opens the popup (/billing?oneoff=1).
- These pages use PageMessage. Frontend only: no migration, no API changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ReadCard, Field, Fields and ModalButtons move from components/customer/ReadCard.tsx into
components/ui.tsx, next to Modal, FormError and PageMessage.
- useSubmit moves from components/install/shared.ts into components/ui.tsx.
- The customer and install components import them from @/components/ui. No visible change.
- docs/POPUPS-PLAN.md: every inline add or edit left in the Hub, and the plan for 2.16.0 and 2.17.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Install page (/servers/installs/[id]): header with status, Schedule update and a ⋯ menu
(move onto the monorepo, demo site, uninstall, remove from the Hub, remove the record);
tiles for site/registration, version, server, ports and last heartbeat.
- Tabs: Jobs, Settings (.env), Exports; the tab in the URL (?tab=settings).
- Every action is a popup (Update, Adopt, Demo, Uninstall, Remove) using the 2.14.0 Modal:
asks before discarding, error by its button. Confirmations unchanged.
- EnvPanel: read view in the tab, each file edited in a popup.
- Banners for not registered, stale (no heartbeat for a day) and a planned uninstall.
- Shared PageMessage (also on the customer page); ModalButtons gets danger/disabled.
- Logic split into components/install/ (useSubmit, post with LIVE_EVENT re-confirm,
uninstallPlan). Frontend only: no migration, no API changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Customer page: header tiles (products, owing, next invoice, address, AI) and three
tabs (Overview, Products, Invoices and payments), the tab in the URL; #billing links
open Invoices and payments and Billing's links use ?tab=invoices.
- Every add or edit is a popup (new Modal in components/ui.tsx: Esc / click outside,
asks before discarding changes, focus kept inside, full screen on a phone). The page
shows only read views. Record payment is a popup on Billing and the invoice page too.
- One card per product: licence and billing fields in one Edit with one Save (each
endpoint called only if its fields changed); suspend/revoke/reactivate/release in a
⋯ menu. Contact and billing details edited together. One page-level message.
- History as one timeline with a filter; each kind on its own keeps its sortable table.
- CustomerBilling.tsx split into components/customer/; plan in docs/CUSTOMER-PAGE-PLAN.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Alerts: Clear one or Clear all. A cleared alert leaves the open list and dashboard count
but stays open to the checks, so it isn't re-raised or re-emailed until the problem goes
away and comes back. Audited. Migration 20261123120000_alert_cleared.
- Billing invoices, payments, churches and a customer's invoices/payments can be sorted by
column (remembered per browser). Invoices show the due date in its own column.
- Tabs: the grey rule is an inset shadow, so the active underline no longer overflows the
row by a pixel and makes it scroll.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Uninstalls name the product (agent 1.5.0); a whole-church uninstall marks every product
of the church on that server removed. Older agents are refused while the church has others.
- A second product's uninstall joins one already planned (one export and one uninstall) or
gets its own time; the last product removes the whole church. Accounts goes last.
- Remove an install from the Hub after 24 hours without a heartbeat (POST .../forget).
- Archive and restore customers (migration 20261123090000_customer_archive).
- Several addresses for a customer's email and billing email, with a + button.
- Statements show R0 invoices' amounts. Vendors contracts 1.16.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A new install reserves candidate ports, asks the central and church servers which are free
(probe-ports), and runs on the first pair free on both (3 rounds, then called off).
- Each server's page reads and changes frps's / frpc's config (agent 1.4.0): secrets stay on the
server, two-factor, verify, backup, restart, put back if frp doesn't start.
- Alerts name the config file the agent uses; a missing config gets its own alert.
- Vendors contracts 1.15.0. Migration 20261121110000_server_frp_config.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- src/utils/emailLayout.js: one layout for every Hub email (Cross Code
header with the logo, heading, button with the link under it, notes,
tables, job steps, code blocks, footer), HTML and plain text from the
same blocks, everything escaped. mail.sendMail attaches the logo.
- Every email moved onto it: job reports, alerts, update requests, the
SMTP test, notices, and all emails to site admins. Billing keeps its own.
- The FastPanel email and the install page give the backend as nginx config
with location ^~ /api/ (FastPanel's static-file rule took /api/...png).
- Proxy done checks /api/proxy-check.png doesn't reach the frontend.
- deployment.md: ^~ for the Hub's own /api/ too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- An Events install's page shows its sign-in mode, whether it's linked to the church's Accounts,
and the last sign-in failure (Events 3.5.0 heartbeat, contracts 1.13.0 vendored).
- Alerts: signs in through Accounts but isn't linked (critical), linked to the wrong Accounts, a
sign-in failed in the last 24 hours, an Accounts nothing is linked to while the church has Events.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>