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. Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
1 parent
f74db9dc26
commit
0b6d1f2b6f
35 files changed
+3973
-54
No files matched your search
@@ -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 />}
|
||||
|
||||
|
||||
Reference in new issue
Block a user