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

@@ -1,9 +1,10 @@
@import "tailwindcss";
/* Inter variable auto-hospedada. Declaramos solo latin y latin-ext a mano en
lugar de importar el wght.css de @fontsource: ese trae los 7 subsets y el
service worker precachea todo lo emitido, casi 1 MB que nunca se descarga.
El archivo .woff2 sí viene del paquete, con hash y cache immutable. */
/* Self-hosted Inter variable. We declare only latin and latin-ext by hand
instead of importing @fontsource's wght.css: that one brings all 7 subsets
and the service worker precaches everything emitted, almost 1 MB that never
gets downloaded. The .woff2 file does come from the package, hashed with an
immutable cache. */
@font-face {
font-family: "Inter Variable";
font-style: normal;
@@ -25,7 +26,7 @@
@custom-variant dark (&:where(.dark, .dark *));
@theme inline {
/* Escala de marca (identidad fija, igual a la landing) */
/* Brand scale (fixed identity, same as the landing) */
--color-brand-50: var(--brand-50);
--color-brand-100: var(--brand-100);
--color-brand-200: var(--brand-200);
@@ -38,12 +39,12 @@
--color-brand-900: var(--brand-900);
--color-brand-950: var(--brand-950);
/* Colores de la gráfica del isotipo/logotipo */
/* Colors sampled from the logo mark */
--color-brand-night: var(--brand-night);
--color-brand-celeste: var(--brand-celeste);
--color-brand-cloud: var(--brand-cloud);
/* Tokens semánticos (conmutan con tema claro/oscuro) */
/* Semantic tokens (switch with the light/dark theme) */
--color-background: var(--background);
--color-surface: var(--surface);
--color-primary: var(--primary);
@@ -70,14 +71,14 @@
--color-attendance-attention: var(--attendance-attention);
--color-attendance-ok: var(--attendance-ok);
/* Border radius por defecto */
/* Default border radius */
--radius-xl: 0.75rem;
/* Tipografía (igual que la landing) */
/* @fontsource-variable/inter registra la familia como "Inter Variable" */
/* Typography (same as the landing) */
/* @fontsource-variable/inter registers the family as "Inter Variable" */
--font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
/* Animaciones */
/* Animations */
--animate-fade-in: fade-in 0.2s ease-out;
--animate-step-enter: step-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
@@ -101,7 +102,7 @@
:root {
color-scheme: light;
/* Escala de marca */
/* Brand scale */
--brand-50: #eef4ff;
--brand-100: #dbe6fe;
--brand-200: #bfd3fe;
@@ -117,17 +118,17 @@
--brand-celeste: #93b4fd;
--brand-cloud: #eef4ff;
/* Tema claro */
/* Light theme */
--background: #ffffff;
--surface: #ffffff;
--primary: #0f172a;
--primary-soft: #f1f5f9;
--foreground: #475569;
/* Texto secundario sobre superficies suaves (tarjetas). En tema claro el
gris de `foreground` ya da 6.9:1 sobre `primary-soft` y 7.6:1 sobre
`background`, así que acá no hay que mover nada: mismo valor, mismo
contrato. El token existe igual para que "secundario" sea un nombre y no
una coincidencia de color. */
/* Secondary text on soft surfaces (cards). In the light theme the
`foreground` gray already scores 6.9:1 on `primary-soft` and 7.6:1 on
`background`, so there's nothing to move here: same value, same contract.
The token exists anyway so "secondary" is a name and not a color
coincidence. */
--secondary: #475569;
--accent: #2544ea;
--accent-strong: #1d33d8;
@@ -140,18 +141,18 @@
--success-soft: #ecfdf5;
--warning: #b45309;
--warning-soft: #fffbeb;
/* naranja: escalón de severidad para la misma familia de alertas (aviso por
asistencia, cupos). Sobre `warning-strong-soft` da 4.9:1 y sobre la
tarjeta 4.4:1, así que sirve para texto y para un borde tenue. */
/* Orange: severity step for the same alert family (attendance and capacity
warnings). It scores 4.9:1 on `warning-strong-soft` and 4.4:1 on the card,
so it works for text and for a subtle border. */
--warning-strong: #c2410c;
--warning-strong-soft: #fff7ed;
--danger: #f43f5e;
--danger-soft: #fff1f2;
/* Rojo legible como TEXTO. `--danger` da 3.35:1 sobre la tarjeta en tema
claro, así que como texto no llega al 4.5:1 de AA (sí sirve como relleno,
donde el mínimo es 3:1). Es el mismo patrón que `accent` / `accent-fg`: un
color para superficies grandes y su versión legible para rotular. Este
#be123c da 5.74:1 sobre la tarjeta y 5.72:1 sobre `danger-soft`. */
/* Red legible as TEXT. In the light theme `--danger` scores 3.35:1 on the
card, so as text it misses AA's 4.5:1 (it does work as a fill, where the
minimum is 3:1). Same pattern as `accent` / `accent-fg`: one color for
large surfaces and a legible version of it for labels. This #be123c scores
5.74:1 on the card and 5.72:1 on `danger-soft`. */
--danger-fg: #be123c;
--attendance-high: #d63b3b;
--attendance-attention: #f5a623;
@@ -161,16 +162,16 @@
.dark {
color-scheme: dark;
/* Tema oscuro (paleta slate/brand de la landing) */
/* Dark theme (slate/brand palette from the landing) */
--background: #020617;
--surface: #0f172a;
--primary: #f1f5f9;
--primary-soft: #1e293b;
--foreground: #94a3b8;
/* El secundario se sube un escalón sobre `foreground`: 7.1:1 sobre la
tarjeta (#1e293b) y 9.8:1 sobre el fondo, contra 5.7:1 del gris anterior.
El salto importa en las superficies suaves, que son las que dominan las
tarjetas de la lista: el texto de apoyo ahí es el que más se pierde. */
/* Secondary goes one step up from `foreground`: 7.1:1 on the card (#1e293b)
and 9.8:1 on the background, against 5.7:1 for the previous gray. The step
matters on soft surfaces, which are what dominates list cards: supporting
text there is what gets lost the most. */
--secondary: #a8b6c8;
--accent: #2544ea;
--accent-strong: #1d33d8;
@@ -183,15 +184,15 @@
--success-soft: color-mix(in srgb, var(--success) 15%, transparent);
--warning: #fcd34d;
--warning-soft: color-mix(in srgb, var(--warning) 15%, transparent);
/* En oscuro el "naranja" tiene que subir de luminosidad para alcanzar el
mismo contraste que su versión clara: #fb923c da 4.7:1 sobre el fondo
translúcido del badge, contra 4.1:1 del #f97316 de la paleta estándar. */
/* In dark the "orange" has to gain lightness to reach the same contrast as
its light version: #fb923c scores 4.7:1 on the badge's translucent
background, against 4.1:1 for the #f97316 of the standard palette. */
--warning-strong: #fb923c;
--warning-strong-soft: color-mix(in srgb, var(--warning-strong) 18%, transparent);
--danger: #fb7185;
--danger-soft: color-mix(in srgb, var(--danger) 15%, transparent);
/* En oscuro `#fb7185` ya da 5.44:1 sobre la tarjeta: legible como texto y de
sobra como relleno, así que acá no hay que mover nada. */
/* In dark `#fb7185` already scores 5.44:1 on the card: legible as text and
more than enough as a fill, so there's nothing to move here. */
--danger-fg: var(--danger);
}
@@ -205,14 +206,14 @@
min-height: 100dvh;
}
/* iOS (Safari y standalone) hace auto-zoom al enfocar un control de
formulario con font-size < 16px, y al cerrar el teclado no restaura el
scale: la app queda con zoom. El `Input` ya sube a 16px en mobile
(`text-base sm:text-sm`); esto es la red de seguridad para textareas,
selects o inputs crudos que se agreguen más adelante.
El 639px calza con el breakpoint `sm` de Tailwind. El `!important` es
a propósito: sin él, una clase `text-sm` en un input futuro ganaría por
especificidad y reintroduciría el bug sin avisar. */
/* iOS (Safari and standalone) auto-zooms when a form control with font-size
< 16px is focused, and on keyboard close it doesn't restore the scale:
the app is left zoomed in. `Input` already goes to 16px on mobile
(`text-base sm:text-sm`); this is the safety net for textareas, selects or
raw inputs added later.
The 639px matches Tailwind's `sm` breakpoint. The `!important` is on
purpose: without it a `text-sm` class on a future input would win on
specificity and reintroduce the bug without warning. */
@media (max-width: 639px) {
input,
textarea,