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

@@ -18,18 +18,18 @@ export class ListAttendees {
const where = query.groupId ? { groupId: query.groupId } : undefined;
const [records, total] = await Promise.all([
/* El resumen de cada fila viaja en la misma consulta en vez de armarse con
una petición por miembro. Ambas relaciones vienen acotadas a propósito:
la tabla de pagos crece un renglón por mes y para siempre, y el listado
solo necesita el estado actual de cada persona. */
/* Each row's summary travels in the same query instead of being built
with one request per member. Both relations are capped on purpose:
the payments table grows one row per month forever, and the listing
only needs each person's current state. */
db.attendee.findMany({
...(where ? { where } : {}),
skip: getPaginationOffset(query),
take: query.pageSize,
orderBy: { createdAt: 'desc' },
include: {
// Por fecha de la clase, no por `markedAt`: marcar la asistencia
// tarde no debe cambiar qué clase cuenta como reciente.
// By class date, not by `markedAt`: marking attendance late must not
// change which class counts as recent.
attendances: {
orderBy: { classSession: { startsAt: 'desc' } },
take: RECENT_ATTENDANCE_LIMIT,