- 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]>
7.8 KiB
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 subtitle10: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 tagconvivo-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 -tok; attendee + admin HTTP/HTTPS 200; onlyconvivo-apprecreated; 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_networkingto dev and prod (single transaction each):events.talk_networking_bonus, re-createdaccept_connection(returnsshared_talk, awards the bonus via_award_points), widenedpoints_log.categoryCHECK,get_talk_cohort. - Backfilled the migration ledger with the 9 previously-untracked migrations in
both databases →
ledger = 38everywhere (matches the repo file set). - Set the active event's
talk_networking_bonusto 0 on both, so the new bonus path is inert until deliberately enabled (column default stays 2 for new events). - Gate: normalized
pg_dumpof 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 (commit93d188a), 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.origoverlay backups.docker-compose.ymlalready matched;.env/secrets/GoTrue/kong runtime untouched (parity is committed files + schema, not live data or credentials). - Gate: production app tree
diff -rqagainst 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) andparity-20261016T154937Z(pre-deploy). Rollback image tagsconvivo-{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) andindex-CitZP5XQ.js(admin) match the localHEADbuilds exactly; sidecar/healthok,/exportroutepdfkitpresent.
- Autosync preserved: pretix every-minute (111 attendees, 0 errors) and the Sessionize/GridSmart poller (30 sessions, 0 errors) both running after the rebuild.
nginx -tok 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
Evaluateassertion inadmin-schedule.spec.ts— that button was removed from the codebase in6bad96c). - Live rollback-only
leaderboard_tests.sqlsmoke on production: 46 assertions passed, exercisingaccept_connectionshared_talk+ thetalk_networkingbonus path; all row counts unchanged afterROLLBACK(real data preserved). - Final three-way check: dev == prod == repo for schema, ledger, and app source.