Post-event reporting + talk networking incentives

- Talk networking: per-event talk_networking_bonus awarded when two people
  who shared a checked-in talk accept a connection (accept_connection
  re-created, shared_talk flag, get_talk_cohort RPC, points_log category
  check widened); Convivo Networking sub-tab inside the Connect screen
  (Home quick action deep-links in; Connect button reflects existing
  connection state and is disabled for sent/connected/declined); admin
  Events view bonus input (0-10).
- Reports: sidecar POST /export (CSV / multi-sheet XLSX / PDF report via
  new pdfkit dep); APPE Admin Reports view (any event: on-screen summary,
  session feedback summary, top-5, CSV/Excel/PDF downloads); Activity
  session-feedback per-session aggregate header.
- Also carried: @appe.at admin trigger + default password, bulk contact
  delete, session level/area + event-level feedback, agenda level/area
  filters, admin password self-service, schedule level/area fields.
- 18/18 RPC tests; both apps build; exports verified end-to-end.
This commit is contained in:
Lago committed 2026-09-21 22:34:25 +02:00
1 parent 08ab41898b
commit 3adc0fd58f
35 files changed
+3973 -54

No files matched your search

+21 -2
View File
@@ -63,8 +63,9 @@ apps/admin/src/
├─ Sponsors.tsx # sponsor CRUD
├─ Schedule.tsx # slots + sessions + speakers + material + AI-evaluate
├─ Activity.tsx # check-ins / connections / feedback tables
├─ Events.tsx # event management (+ sessionize_endpoint + per-row Sync)
└─ Interfaces.tsx # sidecar status / run / recent runs
├─ Events.tsx # event management (+ sessionize_endpoint + per-row Sync + talk networking bonus)
├─ Interfaces.tsx # sidecar status / run / recent runs
└─ Reports.tsx # post-event summary + CSV / Excel / PDF export (sidecar /export)
```
## Data access
@@ -117,6 +118,24 @@ The Schedule view uploads a session's material to the `materials` bucket and set
`sessions.material_path` (admins can write `sessions` directly). The **Evaluate**
button calls `evaluate_session_feedback` (the AI stub) to set
`ai_generated_feedback`.
### Reports (post-event summary + export)
The **Reports** view is the post-event reporting surface. It works for **any**
event (active or past) — the event selector defaults to the active event but can
pick a past one.
- **On-screen summary** — computed client-side from the same reads the export
uses: registrations (by type), check-ins, connections (total / accepted),
session feedback (count + average), event feedback (count + average), points by
category, and a top-5 leaderboard.
- **Session feedback summary** — a per-session table (title, room, average
rating, response count) sorted by average; this is the post-event session
feedback summary.
- **Export** — three buttons call the sidecar's [`POST /export`](../backend/sidecar.md#http-api):
**Download CSV**, **Download Excel**, **Download PDF report**. CSV/XLSX include
the tables ticked in the checkbox list (default: all); the PDF always uses the
full dataset. The response's base64 body is decoded and downloaded in the
browser (`downloadReport` in `lib/api.ts`).
## Styling
+32 -4
View File
@@ -12,10 +12,11 @@ from `useAuth()` (`contact` + `registration`).
| Home | `Home.tsx` | tab (default) |
| Agenda | `Agenda.tsx` | tab |
| Scan | `Scan.tsx` | tab (staff get an Attendee/Staff mode toggle inside) |
| Connections | `Connections.tsx` | tab |
| Connections | `Connections.tsx` | tab (hosts a **Networking** sub-tab; Home's "Networking" quick action deep-links into it) |
| Profile | `Profile.tsx` | tab |
| 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") |
## Login
@@ -156,7 +157,8 @@ Data: `useEvent()` (for the session list) + the RPCs above.
## Connections
Two tabs: **My connections** and **Requests** (with a count badge).
Three sub-tabs: **My connections**, **Requests** (with a count badge), and
**🗣 Networking** (see [Networking](#networking-a-sub-tab-of-connections)).
- **My connections** — accepted connections (the other person's name +
registration type). **Clicking a row** opens a bottom **sheet** with that
@@ -167,8 +169,9 @@ Two tabs: **My connections** and **Requests** (with a count badge).
buttons (`acceptConnection` / `rejectConnection`), and outgoing (`from_email =
me`, pending) shown as "Sent". The person block is also clickable (same detail
sheet).
- Accepting awards +5 to both (see
[../backend/rpcs.md#accept_connectionp_connection_id--connections](../backend/rpcs.md#accept_connectionp_connection_id--connections)).
- Accepting awards +5 to both, **plus the per-event talk networking bonus** when
the two parties shared a checked-in talk (see
[../backend/rpcs.md#accept_connectionp_connection_id](../backend/rpcs.md#accept_connectionp_connection_id)).
- **Red dot** — any interaction with the connection logic (accept / decline / send)
dispatches a `connections-changed` window event; the Shell listens and
**recalculates the Connect red dot immediately** (it stays while any incoming
@@ -178,6 +181,31 @@ Two tabs: **My connections** and **Requests** (with a count badge).
Data: `getMyConnections()` + `getPublicContacts()` (names + types) +
`getLeaderboard()` (points for the detail sheet).
## Networking (a sub-tab of Connections)
A **sub-tab inside the Connect screen** (the third of My connections / Requests /
🗣 Networking; the screen header switches to "Networking" while it is active)
that rewards **networking around talks**. The Home "Networking" quick action
deep-links straight into it. Rendered by the `NetworkingPanel` component
(`Networking.tsx`). For every talk the user was checked into, it lists the
**other attendees who were also in that talk** (the "talk cohort") so the user
can make a connection.
- **Your talks** — the sessions the user is checked into (`getMyCheckins()`),
shown as cards (title, room, speakers).
- **Also attended** — for each talk, the other checked-in participants
(`get_talk_cohort(sessionId)` — staff excluded, self excluded), each with a
name + registration-type badge and a **Connect** button (the same
`createConnectionRequest` flow as the Scan screen).
- **Bonus** — when the event's `talk_networking_bonus > 0`, the header shows
"Connect with them to earn +N pts (shared talk)". Accepting a connection with
a shared talk awards the bonus (see
[../backend/rpcs.md#accept_connectionp_connection_id](../backend/rpcs.md#accept_connectionp_connection_id)).
- **Empty states** — "You haven't been checked into a talk yet…" (no check-ins)
and "No one else was checked in here yet." (a talk with no other attendees).
Data: `getMyCheckins()` + `getTalkCohort()` + the agenda (via `useEvent()`).
## Feedback
A **full-screen takeover** (no tab bar), opened from the Agenda session sheet.