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:
@@ -145,6 +145,26 @@ Languages (Afrikaans, §10) and Wallet passes (§7) are removed from scope (2026
|
||||
- `backend/src/hub/client.js` `connectFromEnv()`: a site the Hub installed registers by itself on
|
||||
first start from `HUB_LICENCE_KEY`.
|
||||
|
||||
## Where Linked products and the feed live (2.4.0)
|
||||
|
||||
Plan and reasons: the root [EVENTS-2.4-PLAN.md](../../../docs/EVENTS-2.4-PLAN.md).
|
||||
|
||||
- **Protocol v2**: `backend/src/hub/client.js` (`heartbeatBody`, the v1 fallback `hub_v1_until`).
|
||||
The key pair and the Hub's list of the church's products: `backend/src/links/store.ts`.
|
||||
- **Connect** (`crosscode.link/1`): `backend/src/links/connect.ts` (both directions),
|
||||
`links/http.ts` (calls to siblings: public addresses only, like webhooks), `links/routes.ts`
|
||||
(`/api/feed/v1/*`, `/api/links/v1/*`, mounted in `app.js` before the JSON parser).
|
||||
- **The feed**: `backend/src/feed/build.ts` (an Event as `crosscode.event/1`, also for the event
|
||||
page's JSON-LD), `feed/entries.ts` (`FeedEntry`, refresh, `changedSoon` from `config/db.js`),
|
||||
`feed/notify.ts` (`event.changed`), `feed/sync.ts` (fetching linked products' events into
|
||||
`ImportedEvent`). Jobs `feed`, `feed-sync`; task `feed-sync-link`.
|
||||
- **Screens**: `frontend/src/components/admin/LinkedProductsTab.tsx` (Site settings → Linked
|
||||
products), `components/events/LinkedEventCard.tsx`, `lib/linkedEvents.ts`,
|
||||
`app/events/linked/[product]/[id]/page.tsx`. API: `backend/src/v2/resources/linkedProducts.ts`.
|
||||
- **Tests**: `backend/tests/linkedProducts.test.js` (in-memory database:
|
||||
`tests/support/fakeFeedDb.js`), `e2e/linked-products.spec.ts` (a fake Church Website on
|
||||
localhost:5198).
|
||||
|
||||
## Working on this repo
|
||||
|
||||
- **Release routine:** branch `feat/<name>` → commit → bump with
|
||||
|
||||
Reference in New Issue
Block a user