feat: implement groups risk overview feature with analytics and routes

This commit is contained in:
Jose Selesan
2026-09-24 20:45:11 -03:00
parent 2e184845e1
commit efde1aaf33
11 changed files with 382 additions and 16 deletions

View File

@@ -19,6 +19,8 @@ import type {
GroupDto,
GroupInviteInfoDto,
GroupList,
GroupRiskSummary,
GroupsRiskOverview,
GroupWaitlistEntryDto,
GroupWaitlistList,
HomeSummaryDto,
@@ -223,6 +225,8 @@ export const getGroupAnalytics = (groupId: string) =>
export const getStudentsAtRisk = (groupId: string) =>
apiFetch<StudentsAtRisk>(`/api/v1/groups/${groupId}/students-at-risk`)
export const getGroupsRiskOverview = () => apiFetch<GroupsRiskOverview>('/api/v1/groups-risk/overview')
export const getAttendeeHistory = (groupId: string, attendeeId: string) =>
apiFetch<AttendeeHistory>(`/api/v1/groups/${groupId}/attendees/${attendeeId}/history`)