feat(api): add timezone support for group fetching and increase page size
feat(attendance): refactor attendance summary logic and update tests feat(analytics): extend GroupRiskSummary schema with absence and attendance counts feat(groups): enhance group schema with attendee and waitlist counts chore(skills): add frontend design skill with guidelines and license feat(attendee-detail): implement AttendeePhoneLine component for phone display feat(groups): create AttendanceBadge and CapacityIndicator components for group cards feat(groups): add card utility functions for attendance alerts and capacity summaries test(groups): implement tests for attendance alert and capacity summary logic
This commit is contained in:
@@ -69,10 +69,16 @@ export type UpdateStudentStatusResult = z.output<typeof UpdateStudentStatusResul
|
||||
export const groupRiskLevelSchema = z.enum(['NONE', 'MEDIUM', 'HIGH']);
|
||||
export type GroupRiskLevel = z.output<typeof groupRiskLevelSchema>;
|
||||
|
||||
/* El nivel es el peor alumno del grupo; los dos contadores dicen por qué se
|
||||
dispara, para que la lista pueda nombrar el motivo en vez de un "riesgo".
|
||||
Son disjuntos: un miembro con racha de faltas va solo en el primero, y el
|
||||
segundo agrupa a los que solo cruzan por asistencia baja. */
|
||||
export const GroupRiskSummarySchema = z.object({
|
||||
groupId: z.string(),
|
||||
groupName: z.string(),
|
||||
riskLevel: groupRiskLevelSchema,
|
||||
absenceStreakCount: z.number().int().min(0),
|
||||
lowAttendanceCount: z.number().int().min(0),
|
||||
});
|
||||
export type GroupRiskSummary = z.output<typeof GroupRiskSummarySchema>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user