feat: add sidecar service for Sessionize sync

- Introduced a new Node HTTP service (sidecar) to sync event agendas from Sessionize into Convivo.
- Implemented two import paths: API sync and Excel import for session and speaker data.
- Added necessary database migrations for sessionize integration, including new columns and audit tables.
- Created functions for handling speaker and session imports, ensuring proper error handling and logging.
- Established row-level security and grants for new functions to restrict access to service-role only.

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]>
This commit is contained in:
committed 2026-08-24 20:47:29 +02:00
1 parent a0bcf866dc
commit 5f8ded56f6
31 files changed
+2729 -390

No files matched your search

+24 -25
View File
@@ -75,7 +75,7 @@ Check-in tab.
### 4.3 Connections (the core loop)
1. While logged in, scan **another person's** lanyard QR.
2. A popup appears: *"Connect with Bruno Costa?"*
2. A popup appears: *"Connect with Felix Berger?"*
3. The other person sees the request in **Connections → Requests** and accepts (or rejects).
4. On acceptance, **both** earn points and both see each other in **My connections**.
@@ -196,7 +196,7 @@ Convivo/
├─ supabase/
│ ├─ config.toml # Local stack config (ports, auth, RLS defaults)
│ ├─ migrations/ # 20260824000000_redesign.sql + follow-up migrations
│ └─ seed.sql # 1 event, 6 slots, 18 sessions, 14 contacts, demo state
│ └─ seed.sql # 1 real event (Power Platform Bootcamp AT), 10 slots, 22 sessions, 54 contacts
├─ apps/admin/ # APPE Admin console (React + Vite + TS)
├─ docker-compose.yml # Runs the app sidecars on the Supabase network
└─ mockup/index.html # Original interactive mockup (design reference)
@@ -220,6 +220,7 @@ npm run db:reset
# 3. Run the apps (Vite dev servers, proxy to the core)
npm run app:dev # attendee app on :3000
npm run admin:dev # admin console on :3001
npm run sidecar:dev # Sessionize sync sidecar on :3002
```
Open **http://localhost:3000** (attendee) and **http://localhost:3001** (admin). Studio is at **http://localhost:54323** (user `postgres`, password `postgres`).
@@ -228,10 +229,10 @@ Open **http://localhost:3000** (attendee) and **http://localhost:3001** (admin).
# 1. Start the Supabase core (creates the supabase_network_Convivo network)
npm run db:start
# 2. Build + run both app containers (joins the Supabase network)
# 2. Build + run the app containers + sync sidecar (join the Supabase network)
docker compose up --build
```
Open **http://localhost:3000** (attendee) and **http://localhost:3001** (admin). Each app's nginx proxies the Supabase paths to the Kong container on the shared network.
Open **http://localhost:3000** (attendee) and **http://localhost:3001** (admin). Each app's nginx proxies the Supabase paths to the Kong container on the shared network; the admin also proxies `/sidecar/` to the sync sidecar (`:3002`).
> **Reset the demo data at any time:** `npm run db:reset` (re-applies migrations + seed).
@@ -241,6 +242,7 @@ Open **http://localhost:3000** (attendee) and **http://localhost:3001** (admin).
|---|---|
| Attendee app | **http://localhost:3000** |
| Admin console (APPE Admin) | **http://localhost:3001** |
| Sync sidecar (Sessionize) | **http://localhost:3002** (`/health`, `/status`, `/run`) |
| Supabase Studio | **http://localhost:54323** (user `postgres`, password `postgres`) |
| Supabase API (Kong) | http://127.0.0.1:54321 |
| Postgres (direct) | `postgresql://postgres:[email protected]:54322/postgres` |
@@ -251,32 +253,29 @@ Open **http://localhost:3000** (attendee) and **http://localhost:3001** (admin).
## 12. Demo accounts
**Attendees & staff** log in with **QR code** (typed or scanned) + **email** — the
QR token is the password. The **APPE Admin** logs in with **email + password**
(event-independent).
The seed uses **real data** from the **Global Power Platform Bootcamp (Austria)**:
the real agenda (22 sessions) plus **50 made-up attendees** and **4 staff**.
Speakers are **not** seeded — import them via **Interfaces → Import Excel** (the
Sessionize "Sessions and speakers (advanced)" `.xlsx`).
**Attendees** log in with **QR code** (typed or scanned) + **email** — the QR
token is the password. **Staff** log in with **email + password** in the admin
app (event-independent).
| Person | Role | Login | Email |
|---|---|---|---|
| **Ana Silva** | attendee | QR `CVV-ANA-4821` | ana.silva@nubank.com |
| **Bruno Costa** | staff | QR `CVV-BRU-1177` | bruno.costa@acme.com |
| **Rita Lopes** | staff | QR `CVV-RIT-9034` | rita.lopes@globant.com |
| **APPE Admin** | admin | **password** `appe-admin-2026` | admin@appe.at |
| Tomás Ribeiro | attendee | `CVV-TOM-5566` | tomas.ribeiro@dataprev.com |
| Sofia Almeida | attendee | `CVV-SOF-2299` | sofia.almeida@loop.com |
| Marco Chen | attendee | `CVV-MRC-7712` | marco.chen@deepmind.com |
| Julia Santos | attendee | `CVV-JUL-3345` | julia.santos@ifood.com |
| Pedro Nunes | attendee | `CVV-PED-8801` | pedro.nunes@microsoft.com |
| Carla Mendes | attendee | `CVV-CAR-6623` | carla.mendes@quintoessencial.com |
| Diego Ferreira | attendee | `CVV-DIE-4458` | diego.ferreira@stone.com |
| Marina Costa | attendee | `CVV-MNA-2210` | marina.costa@olx.com |
| Lucas Oliveira | attendee | `CVV-LUC-9987` | lucas.oliveira@usp.br |
| **Amelia Hernandez** | staff (admin) | **password** `appe-admin-2026` | amelia@appe.at |
| **Sabrina Hota** | staff (admin) | **password** `appe-admin-2026` | sabrina@appe.at |
| **Jose Lago** | staff (admin) | **password** `appe-admin-2026` | jose@appe.at |
| **Markus Franz** | staff (admin) | **password** `appe-admin-2026` | markus@appe.at |
| 50 attendees | attendee | QR `CVV-ATT-1000`…`CVV-ATT-1049` | e.g. lena.huber@gmail.com |
**Suggested demo flow:**
1. Log in as **Ana** (attendee) → see Home, Agenda, Leaderboard.
2. Scan **Marco** (`CVV-MRC-7712`) → send a connection request.
3. Log in as **Bruno** (staff) → the Scan tab becomes **Check-in** → pick a session → scan **Carla** (`CVV-CAR-6623`) → she gets +10.
4. Watch the **Leaderboard** update live.
5. Open the **APPE Admin** console on **:3001** → log in as **APPE Admin** (`[email protected]` / password `appe-admin-2026`) → see the Dashboard, reset a contact's QR, adjust points, and edit the schedule.
1. Open the **APPE Admin** console on **:3001** → log in as **Amelia** (`[email protected]` / password `appe-admin-2026`) → see the Dashboard (54 registrations, 22 sessions).
2. **Interfaces → Import Excel** → choose the Sessionize `.xlsx` → **Import** → speakers, session links, and speaker registrations are created.
3. **Schedule** → slots show **Session** / **Service Session** types; sessions list their speakers.
4. Log in as an **attendee** on **:3000** (QR `CVV-ATT-1000` + `[email protected]`) → see Home, Agenda, Leaderboard.
5. Scan another attendee → send a connection request; watch the **Leaderboard** update live.
## 13. Roadmap