Events 3.4.0, Accounts 1.4.0, contracts 1.12.0, agent 1.3.0: jobs from the dashboard, styled Accounts emails, .env from the Hub
- Events and Accounts: Background jobs are switched on or off and rescheduled from the admin; the choice is kept in the database (job_overrides), wins over the .env and applies at once. Accounts gets an Admin -> Background jobs page and per-job env flags, as Events. - Accounts: every email styled as Cross Events' (church colour, logo, button, footer), same plain text (src/lib/emails.ts). - Contracts 1.12.0: env-read / env-set agent jobs, envReadResultSchema, isSecretEnvName. - crosscode script: `crosscode env <church> <product>` reads the .env (secrets hidden) and, with --set/--unset/--restart, changes one file, rebuilds the frontend when its file changed, reloads, and puts the file back if the site doesn't answer (lib/envedit.cjs, tests/envedit.bats). - Agent 1.3.0: runs env-read and env-set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,28 @@
|
||||
# Changelog — Accounts
|
||||
|
||||
## [1.4.0] - 2026-11-20
|
||||
|
||||
Works with every Cross Events 3.x and contracts 1.11.0 or later.
|
||||
|
||||
### Added
|
||||
|
||||
- **Admin → Background jobs**, as Cross Events': each job's schedule, next run and last runs,
|
||||
"Run now", and a switch and schedule per job. The choice is saved in the database
|
||||
(`job_overrides`), wins over the .env and applies straight away (other processes within 30 s).
|
||||
New optional .env flags per job, as Events: `EXPORTS_JOB_ENABLED`, `DELETIONS_JOB_ENABLED`,
|
||||
`BACKUP_ENABLED`, `HUB_HEARTBEAT_ENABLED`, and `JOB_SCHEDULE_<NAME>`. API: `GET /api/v2/admin/jobs`,
|
||||
`PUT /api/v2/admin/jobs/:name` `{ enabled, cron }`, `POST /api/v2/admin/jobs/:name/run`.
|
||||
On timers (when the queue can't start) jobs now follow their cron schedule too.
|
||||
|
||||
### Changed
|
||||
|
||||
- **Every email is styled as Cross Events'** (`src/lib/emails.ts`): a header in the church's
|
||||
colour with its logo or name, a button for the link (written out underneath), callouts for
|
||||
warnings, and the church's contact details in the footer. Sign-in codes, password reset, "your
|
||||
account at …", confirm a new email address, "your email address changed", "your data is ready"
|
||||
and the test emails. The plain text is sent too and hasn't changed. Everything put in the HTML is
|
||||
escaped, and only http(s) links are used.
|
||||
|
||||
## [1.3.0] - 2026-11-20
|
||||
|
||||
Needs contracts 1.11.0 (`people.removeDemo`). Works with every Cross Events 3.x.
|
||||
|
||||
Reference in New Issue
Block a user