+ {/* Blocking overlay: the run is synchronous from the user's point of view,
+ so nothing behind it is reachable until every request has settled. */}
+ {run && (
+
+
+
+
Generating AI feedback summaries
+
+ {run.done} of {run.total} sessions
+
+
+
+
+
One request per session that has feedback. Keep this page open.
+
+
+
+ )}
+
+
+
+
Sessions
+
+ {event.name} Β· {sessions.length} sessions Β· {checkins.length} check-ins Β·{' '}
+ {feedback.length} feedback Β· {summarisable.length} with feedback
+
+
+
+ {events.length > 1 && (
+
+ )}
+
+
+
+
+
+
+ {!llmConfigured && (
+
+ AI summaries are unavailable β set the LLM endpoint and model in Settings.
+
+ )}
+ {summaryError &&
{summaryError}
}
+ {runResult && (
+
+ {runResult.ok} session summar{runResult.ok === 1 ? 'y' : 'ies'} stored
+ {runResult.failed.length > 0 && ` Β· ${runResult.failed.length} failed: ${runResult.failed.join(' Β· ')}`}
+
+ )}
+
+
+ setQuery(e.target.value)}
+ aria-label="Search sessions"
+ />
+
+ {attendee && (
+
+ {nameOf(attendee)} attended {attendedCount} session{attendedCount === 1 ? '' : 's'}
+
+
+ )}
+ {(query || attendee) && (
+
+ {rows.length} of {sessions.length}
+
+ )}
+
+
+
+
+
+
+ | When |
+ Session |
+ Speakers |
+ Check-ins |
+ Feedback |
+ AI summary |
+
+
+
+ {rows.map((s) => {
+ const slot = slotById.get(s.slot_id);
+ const att = checkinsBySession.get(s.id) ?? [];
+ const fb = feedbackBySession.get(s.id);
+ const sp = speakersBySession.get(s.id) ?? [];
+ const summary = summaryBySession.get(s.id);
+ const open = expanded === s.id;
+ const stale = summary && fb && summary.response_count !== fb.count;
+ return (
+
+ toggleRow(s.id)} style={{ cursor: 'pointer' }}>
+ |
+
+ {fmtDay(slot?.slot_date ?? s.created_at)}
+ {timeLabel(slot)}
+
+ |
+
+
+ {s.title}
+
+ {s.room ?? 'no room'}
+ {s.level ? ` Β· ${s.level}` : ''}
+ {s.area ? ` Β· ${s.area}` : ''}
+
+
+ |
+
+ {sp.length === 0 ? (
+ β
+ ) : (
+
+ {sp.slice(0, 3).map((e) => (
+
+
+ {nameOf(e)}
+
+ ))}
+ {sp.length > 3 && +{sp.length - 3}}
+
+ )}
+ |
+
+ 0 ? 'att-count' : 'muted'}>{att.length}
+ {s.capacity ? / {s.capacity} : null}
+ |
+
+ {fb ? (
+
+ {fb.avg.toFixed(1)}β
Β· {fb.count}
+
+ ) : (
+ β
+ )}
+ |
+
+ {summary ? (
+ stale ? (
+
+ stale
+
+ ) : (
+ ready
+ )
+ ) : (
+ {fb ? 'not generated' : 'no feedback'}
+ )}
+ |
+
+ {open && (
+
+
+
+ {s.description && {s.description} }
+
+
+ Speakers ({sp.length})
+ {sp.length === 0 ? (
+ No speakers linked. Add them in Schedule.
+ ) : (
+
+ {sp.map((e) => (
+ -
+
+ {nameOf(e)}
+ {e}
+
+ ))}
+
+ )}
+
+
+ Checked in ({att.length})
+ {att.length === 0 ? (
+ Nobody has scanned into this session yet.
+ ) : (
+
+ {att.map((c) => (
+ -
+
+
+ {pickedEmails.has(c.contact_email) ? (
+ {nameOf(c.contact_email)}
+ ) : (
+ nameOf(c.contact_email)
+ )}
+
+ {c.contact_email}
+
+ {fmtDay(c.created_at)} {fmtTime(c.created_at)} Β· by {nameOf(c.staff_email)}
+
+
+ ))}
+
+ )}
+
+
+ AI feedback summary
+ {summary ? (
+ <>
+ {summary.summary}
+
+ AI-generated Β· {summary.response_count} responses Β· {summary.model} Β·{' '}
+ {new Date(summary.generated_at).toLocaleString()}
+
+ >
+ ) : (
+
+ {fb ? 'Not generated yet β use Generate AI Feedback Summary above.' : 'No feedback has been submitted for this session.'}
+
+ )}
+
+
+
+ |
+
+ )}
+
+ );
+ })}
+
+
+ {rows.length === 0 && (
+
+
+
+ )}
+
+
+ );
+}
diff --git a/apps/admin/src/views/Settings.tsx b/apps/admin/src/views/Settings.tsx
index 351489a..53df67b 100644
--- a/apps/admin/src/views/Settings.tsx
+++ b/apps/admin/src/views/Settings.tsx
@@ -1,7 +1,7 @@
import { useEffect, useState, type FormEvent } from 'react';
-import { Save } from 'lucide-react';
-import { getActiveEvent, getLlmSettings, saveLlmSettings } from '../lib/api';
-import type { Event } from '../lib/types';
+import { PlugZap, Save } from 'lucide-react';
+import { getActiveEvent, getLlmSettings, saveLlmSettings, testLlmConnection } from '../lib/api';
+import type { Event, LlmTestResult } from '../lib/types';
import { Spinner } from '../components/ui';
import { BadgeCopiesSetting } from '../components/BadgeCopiesSetting';
@@ -15,6 +15,12 @@ export function Settings() {
const [busy, setBusy] = useState(false);
const [error, setError] = useState