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:
Jose Selesan
2026-10-01 16:06:54 -03:00
parent 01b35691df
commit 69275c37b4
100 changed files with 1121 additions and 1086 deletions

View File

@@ -80,7 +80,7 @@ async function apiFetch<T>(path: string, init?: RequestInit): Promise<T> {
problem = body as ProblemDetails
}
} catch {
// Sin cuerpo JSON: usamos el error genérico.
// No JSON body: we use the generic error.
}
throw new ApiError(res.status, problem)
}
@@ -108,9 +108,9 @@ export const createGroup = (payload: CreateFirstGroup) =>
body: JSON.stringify(payload),
})
/* La pantalla de grupos no tiene paginación: se pide el máximo permitido para
que ningún grupo quede fuera de la lista, y la zona horaria del browser para
que el backend ordene por la próxima clase en la hora local de la persona. */
/* The groups screen has no pagination: we ask for the maximum allowed so no
group is left out of the listing, and for the browser time zone so the
backend sorts by the next class in the person's local time. */
const GROUPS_PAGE_SIZE = 100
export const getGroups = () => {
@@ -222,7 +222,7 @@ export const removeGroupAttendee = (
},
)
// — Día a Día: clases y asistencia —
// — Day to day: classes and attendance —
export const getClassesToday = () =>
apiFetch<ClassTodayList>(`/api/v1/classes/today${timeZoneParam()}`)
@@ -251,7 +251,7 @@ export const publicNotifyAbsence = (payload: PublicNotifyAbsence) =>
body: JSON.stringify(payload),
})
// — Analíticas y gestión de riesgo —
// — Analytics and risk management —
export const getGroupAnalytics = (groupId: string) =>
apiFetch<GroupAnalytics>(`/api/v1/groups/${groupId}/analytics`)