Events 2.4.0 frontend, deploy and docs: Linked products, linked events, seo
- Site settings → Linked products (Connect, Show events from, Publish my events), help, command palette. - Events from linked products on /events, the home and campus pages, and /events/linked/<product>/<id> (markdown with HTML off, canonical to the origin, no JSON-LD, not in the sitemap). - Event page JSON-LD from @crosscode/seo; lib/eventSchema.ts removed. - Readiness check for linked products' sync; e2e spec with a fake Church Website (not run yet: needs the e2e Postgres). - crosscode: install and build the shared packages Events uses first (an older tag still builds as before); scripts/tests/events.bats. - Release notes, changelogs, handovers, hub-protocol.md, and the plan's "Changes while building". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,47 @@ 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/).
|
||||
|
||||
## [2.4.0] - unreleased
|
||||
|
||||
Protocol v2, Linked products, the event feed and `packages/seo` (ROADMAP-v3 phase 2,
|
||||
docs/EVENTS-2.4-PLAN.md). Needs Hub 2.2.0 for the move to protocol v2 (against an older Hub it keeps
|
||||
working on v1 and Linked products stays empty). contracts 1.4.0.
|
||||
|
||||
### Added
|
||||
|
||||
- **Protocol v2** (`src/hub/client.js`): register and heartbeat send `product: "events"`; the site
|
||||
makes an Ed25519 key pair once (`src/links/store.ts`, `hub_private_key` encrypted) and sends its
|
||||
public key on the heartbeat until the Hub answers `publicKeyStatus: saved | matches`. Installs
|
||||
registered with v1 move over without their licence key. The reply's `linkedProducts` is cached
|
||||
(`hub_linked_products`). A Hub that refuses a v2 body gets the same heartbeat as v1, and v1 is
|
||||
used for a day (`hub_v1_until`), so the licence always refreshes. Update requests and AI calls
|
||||
stay v1.
|
||||
- **Linked products** (Site settings → Linked products; `/api/v2/linked-products`): the church's
|
||||
other products from the Hub, **Connect** / **Disconnect** (`crosscode.link/1` over
|
||||
`POST /api/links/v1/connect` and `/disconnect`, both directions, Ed25519-signed and checked
|
||||
against the Hub-listed key, replays refused via `LinkNonce`), per-link **Show events from** and
|
||||
the site's **Publish my events** (`feed_publish`). Audit log: `product_link_connected`,
|
||||
`product_link_disconnected`, `feed_publish_toggled`, `feed_show_toggled`.
|
||||
- **The event feed** `GET /api/feed/v1/events?updatedSince=` (`crosscode.event-feed/1`, public, no
|
||||
personal information) built from `FeedEntry` (`src/feed/entries.ts`): going live, closing and
|
||||
selling out are changes even though no `Event` row changes; deactivated events go in `deleted`;
|
||||
ended events drop out after 30 days without a tombstone. Refreshed by the `feed` job (every 5
|
||||
minutes), a few seconds after writes to events, tickets and registrations (`config/db.js`), and
|
||||
before answering when older than a minute. Changes are announced with `event.changed`
|
||||
(`LINK_HEADERS`, one retry after a minute; the 15-minute poll catches the rest).
|
||||
- **Showing linked products' events** (`src/feed/sync.ts`, `ImportedEvent`): fetched every 15
|
||||
minutes (`feed-sync`) and on a valid `POST /api/feed/v1/changed` (`feed-sync-link` task); only
|
||||
events whose origin matches the link; the last good copy stays when a source is down. Shown on
|
||||
/events, the home page and campus pages, each with its page `/events/linked/<product>/<id>`
|
||||
(markdown with HTML off, canonical link to the origin, no JSON-LD, not in the sitemap).
|
||||
`/api/v2/linked-events`.
|
||||
- **`@crosscode/seo`** (`packages/seo`): the event page's JSON-LD now comes from
|
||||
`crosscode.event/1` (`crosscodeEvent` and `priceRangeCents` on `/events/:id/full`);
|
||||
`frontend/src/lib/eventSchema.ts` is gone. The price range now covers main tickets only (an add-on
|
||||
used to set the lowest price).
|
||||
- Readiness: "Events from linked products are up to date".
|
||||
- `FEED_JOBS_ENABLED` (default `true`). Migration `20261120120000_linked_products`.
|
||||
|
||||
## [2.3.1] - 2026-11-18
|
||||
|
||||
### Security
|
||||
|
||||
Reference in New Issue
Block a user