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

@@ -10,14 +10,14 @@ export default defineConfig({
react(),
tailwindcss(),
VitePWA({
// `autoUpdate` activa skipWaiting + clientsClaim: el SW nuevo toma el
// control en el próximo load sin pedirle nada al usuario.
// `autoUpdate` turns on skipWaiting + clientsClaim: the new SW takes
// control on the next load without asking the user for anything.
registerType: 'autoUpdate',
// El registro se hace desde PwaProvider para poder avisar cuando la app
// ya está lista para operar sin conexión.
// Registration is done from PwaProvider so we can tell the user when the
// app is ready to work offline.
injectRegister: null,
// Los iconos ya entran por `workbox.globPatterns`; con
// `includeManifestIcons` se listarían dos veces en el precache.
// The icons already come in through `workbox.globPatterns`; with
// `includeManifestIcons` they would be listed twice in the precache.
includeManifestIcons: false,
manifest: {
name: 'Gruperly',
@@ -48,24 +48,26 @@ export default defineConfig({
],
},
workbox: {
// El woff2 de Inter se importa desde node_modules: Vite lo emite a
// assets/ con hash y entra al precache para que la app abra offline.
// Inter's woff2 is imported from node_modules: Vite emits it to
// assets/ with a hash and it goes into the precache so the app opens
// offline.
globPatterns: ['**/*.{js,css,html,svg,png,ico,woff2}'],
// Solo el script del SW queda fuera: precachearlo cachearía la versión
// vieja. El runtime `workbox-<hash>.js` sí se precachea a propósito, así
// el SW puede arrancar sin red. No usar `**/workbox-*.js`: ese patrón
// también matchea `workbox-window.*.js`, que es el módulo cliente que
// importa `virtual:pwa-register` y sin él falla el registro.
// Only the SW script is left out: precaching it would cache the old
// version. The `workbox-<hash>.js` runtime *is* precached on purpose, so
// the SW can boot without network. Do not use `**/workbox-*.js`: that
// pattern also matches `workbox-window.*.js`, which is the client module
// that imports `virtual:pwa-register` and without it registration fails.
globIgnores: ['**/sw.js'],
// App shell para toda navegación, incluidas las rutas profundas
// /join/$token y /report-absence/$token.
// App shell for every navigation, including the deep routes
// /join/$token and /report-absence/$token.
navigateFallback: '/index.html',
navigateFallbackDenylist: [/^\/api\//],
cleanupOutdatedCaches: true,
runtimeCaching: [
{
// La API nunca se cachea: son datos de cobros y una respuesta
// vieja sería peor que un error. Offline carga el shell, no los datos.
// The API is never cached: it holds payment data and a stale
// response is worse than an error. Offline loads the shell, not
// the data.
urlPattern: ({ url, request }) => request.method !== 'GET' || url.pathname.startsWith('/api/'),
handler: 'NetworkOnly',
},