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,12 +1,12 @@
#!/bin/sh
# Entrypoint de producción del backend: aplica las migraciones y levanta el
# servidor en el mismo contenedor.
# Production entrypoint for the backend: applies the migrations and starts the
# server in the same container.
#
# Es POSIX sh, no bash: la imagen es alpine y no trae bash instalado (agregarlo
# serían ~10MB por un shebang).
# This is POSIX sh, not bash: the image is alpine and does not ship bash
# installed (adding it would be ~10MB for a shebang).
#
# Setear RUN_MIGRATIONS=false para arrancar sin tocar la base (por ejemplo, una
# base ya migrada a mano o una que se gestiona fuera de este despliegue).
# Set RUN_MIGRATIONS=false to start without touching the database (for example,
# a database already migrated by hand, or one managed outside this deployment).
set -e
: "${DATABASE_URL:?falta DATABASE_URL}"
@@ -18,8 +18,8 @@ else
delay="${MIGRATE_RETRY_DELAY:-5}"
i=1
# La base puede seguir arrancando cuando este contenedor ya empezó, y un
# deploy suele convivir con un reinicio de Postgres.
# The database may still be starting up when this container is already
# running, and a deploy usually overlaps a Postgres restart.
while [ "$i" -le "$attempts" ]; do
if bun run db:deploy; then
echo "migrate: listo"
@@ -37,6 +37,6 @@ else
done
fi
# exec para que Bun quede como PID 1 y reciba el SIGTERM de `docker stop`
# (el servidor lo usa para cerrar Bun.serve y desconectar Prisma).
# exec so that Bun becomes PID 1 and receives the SIGTERM from `docker stop`
# (the server uses it to close Bun.serve and disconnect Prisma).
exec "$@"