feat: add magic-link admin login and speaker materials portal
This commit is contained in:
1 parent
3adc0fd58f
commit
8d8d3ae4b8
28 files changed
+1623
-232
No files matched your search
@@ -3,8 +3,9 @@
|
||||
Every screen in [`apps/convivo/src/screens/`](../../apps/convivo/src/screens/).
|
||||
All screens are mobile-first and use the shared UI components
|
||||
([app-structure.md#shared-ui-components](./app-structure.md#shared-ui-components)).
|
||||
Data comes from the typed [api client](./api-client.md); the current user comes
|
||||
from `useAuth()` (`contact` + `registration`).
|
||||
Data comes from the typed [api client](./api-client.md); the normal app's current
|
||||
user comes from `useAuth()` (`contact` + `registration`). The speaker portal
|
||||
uses its own auth lifecycle and backend-scoped session list.
|
||||
|
||||
| Screen | File | Reach |
|
||||
|---|---|---|
|
||||
@@ -17,6 +18,33 @@ from `useAuth()` (`contact` + `registration`).
|
||||
| Leaderboard | `Leaderboard.tsx` | from Home (points pill / quick action) |
|
||||
| Feedback | `Feedback.tsx` | full-screen takeover from Agenda |
|
||||
| EventFeedback | `EventFeedback.tsx` | full-screen takeover from Home ("Rate this event") |
|
||||
| Speaker Portal | [SpeakerPortal.tsx](../../apps/convivo/src/screens/SpeakerPortal.tsx) | `/speaker/secret` (also `/speaker`) |
|
||||
|
||||
## Speaker Portal
|
||||
|
||||
An email-only magic-link login for **existing Auth users**. The canonical
|
||||
redirect is `/speaker/secret`; `/speaker` is also accepted. Neither route is a
|
||||
secret credential: authorization is enforced by the backend. Failed/expired
|
||||
callbacks show a recoverable error and callback tokens/codes are removed from
|
||||
the address bar. Callback consumption is shared across StrictMode mounts.
|
||||
|
||||
Signed-in users see only their own assigned non-service talks with a `speaker`
|
||||
or `staff` registration for the corresponding event. Admin/organizer staff can
|
||||
also speak while retaining their staff category; service-slot assignments are excluded.
|
||||
The list spans all events, including
|
||||
inactive, past and future events. No physical check-in is required. An empty
|
||||
list grants no material controls; access/load failures offer retry.
|
||||
|
||||
Each talk shows event, date/time, room and material status, with upload,
|
||||
replacement, download and confirmed removal. Uploads accept non-empty PDF,
|
||||
PowerPoint, ODP, ZIP and TXT files up to 50 MB. Controls are disabled during a
|
||||
material operation; failures reload server state. Signing out is local to the
|
||||
browser session.
|
||||
|
||||
Portal operations never mark attendance or award points. Visiting `/` still
|
||||
uses the normal app's check-in gate. See [portal API behavior](./api-client.md#speaker-portal),
|
||||
[authorization](../backend/rls.md#speaker-portal-authorization) and
|
||||
[regression coverage](../backend/tests.md#speaker-portal).
|
||||
|
||||
## Login
|
||||
|
||||
@@ -39,7 +67,7 @@ A 3-step flow: **splash → scan → confirm**.
|
||||
mismatch, an error is shown ("Email and QR code do not match" for attendees,
|
||||
"That password is incorrect" for staff).
|
||||
|
||||
> No email is ever sent. See
|
||||
> This normal QR login sends no email; the separate speaker portal uses magic links. See
|
||||
> [../architecture.md#6-authentication-model](../architecture.md#6-authentication-model)
|
||||
> and [../backend/rls.md](../backend/rls.md).
|
||||
|
||||
|
||||
Reference in new issue
Block a user