chore: update comments and documentation for clarity and consistency across various files
- Translated comments from Spanish to English in vite.config.ts, docker-compose.yml, attendance-risk.ts, analytics.ts, attendance.ts, attendees.ts, enums.ts, groups.ts, and onboarding.ts. - Improved descriptions for better understanding of code functionality and purpose. - Ensured uniformity in terminology and phrasing throughout the codebase.
This commit is contained in:
@@ -69,10 +69,10 @@ export type UpdateStudentStatusResult = z.output<typeof UpdateStudentStatusResul
|
||||
export const groupRiskLevelSchema = z.enum(['NONE', 'MEDIUM', 'HIGH']);
|
||||
export type GroupRiskLevel = z.output<typeof groupRiskLevelSchema>;
|
||||
|
||||
/** Cuántos miembros van en la lista de urgentes del resumen. La tarjeta del
|
||||
* listado solo nombra al primero o dos; el detalle tiene su propia pantalla
|
||||
* de alumnos en riesgo, así que el resumen no necesita arrastrar al grupo
|
||||
* entero por la red. */
|
||||
/** How many members go in the summary's urgent list. The listing card only
|
||||
* names the first one or two; the detail page has its own at-risk students
|
||||
* screen, so the summary does not need to drag the whole group over the
|
||||
* network. */
|
||||
export const URGENT_MEMBERS_LIMIT = 5;
|
||||
|
||||
export const UrgentMemberSummarySchema = z.object({
|
||||
@@ -85,21 +85,22 @@ export const UrgentMemberSummarySchema = z.object({
|
||||
});
|
||||
export type UrgentMemberSummary = z.output<typeof UrgentMemberSummarySchema>;
|
||||
|
||||
/* 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. */
|
||||
/* The level is the worst attendee in the group; the two counters say why it
|
||||
fires, so the list can name the reason instead of a bare "risk". They are
|
||||
disjoint: a member with an absence streak lands only in the first, and the
|
||||
second groups those who only cross over for low attendance. */
|
||||
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),
|
||||
/* Lo que come la tarjeta del listado y la sección de seguimiento del Inicio.
|
||||
Sale de `getGroupAttendanceSummary` (packages/shared/src/lib/attendance-risk.ts),
|
||||
que ya recibe todo el historial en memoria: el resumen por nivel no se puede
|
||||
derivar de los dos contadores de arriba, porque "ok" es la diferencia y los
|
||||
lugares libres salen del cupo, no de la asistencia. */
|
||||
/* What the listing card and the Home follow-up section consume. It comes
|
||||
from `getGroupAttendanceSummary` (packages/shared/src/lib/attendance-risk.ts),
|
||||
which already receives the whole history in memory: the per-level summary
|
||||
cannot be derived from the two counters above, because "ok" is the
|
||||
difference and the free spots come from the capacity, not from
|
||||
attendance. */
|
||||
riesgoAlto: z.number().int().min(0),
|
||||
atencion: z.number().int().min(0),
|
||||
ok: z.number().int().min(0),
|
||||
|
||||
Reference in New Issue
Block a user