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

+16 -3
View File
@@ -6,10 +6,20 @@ import { capWords } from '../lib/time';
import type { Connection, PublicContact } from '../lib/types';
import { Avatar, Empty, Sheet, Spinner } from '../components/ui';
import { useToast } from '../context/ToastContext';
import { NetworkingPanel } from './Networking';
export function Connections() {
export function Connections({
initialTab = 'mine',
}: {
initialTab?: 'mine' | 'req' | 'networking';
}) {
const { contact } = useAuth();
const [tab, setTab] = useState<'mine' | 'req'>('mine');
const [tab, setTab] = useState<'mine' | 'req' | 'networking'>(initialTab);
// A deep-link (e.g. the Home "Networking" quick action) re-targets the tab.
useEffect(() => {
setTab(initialTab);
}, [initialTab]);
const [conns, setConns] = useState<Connection[]>([]);
const [people, setPeople] = useState<Map<string, PublicContact>>(new Map());
const [points, setPoints] = useState<Map<string, number>>(new Map());
@@ -71,12 +81,13 @@ export function Connections() {
return (
<section className="screen">
<div className="h1">Connections</div>
<div className="h1">{tab === 'networking' ? 'Networking' : 'Connections'}</div>
<div className="seg">
<button className={tab === 'mine' ? 'active' : ''} data-testid="connections-tab-mine" onClick={() => setTab('mine')}>My connections</button>
<button className={tab === 'req' ? 'active' : ''} data-testid="connections-tab-req" onClick={() => setTab('req')}>
Requests {incoming.length + outgoing.length > 0 && <span className="pill violet" style={{ marginLeft: 4 }}>{incoming.length + outgoing.length}</span>}
</button>
<button className={tab === 'networking' ? 'active' : ''} data-testid="connections-tab-networking" onClick={() => setTab('networking')}>🗣 Networking</button>
</div>
{tab === 'mine' &&
@@ -146,6 +157,8 @@ export function Connections() {
</div>
)}
{tab === 'networking' && <NetworkingPanel />}
{detail && (() => {
const p = people.get(detail.email);
const t = p?.registration_type ?? null;