Merge branch 'feat/api-prefix'

# Conflicts:
#	apps/events/CHANGELOG.md
This commit is contained in:
2026-11-17 11:31:34 +02:00
16 changed files with 119 additions and 42 deletions
+20 -2
View File
@@ -7,9 +7,19 @@ and this project follows [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [2.2.0] - 2026-11-17
Cross Events moves into the `crosscode-platform` monorepo (ROADMAP-v3 phase 1b,
`docs/EVENTS-2.2-PLAN.md`). Existing installs move with `crosscode adopt`, not `deploy`.
### Changed
- **AI use is shown in tokens, not rand** (for 2.3.0; needs Hub 2.0.1 for the token figures). Site
- **Moved into the monorepo** as `apps/events`, with its git history. The backend and frontend are
npm workspaces with one root lockfile. Releases are tagged `events@x.y.z`; the older `v…` tags
stay in the archived `hope-events` repo.
- **The `crosscode` script** (`deploy`, `status`, `install`, `adopt`, in `scripts/` at the
monorepo root) replaces `scripts/deploy.sh` and `scripts/install.sh`.
- **AI use is shown in tokens, not rand** (needs Hub 2.0.1 for the token figures). Site
settings → AI shows the percentage used, the input and output tokens used this month and an
estimated allowance in tokens; the per-person, per-helper and per-day tables show tokens instead
of cost. The 80% email names tokens instead of rand. The rand amounts the Hub sends are dropped
@@ -20,6 +30,14 @@ and this project follows [Semantic Versioning](https://semver.org/).
`inputTokens` / `outputTokens` instead of `chargedCents`.
- `AiCall` keeps each call's tokens (migration `20261117120000_ai_tokens`). Calls from before it
show 0 tokens.
- **Everything the backend serves is under `/api`**, so the site and its API can share one
address (`events.church.co.za`, no `events-api.` record) with a single proxy rule: `/api` →
backend port, everything else → frontend port (DEPLOYMENT.md, "One address, one rule"). The
status page is at `/api` (`/` redirects there), health at `/api/health`, the API reference at
`/api/docs/v2` and uploaded files at `/api/uploads/…`. Stored paths stay `/uploads/…`; pictures,
logos and attachments are given out as `/api/uploads/…`, and so are WhatsApp ticket PDFs.
- The old paths keep working on the backend: `/health` and `/uploads/…` answer as before, and
`/docs` and `/docs/v2` redirect to `/api/docs/v2`. A missing file under `/api/uploads` is 404.
## [2.1.1] - 2026-11-03
@@ -2274,4 +2292,4 @@ Run `npm run prisma:deploy` in the backend when deploying. This release adds a m
[1.2.0]: https://git.crosscode.co.za/joshua/hope-events/compare/v1.1.0...v1.2.0
[1.1.0]: https://git.crosscode.co.za/joshua/hope-events/compare/v1.0.1...v1.1.0
[1.0.1]: https://git.crosscode.co.za/joshua/hope-events/compare/v1.0.0...v1.0.1
[1.0.0]: https://git.crosscode.co.za/joshua/hope-events/releases/tag/v1.0.0
[1.0.0]: https://git.crosscode.co.za/joshua/hope-events/releases/tag/v1.0.0