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

@@ -84,8 +84,8 @@ describe('groups routes', () => {
const where = {
OR: [{ createdById: userId }, { members: { some: { userId } } }],
};
// Los contadores de ocupación viajan en la misma consulta; la lista de
// espera cuenta solo los PENDING, los que siguen esperando cupo.
// The occupancy counters ride along in the same query; the waitlist
// counts only PENDING, the ones still waiting for a spot.
expect(prisma.group.findMany).toHaveBeenCalledWith({
where,
include: {
@@ -131,8 +131,8 @@ describe('groups routes', () => {
},
]);
// Lunes 2026-01-05 al mediodía en Ciudad de México: la clase de las 18:00
// todavía no empieza, así que ese grupo va primero.
// Monday 2026-01-05 at noon in Mexico City: the 18:00 class
// hasn't started yet, so that group goes first.
const result = await new ListGroups({
db,
now: new Date('2026-01-05T18:00:00.000Z'),
@@ -140,7 +140,7 @@ describe('groups routes', () => {
expect(result.ok).toBe(true);
if (!result.ok) return;
// A igual clase se pone delante el más nuevo, que era el criterio anterior.
// On a tie the newest one goes first, which was the previous criterion.
expect(result.value.data.map((item) => item.id)).toEqual([
'hoy-tarde',
'hoy-tarde-viejo',
@@ -157,8 +157,8 @@ describe('groups routes', () => {
{ ...group, id: 'b', name: 'B', days: ['WEDNESDAY'], time: '10:00' },
]);
// Lunes al mediodía: la clase de las 10:00 de A ya pasó, así que su
// próxima ocurrencia es el lunes que viene y B (miércoles) va primero.
// Monday at noon: A's 10:00 class already happened, so its
// next occurrence is next Monday and B (Wednesday) goes first.
const result = await new ListGroups({
db,
now: new Date('2026-01-05T18:00:00.000Z'),