Private materials bucket + RLS read gate (admins/own speakers anytime, all attendees after the scheduled slot end, event-local Amsterdam time); always visible uploaded-state, locked download panel, authenticated client downloads, admin signed URLs. 12 new assertions in material_time_lock_tests.sql. 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]>
39 KiB
Next Steps
What's done, what's next, and the open decisions. The full roadmap lives in the
root roadmap.md; this file is the working detail for the
current phase.
Current state: Phases 0–6 are complete and verified, plus six polish rounds: Fixes & Refinements (QR token moved to the registration, role-pill capitalization, connection detail sheet + red-dot recalc, admin schedule speaker multi-select + upload/speaker bug fixes, sponsor contact search), Admin password + profile self-service (historical password login, now superseded by Admin magic links; attendees set LinkedIn + visibility on their Profile), Staff exclusions + password sync (setting
contacts.passwordauto-syncs the Auth password; staff excluded from the leaderboard; Home/Agenda/Profile identical for all roles), Convivo staff QR login (a staff QR asks for the staff password, not an email), Registration optionset + speaker promote + welcome check-in (registrations.typeis now a Postgres enum; adding a speaker auto-promotes their registration tospeaker; staff can do a Welcome check-in that marks an attendee present at the event; the admin QR token is final (no reset) and a failed sponsor change opens an in-place sponsor lookup; speakers see a red pending-material pill on Home and can delete their material to re-upload), and Existing-sponsor link + Interfaces removal (the in-place sponsor lookup can now link an existing sponsor, not just create one; the Pretix/Sessionize "Interfaces" feature — admin view,sync-triggerEdge Function, mock API, and thesync_runstable + sync RPCs — is removed), and Sessionize sync sidecar (the Sessionize interface is re-introduced as a Docker sidecar driven by a new admin Interfaces menu — on demand only, with asessionize_endpointfield on events and a per-row Sync button), and Sessionize Excel import + slots optionset + real seed (the sidecar also imports the Sessionize "Sessions and speakers (advanced)".xlsx— creating speaker contacts, session links, andspeakerregistrations by email;slots.typeis now asession/service_sessionenum; the seed uses the real Global Power Platform Bootcamp (Austria) agenda + 50 attendees + 4 staff, with the event's endpoint set and speakers added via the Excel import), and Service sessions + Home redesign + feedback loop (a session is aservice_sessionwhen Sessionize marks itisServiceSessionorisPlenumSession; service sessions can't be checked in, have every registered staff member as their speaker, no material requirement, and no mic emoji; the Home Now/Next cards show all concurrent sessions as sub-sections when there's no pick; attendees who attended an over session (and aren't its speaker) get a pending-feedback pill on Home that clears once they rate it; and a session's speaker can see the rating + AI summary for their own session only after it's over), and Real-time clock toggle (a per-eventevents.use_realtime_clockflag, toggled in the admin Events view, switches the attendee app between the real system clock and the simulated mid-event clock for Live/Next/Done status; the simulated clock has no badge in the UI), and Post-event reporting + talk networking incentives (a per-eventtalk_networking_bonusawarded when two people who shared a checked-in talk accept a connection, a Convivo Networking sub-tab inside the Connect screen that lists the "also attended" cohort per talk (the Home "Networking" quick action deep-links into it), a new APPE Admin Reports view with an on-screen post-event summary + session-feedback summary and CSV / Excel / PDF export served by a new sidecarPOST /exportendpoint, and a per-session aggregate header in the Activity session-feedback tab), and — since that paragraph was written — production deployment (appe.atsubdomains, TLS, NPM), Pretix ticket sync (every-minute sidecar import; it superseded the seed attendees), badge printing (the earlier "evaluated and skipped" decision was reversed — pgmq queue + Pi stations, see backend/printing.md), and the 2026-10-19 round (welcome check-in +10 + restore-on-toggle + visible staff exclusion, Sessions view with bulk AI summaries, silent admin refresh,POST /llm-testconnection validation, tooltip viewport containment, pending-material deep link; deployed — releases/2026-10-19.md). Remaining work is listed under Known work below.
Done
Phase 0 — Dockerized Supabase core ✅
- Full schema (13 tables), RLS on every table, transactional points RPCs.
- Seed: 1 real event (Power Platform Bootcamp AT), 10 slots, 22 sessions, 54 contacts (50 attendees + 4 staff), 54 registrations (QR token = auth password). Speakers are added via the Excel import, not the seed.
- Runs via the Supabase CLI (
supabase start/supabase db reset). - Details: backend/README.md.
Phase 1 — Attendee web PWA ✅
- Login (QR + email, no email sent), Home, Agenda, Scan/Connect, staff Check-in, Feedback, live Leaderboard, Profile.
- Same-origin proxy to Supabase (Vite dev / nginx in Docker).
- Docker: multi-stage build → nginx sidecar on the Supabase network.
- All flows browser-tested; Docker build + proxy + login verified.
- Details: frontend/README.md.
Phase 2 — Admin console (Convivo Admin) ✅
A separate desktop-first web app on :3001, guarded to the admin role.
- Login — same QR + email flow, but guarded: non-admin accounts are signed out and rejected ("This account is not an admin").
- Dashboard — live stats + top points + recent activity.
- Attendees — searchable table; edit name/company/role, view + reset QR
token (new
reset_qr_tokenRPC), adjust points (viaadjust_points). - Schedule — manage slots + sessions (create/edit/delete).
- Activity — check-ins, connections, and feedback tables.
- Same-origin proxy to Supabase (Vite dev on :3001 / nginx in Docker).
- Docker:
convivo-adminservice on :3001, same network + proxy pattern. - All views + flows browser-tested; Docker build + proxy + login verified.
- Details: frontend/admin-app.md.
Note: Phases 0–2 built the
profiles-based single-event model. Phase 3 replaced that schema; Phase 4 rebuilt this console on the new model and rebranded it to APPE Admin.
The Redesign (Phases 3–6) — ✅ complete
All four redesign phases are done and browser-verified. The specs below are kept as the record of what was built.
Phase 3 — Data model ✅
A new migration (20260824000000_redesign.sql) + seed rewrite. The profiles
table is dropped; everything is re-scoped to event + contact.
New tables
- contacts (PK =
email):full_name,linkedin_url(null),show_email/show_linkedin(visibility toggles, default off),is_admin(default false),qr_token(unique — the login password),created_at. Mirrorsauth.users(email + bcrypt(qr_token) inencrypted_password). - events:
id,name,start_date,end_date,location,is_active(partial unique index → at most one active), + maintained aggregate columns:avg_feedback,num_sessions,num_speakers,num_registrations,num_checked_in_registrations. - registrations:
id,event_id,contact_email,type(attendee|speaker|staff|sponsor, defaultattendee),checked_in(default false). Unique(event_id, contact_email).sponsortype only allowed if a sponsor lookup is filled (enforced in RPC/trigger). - sponsors:
id,event_id,type(headline|platinum|gold|silver|community|swag|catering|diversity),name,email,phone,paid(default false — unpaid hidden from the list),amount_eur,contact_email(nullable lookup),created_at.
Changed tables
- slots: +
event_id, +type(session|lunch_break|coffee_break|keynote|close_up). - sessions: +
event_id, +average_feedback(numeric, null),ai_generated_feedback(text), +material_path(text, null — storage object path).
- session_speakers (new join):
session_id+contact_email, PK on both. A session must have ≥1 speaker (trigger). - preferences / connections / checkins / feedback / leaderboard / points_log:
re-scoped to
event_id+contact_email(replacingprofile_id). - Drop:
profiles.
RPCs
- New:
get_active_event(),upsert_contact(create-if-not-exists by email — the interface flow),create_registration(contact lookup; enforces sponsor rule),set_registration_type,evaluate_session_feedback(admin stub). - Updated:
submit_feedback(recalcsession.average_feedback+ setai_generated_feedbackstate + event avg),checkin_attendee(guard =contact.is_admin),lanyard_lookup(contact + registration type for the active event, respecting visibility toggles),reset_qr_token(on contact),adjust_points(per event/registration).
RLS + storage
- Rewrite policies for the new tables. Contacts: own or
is_admin. Sponsors: onlypaid = truevisible to non-admins. Schedule/registrations readable per active event; admin writes. - New
materialsstorage bucket (read for event attendees, write for speakers/admins).
Phase 4 — APPE Admin ✅
Rebranded "Convivo Admin" → APPE Admin (title, sidebar, manifest, docs) and rebuilt the views on the new model:
- Dashboard — active event card (name, dates, location, aggregates) + top points + recent activity; graceful "no active event".
- Contacts — table (email, name, LinkedIn, visibility toggles,
is_admin, QR token); edit; reset QR; toggleis_admin; set visibility. - Registrations — per active event; list (contact, type, checked-in); change type (enforce sponsor rule); mark checked-in.
- Sponsors — list (paid only visible to attendees; admin sees all); add/edit (type, name, email, phone, paid, amount, contact lookup).
- Schedule — slots (with type) + sessions (speakers 1:N, material upload,
average_feedback,ai_generated_feedback+ "Evaluate" stub button). - Activity — check-ins / connections / feedback (per active event).
- Event management — create event, toggle active/inactive (only one active at a time), edit dates/location.
Phase 5 — Convivo App ✅
- Login ≥24h —
jwt_expiry= 86400 inconfig.toml; session persists in localStorage. - 5s visibility-aware polling — poll schedule/connections/points every 5s
only while
document.visibilityState === 'visible'; no background polling. - Staff-only check-in — guard =
contact.is_admin. - QR type badge — scanning a peer shows their registration type (Attendee/Speaker/Sponsor/Staff).
- Pending-connection red dot — subtle red dot (top-right) on the Connect
box when there are pending incoming requests (
activeclass/id). - Speaker material — speakers see a subtle non-dismissible notification
until material is uploaded; upload in-app (to
materials); once uploaded the notification disappears and the material is downloadable by all event attendees (not just check-ins). - Browser-accessible — responsive layout works in a desktop browser.
- No active event — graceful empty state.
Phase 6 — Branding ✅
https://www.appe.at/assets/appe_full.pngas favicon + PWA icon (192/512) for both apps. Updatedindex.html+manifest.webmanifest+public/.
Sessionize sync sidecar — ✅ complete
A new round (migrations 20260831000000_sessionize_sidecar.sql +
20260832000000_slots_enum_excel_import.sql, a new apps/sidecar/ service +
admin UI), verified end-to-end. The Sessionize interface is re-introduced with
a different architecture: a Docker sidecar instead of the removed Edge Function
- mock API. It runs on demand only (no scheduling). There are two import
paths: the API sync (
/run) and the Excel import (/import-excel).
Event field + per-row Sync.
events.sessionize_endpoint(the Sessionize API URL) is editable in the Events create/edit modal;events.last_synced_atstamps the last run.- Each event row has a Sync button (disabled-hint when no endpoint is set); it runs a blocking sync and shows a result modal (counts + errors).
The sidecar (apps/sidecar/, :3002).
- Node 20; one runtime dep (
xlsx, to parse the Excel export).GET /health,GET /status,POST /run(blocking),POST /import-excel(blocking,multipart/form-data). - API sync (
/run): reads the event's endpoint and fetches it as-is (the public/view/endpoint needs no key). IfSESSIONIZE_API_KEYis set it is sent asX-Sessionize-API-Key(needed only for an/api/endpoint, which is what returns speaker emails). Transforms, then calls the RPC. - Excel import (
/import-excel): the admin uploads the Sessionize "Sessions and speakers (advanced)".xlsx(generated on the fly by any organizer with admin access to the event). The sidecar parses the two sheets (Accepted sessions + Accepted speakers) and callssync_sessionize_excel. - It is the first server-side holder of the service-role key (compose env, defaulting to the standard local key). See backend/sidecar.md.
- Wired into the admin via a same-origin
/sidecar/proxy (nginx in Docker, Vite in dev) — CORS-free, matching the existing Supabase proxy pattern.
The RPCs.
sync_sessionize_event(event_id, payload)— API sync.security definer, service-role only (JWT role claim; granted toservice_roleonly). Imports, in order: (1) speakers → contacts (matched by email), (2) sessions (upserted byexternal_id), (3) the agenda (slots find-or-created by date/start/end +session_speakerslinks, diffed so thesession_needs_speakertrigger never blocks a removal). No registrations are created — the public/view/payload has no speaker emails, so speakers are skipped (reported).sync_sessionize_excel(event_id, payload)— Excel import. Same shape plusis_service_sessionper session andlinkedin_urlper speaker, and one extra step: (3) aspeakerregistration for every speaker (create, or updateattendee→speaker; never overridesstaff/sponsor). The Excel carries emails, so the contact-level match is reliable — this is the path that creates the missing speaker contacts + registrations.- Both are idempotent (re-run updates in place); per-item errors collected into
errors[]. Both write an event-scopedsync_runsaudit row (admin-readable via RLS;source=sessionize/sessionize_excel).
Slots type optionset.
slots.typeis now a Postgres enum (slot_type): exactlysession/service_session(not freetext).service_session= breaks / lunch / closing (Sessionize'sisServiceSession). The admin Schedule view shows Session / Service Session and can create/edit slots (theslots.idsequence default was added so the UI need not supply an id).
Admin Interfaces menu.
- New
🔌 Interfacesview: sidecar status (online/running/last run), a Run sync control (event picker + blocking run + result modal), an Import Excel control (upload the.xlsx+ a "How to get this file" tooltip), and a Recent runs table fromsync_runs.
Seed (real data).
- The seed now uses the Global Power Platform Bootcamp (Austria): the real
agenda (22 sessions, 10 slots) from the Sessionize API, 50 made-up
attendees, and 4 staff (Amelia Hernandez, Sabrina Hota, Jose Lago, Markus
Franz — all
@appe.at,is_admin, passwordappe-admin-2026). The event'ssessionize_endpointis set. Speakers are not seeded — run the Excel import to add them. See backend/seed.md.
Existing-sponsor link + Interfaces removal — ✅ complete
A polish round (migration 20260830000000_remove_interfaces.sql + app changes),
all browser-verified.
In-place sponsor lookup can link an existing sponsor.
- The sponsor lookup popup (opened when a registration is set to
sponsorwith no sponsor yet) now lists the event's existing sponsors in a dropdown. Picking one pre-fills the form (type, name, email, phone, amount, paid) and the save button reads Link sponsor & set type; leaving it on — Create new — keeps the original create flow. On save it upserts the sponsor linked to the contact's email, then sets the registration type tosponsor.
The Pretix/Sessionize "Interfaces" feature is removed.
- Admin UI — the Interfaces nav button +
Sync.tsxview are gone; the sync API helpers (triggerSync,getSyncRuns,exportQrCsv,SyncResult) and theSyncRuntype are removed from the admin client. - Edge Function —
supabase/functions/sync-trigger/is deleted. - Mock API —
interfaces/mock-api/and itsdocker-compose.ymlservice are deleted. - DB — migration
20260830000000_remove_interfaces.sqldrops thesync_pretix_attendees/sync_sessionize_sessionsRPCs, the_ensure_auth_user/_map_ticket_typehelpers, and thesync_runstable. Theexternal_idcolumns are kept (harmless, nullable, reserved for a future external system).
Fixes & Refinements — ✅ complete
A cross-cutting polish round (migration 20260826000000_registration_qr_token.sql
- app changes), all browser-verified.
Datamodel — QR token moves from contacts to registrations.
- The token is a property of the registration (generated per event by
Pretix), not the contact.
contacts.qr_tokenis dropped;registrations.qr_tokenis added (partial unique indexregistrations_qr_token_uniq). lanyard_lookup,create_connection_request, andcheckin_attendeenow resolve tokens viaregistrations+ the active event.reset_qr_token(contact)is replaced byreset_registration_qr_token(email)(admin-only; regenerates the active-event registration's token + re-hashes the Auth password + clears sessions).upsert_contactno longer takes a token;create_registrationgenerates one and syncs it as the password.- The Pretix sync writes the token to the registration (keeps the existing token on re-sync so a lanyard is never invalidated).
Registration types.
- Type pills have distinct colors; red is reserved for Staff (both apps).
- Roles are shown capitalized in both apps (Attendee / Speaker / Sponsor / Staff). "Attendee" is not shown at the bottom of the Home screen (it's the default); it is shown (capitalized) on Profile, Login, Scan, and Connections.
- The reset-token button is removed from the Contacts view (meaningless now that the token lives on the registration) and moved to the Registrations view (per-registration QR + reset).
Sessions (APPE Admin).
- Slot types are shown capitalized (Session, Keynote, Lunch Break, …).
- The session list shows whether material was submitted / not submitted.
- Speaker selection is a multi-select search dropdown (search + chips), replacing the checkbox list.
- Fixed: editing a session no longer fails with "a session must have a
speaker" —
setSessionSpeakersnow diffs (insert the new set, then delete only the removed ones) instead of delete-all-then-insert, so thesession_needs_speakertrigger (which counts the row being deleted) never fires. This also fixes the file-upload bug (the speaker save no longer aborts before the material upload runs).
APPE Admin — Sponsors.
- The sponsor contact lookup is a search field (filter + click-to-pick), not a dropdown of all contacts.
Convivo App.
- Other people's QR codes are hidden — the connection detail sheet shows public info + points only (no QR).
- Connect red dot — any interaction with the connection logic (accept /
decline / send) dispatches a
connections-changedevent; the Shell recalculates the dot immediately (stays while any incoming request is pending, clears when none are). 5s polling remains as a fallback. - Connect menu — clicking any connection (connected or requested) opens a sheet with that person's public info + their points.
- "My picks today" — shows only 2 rows (current + next slot's pick); "tap to change" is a hyperlink to the Agenda.
Admin password + profile self-service — ✅ complete
The Admin password-login details below record the original milestone, not the current UI. Admin now uses only email magic links, with no password-change prompt. Database passwords and Convivo attendee/staff password login remain unchanged.
Migration 20260827000000_admin_password_profile.sql + app changes, all
browser-verified.
APPE Admin login = email + password (event-independent).
contacts.password(admin-only) records the APPE Admin login password. To work it must match the bcrypt hash inauth.users.encrypted_password— set directly in Supabase (no self-service UI/procedure).- The admin app's Login screen is now Email + Password (was QR token).
AuthContext.signIn(email, password)still callssignInWithPassword+ theis_adminguard. - Design decision: Supabase Auth has one password per user. The dedicated admin uses a real password (works for any event). Staff (Bruno/Rita) keep their QR tokens as their Auth password — they can still log into the attendee app, and can also open the admin app with email + QR token.
- Seed: the admin's password is
appe-admin-2026(in bothcontacts.passwordandauth.users.encrypted_password); all other contacts havepassword = NULL.
Convivo App — Profile self-service.
- New Profile settings card: a LinkedIn URL input + two visibility toggles ("Show my email" / "Show my LinkedIn") + Save profile.
- Saving calls the new
update_my_profile(p_linkedin_url, p_show_email, p_show_linkedin)RPC (security-definer, scoped tocurrent_email(), limited to those 3 columns) — needed because thecontactsUPDATE policy is admin-only, so an attendee can't update their own row via PostgREST. - Visibility is enforced server-side: the public projection
(
lanyard_lookup/get_public_contacts) nullslinkedin_urlwhenshow_linkedinis off and omits the email whenshow_emailis off, so the toggles actually control what other attendees see.
Staff exclusions + password sync — ✅ complete
Migration 20260828000000_staff_exclusions_password_sync.sql + app changes, all
browser-verified.
Setting contacts.password now works for login.
- A trigger (
trg_contact_password_sync) re-hashescontacts.passwordintoauth.users.encrypted_passwordwhenever it's set/changed, so entering a password on the contact row in the Supabase Table Editor makes it work withsignInWithPasswordimmediately (previously the two had to be kept in sync by hand). A one-time reconciliation in the migration synced any already-set passwords. - This is how a staff member (e.g. Bruno) can be given a password and log in.
Staff are excluded from the leaderboard.
_sync_leaderboardskips (and removes) staff rows, so staff never appear on the board even if they hold points.get_leaderboard()also filterstype = 'staff'(defense in depth), and the seed no longer inserts staff.- Affects the attendee Leaderboard and the admin Dashboard "Top points".
Home / Agenda / Profile are identical for every role.
- Home: the quick-action tile is always "Scan & connect" (was "Check-in" for staff) and the footer role badge is removed. The tab bar label is always "Scan" (was "Check-in" for staff).
- Staff keep their check-in capability inside the Scan screen (the Attendee/Staff mode toggle), so the home page stays role-agnostic.
- Profile: the duplicate Staff pill is gone (the registration-type pill
already shows "Staff" for staff; the extra
is_adminpill only shows for admins whose type isn't staff). - Agenda session sheet: "Download material" moved to the bottom of the button stack (below "Pick this session") with proper spacing.
Registration optionset + speaker promote + welcome check-in — ✅ complete
Migration 20260829000000_registration_type_optionset_speaker_promote_welcome_checkin.sql
- app changes, all browser-verified.
registrations.type is now a Postgres ENUM (public.registration_type).
- The
textcolumn (with its old CHECK constraint + text default) is converted to the enum; the old CHECK and default are dropped first (they can't be auto-cast), then the enum default is set. - The admin RPCs (
create_registration,set_registration_type) takep_type textand now cast it to the enum on write.
Speaker auto-promote trigger.
session_speakers_speaker_promote(after insert onsession_speakers) promotes a contact's active-event registration fromattendee→speaker. One-way (removing a speaker never demotes) and never overrides an explicitstaff/sponsorticket. The seed states the final types explicitly.
Welcome check-in (staff).
- New
welcome_checkin(p_attendee_qr)RPC (staff-only): resolves the attendee by QR for the active event and setsregistrations.checked_in = true(no points). - The Convivo Scan screen's Staff mode has a check-in type toggle
(uiverse switch) switching between Session check-in (existing dropdown +
checkin_attendee) and Welcome check-in (welcome_checkin).
Admin Registrations: final QR token + in-place sponsor lookup.
- The Reset token button is gone — the token is final (generated per event). The QR modal now says "This token is final…".
- Setting a type to Sponsor when no sponsor lookup exists opens an in-place sponsor popup (create the sponsor linked to the contact, then set the type) instead of just erroring.
Convivo Home: always-on Now/Next + pending-material pill.
- The Now and Next cards always render (with a "No pick yet" placeholder when there's no pick), so the layout is identical for every role.
- Speakers with one or more sessions missing material see a red
📎 {n}pill (left of the points pill); tapping it opens a popup listing the pending sessions. The pill disappears once every session has material.
Convivo Agenda: speakers can delete their material.
- A speaker of a session with material sees a 🗑 Remove material button
(deletes the storage object + clears
material_pathviaset_session_materialnull) so they can re-upload.
Seed: staff passwords.
- Bruno and Rita now have
contacts.password = 'appe-admin-2026'so the Convivo staff QR login (QR + staff password) works out of the box after a reset.
Service sessions + Home redesign + feedback loop — ✅ complete
Service sessions (new slot semantics). A session is a service_session when
Sessionize marks it isServiceSession or isPlenumSession (the sidecar maps
both; the Excel path matches service/break/lunch/closing/plenum in the
Session Format column). Service sessions:
- can't be checked in —
checkin_attendeeraisesservice sessions cannot be checked in, and the Scan check-in dropdown excludes them. - have every registered staff member as their speaker — both sync RPCs call
the new
_assign_service_session_speakershelper for service sessions. - have no material requirement — excluded from the pending-material pill and the Agenda upload notice.
- never show the mic emoji — no "🎤 you" tag and no mic in the speaker pill.
Home redesign. The Now and Next cards now show all concurrent
sessions as clean sub-sections (title + room + speaker) when the user has no
pick — so a slot with 1, 2, or 3 sessions renders 1, 2, or 3 sub-sections — and
fall back to "Nothing scheduled" when the slot is empty. My picks today lists
every pick the user has made (in slot order) with a "No picks yet" empty state.
The demo clock (EVENT_DATE) now matches the seed's event day (2026-02-20) so a
slot is live.
Feedback loop.
- Attendee: anyone checked into an over session (any registration type, except the session's own speaker) sees a "⭐ Rate your last session" pill on Home while feedback is pending; it disappears once they submit.
- Speaker: a session's speaker can see the rating + AI summary for their own session in the Agenda sheet — only after the session is over, never during.
Migration: 20260833000000_service_sessions_feedback.sql
adds _assign_service_session_speakers, re-creates checkin_attendee (service
guard) and both sync RPCs (service-session typing + staff speakers).
Real-time clock toggle — ✅ complete
A per-event flag lets the admin decide, in real time, whether the attendee app drives slot status (Live/Next/Done) from the real system clock or the simulated mid-event clock (the default, so the demo always looks live).
- Schema:
events.use_realtime_clock(boolean, defaultfalse). - Admin: a Real-time clock toggle in the Events create/edit modal
(on = real clock, off = simulated). Saved via
upsertEvent. - App:
useEvent()picksnowfrom the flag —new Date()when on,DEFAULT_NOWwhen off — and exposesclockMode('realtime'|'simulated'). Neither mode shows a badge in the UI (the simulated clock is a demo aid only, attendees are not told about it). With the real clock on and the event in the past, every slot isdone(no Now/Next card); with it off, the simulated clock restores the live slot. - Migration:
20260834000000_event_realtime_clock.sql.
Post-event reporting + talk networking incentives — ✅ complete
A round (migration 20260920000000_talk_networking.sql + app + sidecar changes),
verified end-to-end (18/18 RPC tests, all three export formats). Badge
printing was evaluated and skipped by decision — no printing feature was built.
Talk networking incentives.
events.talk_networking_bonus(integer, default2;0disables) — the bonus each party earns when two people who were checked into the same session (talk) accept a connection. Awarded with the newtalk_networkingpoints category (thepoints_log.categoryCHECK was widened to include it).accept_connectionwas re-created to compute the shared-check-in overlap and award the bonus (through_award_points, so the leaderboard sync + staff exclusion are inherited), and to return ashared_talkflag. One-shot, so it can never double-award; check-ins after acceptance don't retro-award.get_talk_cohort(p_session_id)— the other attendees (staff excluded, self excluded) checked into a session, for the Networking screen.- Convivo app: a Networking sub-tab inside the Connect screen (the
Home "Networking" quick action deep-links into it) lists, per talk the user
is checked into, the "also attended" cohort with a Connect button; the
Profile points breakdown shows the
Talk networkingcategory. - APPE Admin: a Talk networking bonus input (0–10) in the Events create/edit modal.
Post-event reporting / export.
- Sidecar
POST /export({ event_id, format: csv|xlsx|pdf, tables? }) fetches the event's full dataset (service role) and renders it: a combined CSV (atablecolumn), a multi-sheet XLSX (one sheet per table), or a structured PDF post-event report (newpdfkitdependency). Returns{ filename, mime, content_base64 }; unknown event → 404, empty tables → a valid file with headers only. - APPE Admin Reports view — works for any event (active or past): an on-screen summary (registrations by type, check-ins, connections, session + event feedback averages, points by category, top-5 leaderboard), a session feedback summary table (per-session average + response count), and CSV / Excel / PDF download buttons (base64 → browser download).
- Activity → Session feedback gains a compact per-session aggregate header (average + count per session).
Session language tag (Sabrina's backlog) — ✅ complete (2026-10-21)
Migration 20261021090000_session_language.sql + sidecar + both apps. Sessions
now carry a language tag shown everywhere level/area are.
Where the data comes from. Sessionize has no first-class language field (verified against the live GPB endpoint + their docs). Organizers model it as a session category titled "Language" — Sessionize's own demo endpoint does exactly this. Two consequences:
- The sidecar (
sessionize-transform.js) resolves each session'scategoryItemsagainst the top-levelcategoriesarray (title match on "Language", case-insensitive; bare item ids on/view/All, full objects on other views) and sends a plainlanguagestring. A nativesession.languagewins if Sessionize ever adds one. - Organizer precondition: categories only appear on the API endpoint when
session custom fields are ticked on the event's API/Embed page. Until Sabrina
has the GPB organizer (a) create a "Language" category with items and tag the
sessions, and (b) enable custom fields on the endpoint, live syncs keep
languagenull and the UI filter stays hidden (same render-when-present pattern as level/area). The Excel import (Language/Sprache / Languagecolumn) is the fallback that works without touching the endpoint.
Plumbing. sync_sessionize_event/sync_sessionize_excel upsert language
with the same coalesce(excluded, existing) rule as level/area — sources that
don't publish it never erase it. get_agenda() returns it (drop + recreate —
OUT shape changed — plus re-grants). Seed sets English for all talks + German
for the two German-titled sessions so the feature is demoable locally.
Service sessions are always English. Product rule added by
20261021103000_service_language_english.sql: both sync functions force
language = 'English' for any session flagged is_service_session (covers
Sessionize, GridSmart and Excel paths — it overrides even an explicit tag);
existing service rows were backfilled, seed mirrors the rule, and the suite
grew to 11 assertions.
2026-10-21 production update: the live prod GridSmart feed for
Community Day 2026 turned out to carry per-session language values — the next
sync wrote Deutsch ×10 + English ×12 on regular talks (services English by
the forced rule), so the agenda filter/pills are live on real data without any
organizer action. The "Language category + custom fields" precondition above
applies only to Sessionize endpoints.
UI. Agenda gains a third filter dropdown ("All languages") and a 🌐 pill in SessionDetail; APPE Admin's Sessions search + cell subtitle include language. Free-text values are kept verbatim ("German" ≠ "DE" ≠ "Deutsch" are distinct filter entries) — normalization to ISO codes is a possible follow-up.
Tests. supabase/tests/session_language_tests.sql (11 assertions incl.
the service-English rule),
apps/sidecar/tests/sessionize-transform.test.js (7) + a Language-column case
in transform-excel.test.js; verified against the real Sessionize demo payload
(10/11 sessions get a language, service sessions stay null → now forced
English by the RPCs).
Material downloads unlock at the session end — ✅ complete (2026-10-21)
Product rule (Sabrina): uploaded session material must not distract attendees mid-session, but must be available to everyone (time-based, attendance not required) once the session's schedule ends — and users must always see that a speaker uploaded material even while the download is locked.
- Enforced at the storage layer, not the UI:
20261021180000_material_time_lock.sqlmakes thematerialsbucket private and replacesmaterials_readwithcan_read_session_material(bucket, name): admins and the session's own speakers anytime; everyone else only afterslot_date + end_time(Europe/Amsterdam wall time, matching the client's existingslotStatus === 'done'rule). A leaked path/URL releases nothing early. - Always-visible existence: the agenda card 📎 pill already renders from
material_path(unchanged,get_agendastill returns it); SessionDetail shows a "📎 Material uploaded — unlocks at HH:MM" panel (material-locked) while locked, and a download button once unlocked or for the speaker. - Clients: attendee app downloads via authenticated
storage.from('materials').download()(blob + filename); admin app switched to short-livedcreateSignedUrl. NogetPublicUrlremains in any app. - Tests:
supabase/tests/material_time_lock_tests.sql— 12 assertions (bucket private, outsider locked/unlocked by time, speaker/admin bypass, malformed/foreign-bucket rejection, event-local boundary, anon exclusion).
Known work (open as of 2026-10-19)
- E2E seed drift — 42 specs currently red. The pretix reseed removed the
demo identities
e2e/src/helpers/config.tshardcodes, ande2e/src/helpers/reset.tsonly updates those rows (a no-op against missing contacts), so every login-based spec hangs until timeout. Fix: makereset.tsupsert the demo contacts / registrations / auth users the wayensureSponsorand the newer self-provisioning specs (checkin-points.spec.ts,CONV-MATERIAL-005) already do; new real-backend specs should provision their own fixtures. Full diagnosis + the failing-family list in backend/tests.md. - Pretix skipped positions are anonymous. The dialog and sidecar log report
only a count; which order was skipped and which field (email/name) was
missing is nowhere, and
sync_runs.skippednever sees it (the drop is client-side). Log + surface order code, item and missing field; decide whether organiser-held €0 tickets without an attendee name need explicit handling instead of a skip. Details in backend/pretix.md. - Operator action, no deploy: pretix order
QRJZN(paid, €0.00, no attendee name) needs its name filled in pretix; the every-minute sync imports it automatically afterwards. Until then that paid ticket has no registration and its holder cannot enter the app.
Cross-cutting / later
- Subdomains — done:
convivo.appe.atandadmin.appe.atare live behind Nginx Proxy Manager with TLS;db.appe.atremains reserved and unused. Access- evidence in deployment.md.
- Push notifications — connection requests are currently seen when the app is opened. (Out of scope for v1.)
- Testing — done: SQL RPC suites, sidecar unit tests and a 31-file Playwright suite exist (backend/tests.md); what remains is the seed-drift repair above.
Open decisions (need user input)
None open. Formerly listed here and now resolved: the AI provider (an
admin-configured OpenAI-compatible endpoint, live at ai.lago.dev, see
backend/feedback-ai.md) and the deployment target
(the appe.at VM, see deployment.md).
How to pick up work
- Read architecture.md for the system overview.
- For a phase, read the relevant component docs (backend or frontend) and the source of truth files they link to.
- Keep the docs updated in the same change that changes behavior (see the conventions in README.md).