Commit Graph
109 Commits
Author SHA1 Message Date
joshua 1150a82ecc Merge branch 'feat/install-env' v2.8.0 2026-11-20 12:14:14 +02:00
joshuaandClaude Opus 5.5 98db54aad2 Hub 2.8.0: an install's .env on its page, changed with a restart
- Settings (.env) panel on an Events or Accounts install: reads the .env through an env-read job
  (addresses first; secrets only as set or not), and changes plain values with an env-set job
  (restart, or rebuild for the frontend's file; the server puts the file back if the site doesn't
  start). After a change the file is read again. One change per install at a time.
- Contracts 1.12.0 vendored (env jobs need agent 1.3.0).
- env-read / env-set in the Jobs type filter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:14:13 +02:00
joshua 3fbe8708e8 Merge branch 'fix/double-submit' v2.7.1 2026-11-19 22:16:35 +02:00
joshuaandClaude Opus 5.5 dab6fbcff6 Hub 2.7.1: one click is one update
Buttons are off from the click until the Hub answers (the Updates page and
every action on an install's page); the server refuses a second update for
an install with one planned or running (ALREADY_PLANNED). Test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:15:58 +02:00
joshua 90fdde054a Merge branch 'feat/emergency-now' v2.7.0 2026-11-19 22:03:52 +02:00
joshuaandClaude Opus 5.5 dd5612fb2a Hub 2.7.0: emergency updates as soon as possible; events on now need a second yes
asap (emergency only, reason + 2FA) queues the update now; the church is
told it's happening now. A church whose Events heartbeat reports an event
on now (stats.live, Events 3.2.0) refuses an emergency update with
LIVE_EVENT until confirmLive. Both update forms offer "As soon as possible"
and ask again for a live event. Contracts 1.10.0 vendored. 4 new tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:01:28 +02:00
joshuaandClaude Opus 5.5 3893fb91e0 Hub 2.6.1: the Failed jobs filter and alert search no longer answer 500
The status list had timed_out, which isn't a JobStatus (the enum has
expired), and alert search used contains on the EventLevel enum: Postgres
refused both queries. JOB_STATUSES now matches the enum (tested against
schema.prisma); Failed = failed,expired; unknown products refused; level
matched by name. All list queries checked on Postgres.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v2.6.1
2026-11-19 21:58:28 +02:00
joshua 22d78ac81c Merge branch 'feat/hub-2.6' v2.6.0 2026-11-19 20:12:15 +02:00
joshuaandClaude Opus 5.5 de6a14c229 Hub 2.6.0: paged lists, job status filters, one-product updates, installs found on servers
- Jobs: Succeeded/Cancelled filters, product, type and church search, paged
  on the server; audit log and alerts paged on the server with search;
  every other list paged.
- Updates: one product at a time with its own releases; an Events update
  pins the church's Accounts (or updates it when the release needs it, or
  installs it first); fixes the requirement check comparing an object.
- A status job adds installs found on a server and ties them to their
  registration; unlinked registered sites trigger one (daily); heartbeats
  tie install records too; the install page shows its registration.
13 new tests (209).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:09:31 +02:00
joshua ff176681a7 Merge branch 'feat/events-3-accounts-first' v2.5.0 2026-11-19 15:20:36 +02:00
joshuaandClaude Opus 5.5 235e050639 Release 2.5.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 15:20:35 +02:00
joshuaandClaude Opus 5.5 493a0ab92e Hub 2.5.0: the lockfile has the new contracts 1.8.0 package
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:30:00 +02:00
joshuaandClaude Opus 5.5 e13e5b6e60 Hub 2.5.0: contracts 1.8.0 with import.finish listing the subs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:29:28 +02:00
joshuaandClaude Opus 5.5 05d043e0a3 Hub 2.5.0: a New install of Events 3.x installs the church's Accounts first
A release's "requires accounts" is met at install: Accounts then the
product in one batch (the product runs only after Accounts succeeded; a
failed Accounts fails the product's record and frees its ports). Accounts
domain from the form, or accounts.<rest of the domain>. An Accounts older
than required is refused. Contracts 1.8.0 vendored. 4 new tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:17:58 +02:00
joshuaandClaude Opus 5.5 575c0cac68 Merge branch 'feat/demo-sites'
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v2.4.0
2026-11-19 10:54:09 +02:00
joshuaandClaude Opus 5.5 dbfa4116c4 Hub 2.4.0: demo sites, and demo data loaded from the Hub
Mark a Cross Events install as a demo site, then load a demo set (small,
events, ministry, multicampus) with a seed-demo job (agent 1.2.0+,
crosscode demo: backup, demo data, restart). Typing the short name for both.
Deployment.isDemo (migration), contracts 1.7.0 vendored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:41:03 +02:00
joshuaandClaude Opus 5.5 36987a9b69 Merge branch 'fix/server-config-checks'
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v2.3.3
2026-11-19 10:25:58 +02:00
joshuaandClaude Opus 5.5 94230d0ba9 Hub 2.3.3: refuse server settings the apps can't start with
TRUST_PROXY=TRUE made an Events install build for minutes, then crash at
startup. Saving a server's configuration now refuses it, and installs and
updates are refused (CONFIG_INVALID) while an older saved configuration has
one. Contracts 1.6.0 vendored (agent.checkEnvValue / invalidValues).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:25:57 +02:00
joshua 166ea451f4 Merge branch 'fix/stuck-uninstall' v2.3.2 2026-11-19 08:50:42 +02:00
joshuaandClaude Opus 5.5 97e493ef61 Hub 2.3.2: no more installs stuck uninstalling; remove a failed install's record
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 08:50:40 +02:00
joshuaandClaude Opus 5.5 a50be73a2b Changelog: stuck uninstalls and removing a failed install's record
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 08:44:29 +02:00
joshuaandClaude Opus 5.5 915ae82416 Fix installs stuck as "Uninstalling"; remove a failed install's record
An uninstall whose export failed was cancelled, but its install stayed
"uninstalling" for good. It now goes back to live (or waiting for the
proxy), like a failed or hand-cancelled uninstall.

Uninstall is refused for a failed install (nothing of it is on the
server, so the export always failed) and for one still installing. A
failed install's page offers "Remove the record" instead, which also
clears records already stuck from before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 08:44:17 +02:00
joshua 20c7146b0c Merge branch 'fix/agent-busy-not-down' v2.3.1 2026-11-18 19:02:50 +02:00
joshuaandClaude Opus 5.5 5a2aec7a67 Hub 2.3.1: a server running a job is busy, not down
An agent before 1.1.1 neither polls nor sends stats while it runs a job,
so after 5 minutes the Hub alerted (and emailed) that it was down. While
a job it handed out is within its time limit, the server counts as busy:
no agent_silent alert, online for New install, "Running a job" in the UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:02:49 +02:00
joshua da219c15d4 Merge branch 'feat/accounts-install' v2.3.0 2026-11-18 15:23:14 +02:00
joshuaandClaude Opus 5.5 838e0af555 Release 2.2.0 and 2.3.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:23:14 +02:00
joshuaandClaude Opus 5.5 78857bc0e4 Hub 2.3.0: install Accounts (first product, or added next to a church's others)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:34:18 +02:00
joshua be3945b8be Merge branch 'feat/link-public-key' v2.2.0 2026-11-18 13:02:21 +02:00
joshuaandClaude Opus 5.5 4aecc05c07 Hub 2.2.0: contracts 1.4.0 as it will be tagged (FEED_PATHS, typesVersions)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:36:40 +02:00
joshuaandClaude Opus 5.5 1fceb92745 Hub 2.2.0: changelog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:06:09 +02:00
joshuaandClaude Opus 5.5 106d71e566 Hub 2.2.0: a public key on the v2 heartbeat, Clear public key
Installs that registered with protocol v1 move to v2 by sending their
public key on a signed v2 heartbeat: saved / matches / mismatch, never a
failed heartbeat. Clear public key (2FA again) for a rebuilt server.
Contracts 1.4.0 vendored; hub-protocol.md §6 updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:05:59 +02:00
joshuaandClaude Opus 5.5 7428337aa5 Release 2.1.1
Adopt passes the church's address (needed for domains that don't start with events.), and
Link existing says the short name is a name, not a folder. The changelog entry for the fix,
missing from its commit, is added here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v2.1.1
2026-11-18 10:02:39 +02:00
joshua 754083648a Merge branch 'fix/adopt-address' 2026-11-18 09:58:16 +02:00
joshuaandClaude Opus 5.5 a2e97a5ea9 Adopt: pass the church's address; Link: the short name is a name
crosscode adopt can only work out the church's address from an events.<address> domain, and
the Hub never sent --address, so adopting a site like events-demo.crosscode.co.za failed on the
server. The adopt form now asks for the address (required for such domains), the Hub refuses to
plan the move without it, and it goes into the job's arguments.

Link existing: the short name field and its error say it's a name like `hope`, not a folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 09:58:16 +02:00
joshuaandClaude Opus 5.5 197edf3c1a README: servers and the agent (2.1), where the protocol lives
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls1vMdni7EfytGYqQTprME
2026-11-17 22:41:10 +02:00
joshuaandClaude Opus 5.5 a6e9f6bc97 Release 2.1.0
Servers and the agent: New install, scheduled and emergency updates,
batches, adopt, uninstall with an encrypted export, server stats and
alerts. Also dates 2.0.2 correctly (2026-11-17).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls1vMdni7EfytGYqQTprME
v2.1.0
2026-11-17 22:25:50 +02:00
joshua 22fdd3a388 Merge branch 'feat/servers-agent' 2026-11-17 22:23:43 +02:00
joshuaandClaude Opus 5.5 1952acc057 Registration: linking a Hub install never blocks registering
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls1vMdni7EfytGYqQTprME
2026-11-17 19:06:06 +02:00
joshuaandClaude Opus 5.5 1be6d32aa6 Banners reach a site the Hub installed
Found in the VM test: a Hub-installed site registers with its licence
key, but its deployment was never linked to that registration, so update
and closing banners were silently skipped. Registration now makes the
link, and a notice makes it for sites that registered before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls1vMdni7EfytGYqQTprME
2026-11-17 19:05:37 +02:00
joshuaandClaude Opus 5.5 674a691d85 Settings: the servers settings (install defaults, port range, central IP) are saved
Found in the VM test: they were never added to the known settings, so
saving them was silently ignored and every install got the template's
defaults. A test now saves and reads them back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:44:27 +02:00
joshuaandClaude Opus 5.5 016d1ea17e New install: a failed or removed install's short name can be used again
Found in the VM test: after a failed install, retrying with the same
short name was refused, and the unique short name per product would
have blocked it anyway. A failed install's record is replaced; a removed
one keeps its history under another name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:39:36 +02:00
joshuaandClaude Opus 5.5 b0d81ed195 Events env template copy: HUB_PUBLIC_KEY (a Hub other than production)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:35:50 +02:00
joshuaandClaude Opus 5.5 74c56b67e9 Release 2.0.2: refund a payment; void invoices that aren't paid
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v2.0.2
2026-11-17 13:36:09 +02:00
joshua 8698f60b96 Merge branch 'fix/void-refunded' 2026-11-17 13:36:03 +02:00
joshuaandClaude Opus 5.5 4fa67e23c0 Servers migration after the refunds one (2.0.2 ships first)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:34:35 +02:00
joshua 1816f3088a Merge branch 'fix/void-refunded'
# Conflicts:
#	CHANGELOG.md
2026-11-17 13:34:19 +02:00
joshuaandClaude Opus 5.5 3706b73879 Billing: refund a payment; void invoices that aren't paid (none, or all refunded)
Void was refused while any payment was recorded, so a paid-then-refunded
invoice could only be voided by deleting the payment and losing the
record. A payment can now be marked refunded: kept with its receipt, no
longer counted as paid, shown on the statement as money going back out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:34:08 +02:00
joshuaandClaude Opus 5.5 3ed8979e19 Changelog: servers and the agent (planned 2.1.0)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:19:03 +02:00
joshuaandClaude Opus 5.5 591266c758 Docs: upgrading to 2.1 (job key, ports, servers), changelog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:18:49 +02:00
joshuaandClaude Opus 5.5 c8359c77e9 Servers and the agent, dashboard (2.1.0): servers, installs, updates, jobs, ports, download page
- Servers: add with a one-time join command, each server's CPU / RAM
  charts (24 h, 7 days, 90 days, spikes over 85% marked, table view),
  configuration, PM2 processes, sites, jobs and alerts.
- Installs: New install (server chooser with free RAM, CPU and sites),
  Link existing, FastPanel steps and Proxy done, schedule / emergency
  update, adopt, uninstall (2FA and the short name).
- Updates: one release to many installs (a batch), planned jobs.
- Jobs with their reports; Ports & defaults; the public download page
  that decrypts an export in the browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:18:20 +02:00