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

@@ -16,7 +16,7 @@ function OverdueFilter({ count }: { count: number }) {
aria-pressed={overdueOnly}
onClick={() => setOverdueOnly(!overdueOnly)}
className={cn(
// min-h-11 (44px): objetivo táctil mínimo, igual que los chips de sección.
// min-h-11 (44px): minimum touch target, same as the section chips.
'inline-flex min-h-11 items-center gap-1.5 rounded-full border px-3.5 text-xs font-semibold',
'transition-[background-color,color,border-color,box-shadow] duration-150',
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-primary-soft',
@@ -25,8 +25,8 @@ function OverdueFilter({ count }: { count: number }) {
: 'border-border bg-surface text-foreground hover:border-danger/40 hover:text-danger',
)}
>
{/* La ✕ solo aparece con el filtro puesto: es la señal de que tocarlo
lo saca, sin tener que decirlo. */}
{/* The ✕ only shows with the filter on: it is the signal that tapping it
takes the filter off, without having to say so. */}
{overdueOnly ? <X className="size-3.5 shrink-0" aria-hidden="true" /> : null}
<span className="whitespace-nowrap">{count} con pago vencido</span>
</button>
@@ -46,8 +46,8 @@ export function MembersView() {
const navigate = useNavigate()
const query = searchFilter.trim().toLowerCase()
// El teléfono no se muestra en la fila, pero sigue siendo una vía de búsqueda:
// es como la mayoría conoce a los alumnos del grupo.
// The phone is not shown on the row but is still a search path: it is how most
// people know the group's attendees.
const matchesQuery = (attendee: (typeof attendees)[number]) =>
!query ||
attendee.fullName.toLowerCase().includes(query) ||
@@ -61,9 +61,9 @@ export function MembersView() {
const visible = attendees
.filter((attendee) => !overdueOnly || isOverdue(resolvePaymentState(attendee.payment)))
.filter(matchesQuery)
// Orden alfabético fijo: si se ordenara por cobro o asistencia las filas
// saltarían de lugar cada vez que alguien paga o falta, y el nombre es la
// única columna estable de la lista.
// Fixed alphabetical order: if it were sorted by charge or attendance the
// rows would jump around every time someone pays or misses, and the name is
// the only stable column in the list.
.sort(byFullName)
if (attendeesPending) {
@@ -108,8 +108,8 @@ export function MembersView() {
const filterBar = overdueCount > 0 ? <OverdueFilter count={overdueCount} /> : null
if (visible.length === 0) {
// El filtro de vencidos nunca queda vacío por sí solo (el chip no se muestra
// si no hay vencidos), así que un vacío acá es siempre la búsqueda.
// The overdue filter never ends up empty on its own (the chip is not shown
// if there are none overdue), so an empty list here is always the search.
return (
<>
{filterBar}