Redesign Phases 3-6: multi-event model, APPE Admin, Convivo App behaviors, APPE branding
- Phase 3: new migration 20260824000000_redesign.sql (contacts/events/registrations/sponsors, slot types, session speakers + feedback/material), seed rewrite - Phase 4: APPE Admin rebrand + Contacts/Registrations/Sponsors/Schedule/Activity/Events views - Phase 5: Convivo App (24h login, 5s polling, QR type badge, red dot, speaker material) - Phase 6: APPE favicon + PWA icons for both apps - Docs: schema/rpcs/rls/seed/screens/api-client/admin-app/architecture/next-steps/README/roadmap updated
This commit is contained in:
1 parent
5adb5785aa
commit
22f5f1d317
64 files changed
+4593
-1371
No files matched your search
+13
-11
@@ -5,10 +5,10 @@ same-origin paths:
|
||||
|
||||
- **Attendee PWA** — a mobile-first single-page app in
|
||||
[`apps/convivo/`](../../apps/convivo/). The same app for attendees, staff, and
|
||||
admins — the user's `role` changes what they see (e.g. the Scan tab becomes a
|
||||
Check-in tab for staff).
|
||||
- **Admin console** — a desktop-first app in
|
||||
[`apps/admin/`](../../apps/admin/), guarded to the `admin` role. See
|
||||
admins — the user's `is_admin` flag changes what they see (e.g. the Scan tab
|
||||
becomes a Check-in tab for staff).
|
||||
- **Admin console (APPE Admin)** — a desktop-first app in
|
||||
[`apps/admin/`](../../apps/admin/), guarded to the `is_admin` flag. See
|
||||
[admin-app.md](./admin-app.md).
|
||||
|
||||
| File | What it covers |
|
||||
@@ -38,14 +38,15 @@ apps/convivo/src/
|
||||
├─ App.tsx # Providers + Shell (tab nav + Feedback takeover)
|
||||
├─ styles.css # All styling (ported from mockup/index.html)
|
||||
├─ context/
|
||||
│ ├─ AuthContext.tsx # session + profile + signOut
|
||||
│ ├─ AuthContext.tsx # session + contact + registration + signOut
|
||||
│ └─ ToastContext.tsx # transient toasts
|
||||
├─ lib/
|
||||
│ ├─ supabase.ts # createClient (same-origin)
|
||||
│ ├─ api.ts # typed wrapper over rpc/from
|
||||
│ ├─ types.ts # TS types mirroring the DB
|
||||
│ ├─ time.ts # event clock + slot status + formatting
|
||||
│ └─ useEvent.ts # loads the agenda once, exposes it grouped
|
||||
│ ├─ useEvent.ts # loads the active event + agenda, exposes it grouped
|
||||
│ └─ usePolling.ts # 5s visibility-aware polling hook
|
||||
├─ components/
|
||||
│ └─ ui.tsx # Avatar, Spinner, Empty, Sheet, QrImage, Scanner
|
||||
└─ screens/
|
||||
@@ -55,15 +56,16 @@ apps/convivo/src/
|
||||
|
||||
## Data flow (high level)
|
||||
|
||||
- **Auth** — `AuthContext` holds the Supabase session + the current `Profile`.
|
||||
See [app-structure.md](./app-structure.md#authcontext).
|
||||
- **Event data** — `useEvent()` loads the agenda once via the `get_agenda()` RPC
|
||||
and exposes it grouped by slot plus the event clock. See
|
||||
- **Auth** — `AuthContext` holds the Supabase session + the current `Contact`
|
||||
and `Registration`. See [app-structure.md](./app-structure.md#authcontext).
|
||||
- **Event data** — `useEvent()` loads the active event + agenda via the
|
||||
`get_agenda()` RPC and exposes it grouped by slot plus the event clock. See
|
||||
[app-structure.md](./app-structure.md#the-event-hook-useevent).
|
||||
- **Per-screen data** — each screen fetches what it needs through the typed
|
||||
[api client](./api-client.md) (e.g. Home fetches preferences + check-ins).
|
||||
- **Live updates** — the Leaderboard subscribes to Realtime on the `leaderboard`
|
||||
table. See [screens.md#leaderboard](./screens.md#leaderboard).
|
||||
table; Connections polls every 5s while the tab is visible (`usePolling`). See
|
||||
[screens.md#leaderboard](./screens.md#leaderboard).
|
||||
|
||||
The app only ever uses the **anon key + the user's session JWT**; all security is
|
||||
enforced by RLS in the database. See [../backend/rls.md](../backend/rls.md).
|
||||
Reference in new issue
Block a user