- docs/prod-parity-plan.md: audit + phased plan, now marked EXECUTED with the
autonomous decisions (target=HEAD, data preserved, bonus shipped at 0,
whole-tree deploy).
- docs/releases/2026-10-16.md: append the parity release record (schema +
ledger + whole-tree code deploy, backups/rollback tags, 151/151 e2e, 46-assert
live rollback smoke, autosync preserved, dev==prod==repo).
- e2e/admin-schedule.spec.ts: drop the stale 'Evaluate' disabled assertion
(button removed from the codebase in 821907b).
Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
160 lines
7.8 KiB
Markdown
160 lines
7.8 KiB
Markdown
# Attendee Agenda Polish (2026-10-16)
|
||
|
||
Three presentation-only fixes to the attendee app (Convivo), all local-first
|
||
and deployed together as an attendee-only rebuild (no migrations, no sidecar,
|
||
no admin changes).
|
||
|
||
## 1. Service Session card consistency
|
||
|
||
**Symptom:** some Service Session agenda cards rendered a header plus a detail
|
||
row, while one (11:15–12:00) rendered header-only.
|
||
|
||
**Root cause:** an orphan service slot — a `slots` row typed
|
||
`service_session` with no `sessions` row behind it (a leftover from an earlier
|
||
feed state or manual edit). `get_agenda` LEFT JOINs sessions onto slots, so
|
||
the orphan arrives as a row with slot fields and a null session; the Agenda
|
||
rendered the header with zero session rows. Nothing referenced the slot
|
||
(0 preferences / check-ins / feedback).
|
||
|
||
**Fix:** `groupAgenda` (`apps/convivo/src/lib/api.ts`) drops service slots
|
||
with no sessions, mirroring the existing rule that hides empty talk slots.
|
||
Placed in the grouping layer so the agenda list, its displayed slot count, and
|
||
Home's Now/Next cards all agree. Presentation-only — no data was deleted.
|
||
|
||
## 2. Home picks open the session detail in place
|
||
|
||
**Request:** tapping a pick under "My picks today" routed to the Agenda tab;
|
||
it should open the session's details directly.
|
||
|
||
**Fix:** the Agenda's session bottom sheet was extracted verbatim into a
|
||
shared component `apps/convivo/src/components/SessionDetail.tsx` (title,
|
||
time/room subtitle, description, speaker/level/area/capacity/checked-in pills,
|
||
pick / "Remove my pick", speaker material upload/download/remove, speaker
|
||
feedback review, Give-feedback entry). Home's pick chips now open it over
|
||
Home; the Agenda renders the same component (~100 lines of duplicated markup
|
||
removed). `App.tsx` passes `openFeedback` into Home so feedback works from the
|
||
Home sheet too. The "tap to change" link to the Agenda remains.
|
||
|
||
## 3. Session detail subtitle no longer repeats the time
|
||
|
||
**Symptom:** the sheet subtitle showed the time twice, e.g.
|
||
"Slot 10:15–11:00 · 10:15–11:00 · Room A".
|
||
|
||
**Root cause:** talk slots are auto-named `Slot <start>–<end>`, and the
|
||
subtitle rendered `{slot.name} · {range} · {room}`.
|
||
|
||
**Fix:** the slot name is shown only when it adds information — skipped when
|
||
it equals the auto-generated `Slot <range>` or repeats the session title
|
||
(common for services like "Lunch").
|
||
|
||
## Verification
|
||
|
||
- `convivo-admin-entry.spec.ts` (API-mocked): **41/41** green, including the
|
||
new orphan-service-slot test and the new "Home session picks" test (sheet
|
||
opens over Home, tab stays active, exact subtitle `10:15–11:00 · Room A`,
|
||
close returns to the pick list).
|
||
- `speaker-portal.spec.ts`: 19/19 green (regression).
|
||
- Attendee production build clean.
|
||
- Docs synced: `docs/frontend/screens.md`, `docs/frontend/app-structure.md`
|
||
(new "Session detail" section), `docs/backend/tests.md` ("Agenda
|
||
Consistency + Home Picks Regression").
|
||
|
||
## Deployment (2026-10-16)
|
||
|
||
Attendee-only deploy of commit `ef0446d` (no migrations, no admin/sidecar/DB
|
||
changes). The production attendee source is older than the repository (it
|
||
predates the Networking quick-action, `getTalkCohort` and the composite
|
||
`accept_connection` contract), so whole-file copies were **not** safe for
|
||
`App.tsx`, `api.ts` and `Home.tsx`: the deploy applied a **scoped overlay** —
|
||
the fetched production baseline plus exactly the three fixes above — while
|
||
`Agenda.tsx` (byte-identical baseline) and the new `SessionDetail.tsx` copied
|
||
whole. The overlay was built and verified locally first: faithful production
|
||
build (`npm ci` + build, bundle `index-G1Q9cL31.js`) and 41/41 mocked browser
|
||
tests against it.
|
||
|
||
- Backup `/home/APPE/convivo-backups/appfix-ef0446d-20261016T142042Z`
|
||
(runtime source baseline, sha256 drift-guard check, payload, container
|
||
inventory) + rollback tag `convivo-app:rollback-appfix-ef0446d-…`.
|
||
- Drift guard passed against the pristine fetched baseline before overlaying.
|
||
- Live production bundle `index-G1Q9cL31.js` (identical to the locally tested
|
||
staging build) contains the feature markers and none of the repo-only
|
||
features absent from production (`get_talk_cohort`, Networking quick action).
|
||
- `nginx -t` ok; attendee + admin HTTP/HTTPS 200; only `convivo-app`
|
||
recreated; all unrelated container IDs preserved.
|
||
- 41/41 mocked browser tests pass against `https://convivo.appe.at`.
|
||
|
||
---
|
||
|
||
# Production ⇄ Dev ⇄ Repo Parity (2026-10-16)
|
||
|
||
Follow-up release that brought **production fully up to date with the
|
||
repository** and made **dev and prod schema-identical**. See
|
||
`docs/prod-parity-plan.md` for the audit and phased plan; this records the
|
||
execution.
|
||
|
||
## Why
|
||
|
||
Prior deploys were scoped overlays because production's source had drifted
|
||
behind the repo (it predated Networking, `get_talk_cohort`, the composite
|
||
`accept_connection`, Reports export, etc.). The audit also showed **dev was not
|
||
a clean mirror either** — neither dev nor prod had the full
|
||
`20260920000000_talk_networking` migration (both lacked the bonus column, the
|
||
`shared_talk`-returning `accept_connection`, and the widened `points_log`
|
||
CHECK). The correct source of truth is git `HEAD`; both databases were brought
|
||
to it.
|
||
|
||
## Schema parity
|
||
|
||
- Applied `20260920000000_talk_networking` to **dev and prod** (single
|
||
transaction each): `events.talk_networking_bonus`, re-created
|
||
`accept_connection` (returns `shared_talk`, awards the bonus via
|
||
`_award_points`), widened `points_log.category` CHECK, `get_talk_cohort`.
|
||
- Backfilled the migration ledger with the 9 previously-untracked migrations in
|
||
**both** databases → `ledger = 38` everywhere (matches the repo file set).
|
||
- Set the active event's `talk_networking_bonus` to **0** on both, so the new
|
||
bonus path is inert until deliberately enabled (column default stays 2 for
|
||
new events).
|
||
- **Gate:** normalized `pg_dump` of the public schema — dev vs prod diff is
|
||
**empty** (byte-identical).
|
||
|
||
## Code + config parity (whole-tree deploy)
|
||
|
||
- Folded production's genuinely-better sidecar Dockerfile (`npm ci` + lockfile)
|
||
into the repo first (commit `93d188a`), so a repo→prod copy loses nothing.
|
||
- Replaced all three app trees on production with a clean checkout of `HEAD`
|
||
(`apps/{convivo,admin,sidecar}`), removing stale `.orig` overlay backups.
|
||
`docker-compose.yml` already matched; `.env`/secrets/GoTrue/kong runtime
|
||
untouched (parity is committed files + schema, not live data or credentials).
|
||
- **Gate:** production app tree `diff -rq` against the repo payload is **empty**.
|
||
|
||
## Deployment record
|
||
|
||
- Backups: full prod `pg_dump` + source archive + container inventory under
|
||
`/home/APPE/convivo-backups/parity-20261016T154507Z` (pre-migration) and
|
||
`parity-20261016T154937Z` (pre-deploy). Rollback image tags
|
||
`convivo-{app,admin,sidecar}:rollback-parity-20261016T154937Z`.
|
||
- Build-before-`up`: all three images built successfully before any container
|
||
was recreated (a build failure would have auto-restored source with zero
|
||
downtime).
|
||
- Live bundles `index-DtIEihnG.js` (attendee) and `index-CitZP5XQ.js` (admin)
|
||
match the local `HEAD` builds exactly; sidecar `/health` ok, `/export` route
|
||
+ `pdfkit` present.
|
||
- Autosync preserved: pretix every-minute (111 attendees, 0 errors) and the
|
||
Sessionize/GridSmart poller (30 sessions, 0 errors) both running after the
|
||
rebuild.
|
||
- `nginx -t` ok in both frontends; attendee + admin HTTP/HTTPS 200; only the
|
||
three convivo service containers recreated; all unrelated Supabase container
|
||
IDs preserved.
|
||
|
||
## Verification
|
||
|
||
- Mocked browser e2e against production: **151/151** (after removing one stale
|
||
`Evaluate` assertion in `admin-schedule.spec.ts` — that button was removed
|
||
from the codebase in `6bad96c`).
|
||
- Live rollback-only `leaderboard_tests.sql` smoke on production: **46
|
||
assertions passed**, exercising `accept_connection` `shared_talk` + the
|
||
`talk_networking` bonus path; all row counts unchanged after `ROLLBACK`
|
||
(real data preserved).
|
||
- Final three-way check: **dev == prod == repo** for schema, ledger, and app
|
||
source.
|