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

+27 -2
View File
@@ -9,6 +9,7 @@ import { Connections } from './screens/Connections';
import { Leaderboard } from './screens/Leaderboard';
import { Profile } from './screens/Profile';
import { Feedback } from './screens/Feedback';
import { EventFeedback } from './screens/EventFeedback';
import { QrImage, Spinner } from './components/ui';
import { getMyConnections } from './lib/api';
import { usePolling } from './lib/usePolling';
@@ -26,7 +27,22 @@ function Shell() {
const { session, contact, registration, loading, refresh, signOut } = useAuth();
const [tab, setTab] = useState<Tab>('home');
const [feedbackSession, setFeedbackSession] = useState<string | null>(null);
const [eventFeedbackOpen, setEventFeedbackOpen] = useState(false);
const [pendingIncoming, setPendingIncoming] = useState(0);
// Which sub-tab the Connect screen opens on (default 'mine'; 'networking'
// when reached via the Home "Networking" quick action).
const [connectionsTab, setConnectionsTab] = useState<'mine' | 'req' | 'networking'>('mine');
// Home's `go` handles the tab ids; 'networking' routes into the Connect
// screen's networking sub-tab.
const go = (t: string) => {
if (t === 'networking') {
setConnectionsTab('networking');
setTab('connections');
return;
}
setTab(t as Tab);
};
const email = contact?.email ?? '';
@@ -123,16 +139,25 @@ function Shell() {
);
}
// Event-level feedback is also a full-screen takeover (no tab bar).
if (eventFeedbackOpen) {
return (
<div className="app">
<EventFeedback onDone={() => { setEventFeedbackOpen(false); setTab('home'); }} />
</div>
);
}
// The home page (incl. the tab bar) is identical for every role. Staff keep
// their check-in capability inside the Scan screen (Attendee/Staff toggle).
const scanLabel = 'Scan';
return (
<div className="app">
{tab === 'home' && <Home go={(t) => setTab(t as Tab)} />}
{tab === 'home' && <Home go={go} onEventFeedback={() => setEventFeedbackOpen(true)} />}
{tab === 'agenda' && <Agenda openFeedback={(id) => setFeedbackSession(id)} />}
{tab === 'scan' && <Scan />}
{tab === 'connections' && <Connections />}
{tab === 'connections' && <Connections initialTab={connectionsTab} />}
{tab === 'profile' && <Profile />}
{tab === 'leaderboard' && <Leaderboard />}