Series: year on year report (1.47.2)

New report (Reports -> Other, or "Compare" on the Event series page):
each event in a series side by side, oldest first - registrations,
tickets, income (dashboard definition), people checked in (average per
session on multi-session events) and attendance rate, with the change
from the event before. Exports like the other reports; campus-scoped
staff see only their campuses' events. GET /api/series/:id/compare.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 10:57:04 +02:00
co-authored by Claude Opus 5.5
parent 0253a1d5fa
commit e5d615e398
24 changed files with 320 additions and 28 deletions
+9
View File
@@ -203,6 +203,15 @@ export type EventSeries = EventSeriesRef & {
events: { id: string; title: string; startDate: string; endDate: string; isActive: boolean; isHidden: boolean; campus?: Event["campus"] }[];
};
/** GET /api/series/:id/compare — one row per event in the series, oldest first. */
export type SeriesComparisonRow = {
eventId: string; title: string; startDate: string; endDate: string; campus?: Event["campus"]; isActive: boolean;
sessions: number; registrations: number; tickets: number; income: number; checkedIn: number; attendanceRate: number | null;
// % up or down from the event before (null on the first, or when the one before had none).
change: { registrations: number | null; tickets: number | null; income: number | null; checkedIn: number | null } | null;
};
export type SeriesComparison = { series: EventSeriesRef; events: SeriesComparisonRow[] };
export type EventSession = {
id: string;
eventId?: string;