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

@@ -9,9 +9,9 @@ const pageSchema = createPageSchema();
const pageSizeSchema = createPageSizeSchema(10);
const paginationSchema = createPaginationSchema();
/* Cuántas clases recientes viajan por miembro en el listado. Es el tamaño de la
tira de puntos del roster, no una ventana de análisis: la analítica pide
HISTORY_SESSIONS_LIMIT clases aparte. */
/* How many recent class sessions travel per member in the listing. This is the
size of the roster's dot strip, not an analysis window: analytics asks for
HISTORY_SESSIONS_LIMIT classes separately. */
export const RECENT_ATTENDANCE_LIMIT = 5;
export const AttendeeDtoSchema = z.object({
@@ -49,9 +49,9 @@ export const AttendeeQuerySchema = z.object({
export type AttendeeQuery = z.output<typeof AttendeeQuerySchema>;
/**
* Cobro del período vigente, tal como está en la base: sin columna
* desnormalizada y sin veredicto calculado. El backend devuelve el pago
* impago más reciente; el cliente decide cómo presentarlo.
* Charge for the current period, as stored in the database: no denormalized
* column and no computed verdict. The backend returns the most recent unpaid
* payment; the client decides how to present it.
*/
export const AttendeePaymentSummarySchema = z.object({
status: paymentStatusSchema,
@@ -60,15 +60,14 @@ export const AttendeePaymentSummarySchema = z.object({
export type AttendeePaymentSummary = z.output<typeof AttendeePaymentSummarySchema>;
/**
* Item del listado de miembros: `AttendeeDto` más el resumen que la fila
* necesita para no vaciarse de datos. Es un superconjunto, así que todo
* consumidor del DTO plano sigue sirviéndose sin cambios; solo los listados
* verían estos dos campos extra.
* Member listing item: `AttendeeDto` plus the summary the row needs so it does
* not run dry of data. It is a superset, so every consumer of the plain DTO
* keeps working unchanged; only the listings see these two extra fields.
*/
export const AttendeeListItemSchema = AttendeeDtoSchema.extend({
/** Últimas clases de más antigua a más reciente. Vacío si nunca se registró ninguna. */
/** Most recent class sessions, oldest to newest. Empty if none was ever recorded. */
recentAttendance: z.array(attendanceStatusSchema).max(RECENT_ATTENDANCE_LIMIT),
/** `null` si no hay ningún cobro impago registrado. */
/** `null` if there is no unpaid charge on record. */
payment: AttendeePaymentSummarySchema.nullable(),
});
export type AttendeeListItem = z.output<typeof AttendeeListItemSchema>;