WIP 1.51.10: registration management on v2 (routes, frontend)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls1vMdg2GYqbnKZmPaX1ot
This commit is contained in:
2026-10-29 13:04:31 +02:00
co-authored by Claude Opus 5.5
parent 4b7fb19f37
commit da67f80d6a
23 changed files with 4198 additions and 108 deletions
@@ -332,7 +332,7 @@ export default function ReportsV2({ backHref }: { backHref?: string } = {}) {
const byEv: Record<string, Registration[]> = {};
for (const id of eventIds) {
try {
const list = await apiFetch<Registration[]>(`/api/registrations/event/${encodeURIComponent(id)}`, { authToken: token });
const list = await (apiV2Data("get", "/events/{id}/registrations", { params: { id: id }, authToken: token }) as Promise<Registration[]>);
byEv[id] = Array.isArray(list) ? list : [];
} catch {
byEv[id] = [];