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:
@@ -5,6 +5,24 @@ All notable changes to this project are documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project follows [Semantic Versioning](https://semver.org/).
|
||||
|
||||
## [3.4.0] - 2026-11-20
|
||||
|
||||
### Added
|
||||
|
||||
- **Background jobs are switched on and off from Settings → Background jobs.** Each job has a
|
||||
switch and a Schedule button (presets or a cron expression). The choice is saved in the database
|
||||
(`AppSetting` `job_overrides`), wins over the .env (the job's own flag such as
|
||||
`WAITLIST_JOB_ENABLED`, and `JOB_SCHEDULE_<NAME>`), and applies straight away: the queue is
|
||||
rescheduled in this process, and other processes see it within 30 seconds (a run of a job switched
|
||||
off elsewhere is skipped). "use the .env" goes back to what the server says.
|
||||
`JOBS_ENABLED=false` still turns every job off (the end-to-end tests use it).
|
||||
API: `PUT /api/v2/admin/jobs/:name` `{ enabled, cron }` (null goes back to the .env); `GET
|
||||
/admin/jobs` also gives `envEnabled`, `envCron`, `defaultCron` and `override`.
|
||||
|
||||
### Changed
|
||||
|
||||
- "Run now" also works for a job that's switched off.
|
||||
|
||||
## [3.3.0] - 2026-11-20
|
||||
|
||||
Works with Accounts 1.3.0 (needed for the demo-data part; with an older Accounts the old demo people
|
||||
|
||||
Reference in New Issue
Block a user