fix(points): welcome check-in awards +10; add Sessions view, AI connection test, silent reload

The front-desk check-in set checked_in and printed badges but awarded nothing,
so the +10 depended on which check-in a person happened to get. Every award
path was reviewed:

- welcome_checkin awards +10 (category checkin) on a genuine first check-in and
  returns points + points_awarded; checkin_attendee and preview_welcome_checkin
  return points_awarded too.
- set_registration_checked_in(false) deleted all checkin points while keeping
  the checkins rows, and switching back on awarded nothing -- one mistaken
  toggle destroyed those points permanently. ON now recomputes from the rows
  that still exist and awards only the shortfall: reversible, still unfarmable.
- The staff/Admin/@appe.at exclusion stays (product decision) but is no longer
  silent: three-way points sheets in the scanner, "no points" with a tooltip in
  Registrations, and the Contacts points modal refuses to apply rather than
  letting adjust_points (void) no-op quietly.

Also in this change:
- admin silent refresh (5s poll + 500ms after writes) across all data views;
  Registrations patches in place so rows never slide under the cursor
- Settings "Validate AI connection" via a new sidecar POST /llm-test verdict
  endpoint (never leaks the key, distinguishes "no usage block" from "off")
- new Sessions view between Schedule and Activity: speakers, attendance,
  ratings, attendee filter, and one button that summarises every session with
  feedback (one request each, concurrency 3, UI blocked until all settle)
- provider requests disable thinking through one shared body builder sending
  both reasoning_effort:"none" and chat_template_kwargs.enable_thinking

SQL: 113 / 57 / 24 assertions (set_registration_checked_in section 3 was
rewritten, it asserted the bug). Sidecar 34 unit tests. Full e2e 202 passed,
0 failed. Migration applied locally only -- not deployed.

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:
committed 2026-10-19 20:14:03 +02:00
1 parent cdb4793273
commit d3083b7940
35 files changed
+2778 -154

No files matched your search

+9
View File
@@ -178,6 +178,8 @@ export interface CheckinResult {
attendee_name: string;
points: number;
already: boolean;
/** False for staff / Admin contacts, who never earn points. */
points_awarded: boolean;
}
/** Result of a staff welcome check-in (marks an attendee present at the event). */
@@ -185,6 +187,11 @@ export interface WelcomeCheckinResult {
attendee_email: string;
attendee_name: string;
already: boolean;
/** Points balance after the check-in. */
points: number;
/** False when this person does not earn points (staff or Admin contact), so
* the sheet must not promise a +10 the database never granted. */
points_awarded: boolean;
}
/** Read-only preview of a welcome check-in (shown before confirming). */
@@ -196,6 +203,8 @@ export interface WelcomeCheckinPreview {
will_print: boolean;
/** How many labels confirming will print (0 when nothing prints). */
copies: number;
/** True when confirming will award check-in points (false for staff/Admin). */
points_awarded: boolean;
}
/** Result of accepting a connection (the connection row + the shared-talk flag). */