Check-in gate + fixes, RPC test suite, docs

- Convivo: not-checked-in gate for non-staff (see-a-staff screen with QR
  code + logout); lifts automatically once staff checks them in
- Convivo: fix check-in 'pick a session first' race (synchronous default
  session fallback)
- Add RPC test suite (npm run test:rpc): points idempotency, role guards,
  service-session guard, speaker auto-promote, leaderboard staff exclusion
- Fix db:types script (create packages/shared/src); gitignore generated types
- Docs: README/roadmap drift fixes, tests.md, backend README link
This commit is contained in:
Lago committed 2026-09-08 21:05:34 +02:00
1 parent 25ae8b6ee4
commit e4c8815e52
11 files changed
+559 -38

No files matched your search

+10 -5
View File
@@ -4,8 +4,9 @@ Living roadmap. The top section is the **current focus**; completed phases are
summarized below. For *how* each piece works, see [`docs/`](./docs/README.md).
> **Status:** Phases 0–6 are complete and verified. The **Redesign** (Phases
> 3–6) is done. Remaining work is cross-cutting (real event clock, deployment,
> automated testing).
> 3–6) is done. The real event clock is implemented as a per-event
> `use_realtime_clock` toggle. Remaining work is cross-cutting (deployment,
> automated testing, push notifications).
---
@@ -54,14 +55,18 @@ Convivo App gains several behaviors. Details live in
## Cross-cutting / later
- **Real event clock** — replace the simulated `DEFAULT_NOW` with `new Date()`.
- **Real event clock** — ✅ done as a per-event `use_realtime_clock` toggle
(migration `20260834`); the simulated `DEFAULT_NOW` is the default, the real
system clock is opt-in per event.
- **Subdomains** — `convivo.appe.at`, `admin.appe.at`, `db.appe.at` don't exist
yet; everything runs on localhost. DNS + TLS + a reverse proxy in front of the
Supabase core will be needed for a real deployment.
- **Push notifications** — connection requests are currently seen when the app
is opened (or via the 5s poll while visible).
- **Testing** — no automated tests yet. Candidates: RPC unit tests (points
idempotency, role guards, sponsor-type rule), and an E2E smoke test.
- **Testing** — ✅ RPC test suite added (`npm run test:rpc`, see
[docs/backend/tests.md](./docs/backend/tests.md)): points idempotency, role
guards, service-session guard, speaker auto-promote, leaderboard staff
exclusion. Still to add: an E2E smoke test.
## Open questions