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

@@ -11,9 +11,9 @@ import {
summarizeAttendance,
} from './member-row'
/* Solo lo excepcional se pinta. "Al día" queda en el tono base y con un check
para que el estado se lea sin depender del color; vencido es el único que
sube de peso. */
/* Only the exceptional is painted. "Ok" stays in the base tone and with a check
so the state reads without depending on color; overdue is the only one that
gains weight. */
const PAYMENT_TONE: Record<PaymentState['kind'], string> = {
settled: 'text-foreground',
dueSoon: 'font-medium text-warning',
@@ -40,8 +40,8 @@ function AttendanceStrip({ recent }: { recent: AttendanceStatus[] }) {
return (
<div className="mt-0.5 flex items-center gap-2">
{/* Cada punto lleva su propio nombre accesible: el color solo es el
refuerzo visual, no la única forma de saber qué pasó. */}
{/* Every dot carries its own accessible name: color is only the visual
reinforcement, not the only way to know what happened. */}
<span className="flex items-center gap-1">
{summary.dots.map((status, index) => (
<span
@@ -70,9 +70,10 @@ function MemberRow({
<Link
to="/groups/$groupId/attendees/$attendeeId"
params={{ groupId, attendeeId: attendee.id }}
// `min-h-14` (56px) es el piso táctil cómodo. La fila entera es el link, así
// que no hace falta chevron ni fila con tabIndex: hereda el rol y el
// teclado del <a>, y además sirve el href real al abrir en otra pestaña.
// `min-h-14` (56px) is the comfortable touch floor. The whole row is the
// link, so there is no need for a chevron or a row with tabIndex: it
// inherits the role and keyboard of the <a>, and it also serves the real
// href when opened in another tab.
className={cn(
'flex min-h-14 items-center border-b border-foreground/10 px-3 py-2.5',
'transition-colors duration-150 hover:bg-surface/60 active:bg-surface',
@@ -93,8 +94,8 @@ function MemberRow({
}
export function MembersList({ attendees }: { attendees: AttendeeListItem[] }) {
// El groupId se lee una vez y se pasa: suscribir cada fila al contexto entero
// hace que un cambio de estado del provider re-renderice N filas sin motivo.
// groupId is read once and passed down: subscribing every row to the whole
// context makes a provider state change re-render N rows for no reason.
const { groupId } = useGroupDetail()
return (