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

@@ -6,21 +6,21 @@ import { useAttendeeDetail } from './AttendeeDetailProvider'
const ITEM_CLASS =
'flex min-h-11 w-full items-center gap-2.5 rounded-lg px-3 text-left text-sm font-medium text-primary transition-colors hover:bg-danger-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent'
/** Menú "⋯" de la ficha del miembro.
/** "⋯" menu on the attendee detail page.
*
* Por ahora solo guarda "Quitar del grupo": el backend no tiene forma de
* regenerar el token de ausencias, así que la opción no se muestra antes que
* exista el endpoint (ver `apps/backend/prisma/models/domain.prisma`, campo
* `notifyToken`). Cuando exista, es un `<button role="menuitem">` más en la
* lista de abajo.
* For now it only holds "Quitar del grupo": the backend has no way to
* regenerate the absence token, so the option is not shown before that
* endpoint exists (see `apps/backend/prisma/models/domain.prisma`, field
* `notifyToken`). Once it does, it is one more `<button role="menuitem">` in
* the list below.
*
* La etiqueta va en `text-primary` y el ícono lleva el `text-danger`: el rojo
* de `danger` sobre blanco queda en 3.7:1 y no llega a AA para texto normal. */
* The label goes in `text-primary` and the icon carries the `text-danger`: the
* `danger` red on white sits at 3.7:1 and does not reach AA for normal text. */
export function AttendeeActionsMenu({
triggerRef,
}: {
/** Se lo pasa la pantalla para que el diálogo de confirmación le devuelva el
* foco cuando se cierra. */
/** The screen passes it in so the confirmation dialog can give focus back
* when it closes. */
triggerRef: RefObject<HTMLButtonElement | null>
}) {
const { openRemoveDialog } = useAttendeeDetail()