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:
@@ -10,7 +10,7 @@ type Consequence = { key: string; icon: LucideIcon; text: string }
|
||||
export function ConfirmRemoveAttendeeDialog({
|
||||
returnFocusRef,
|
||||
}: {
|
||||
/** Elemento al que vuelve el foco al cerrarse (el botón "⋯"). */
|
||||
/** The element focus returns to when it closes (the "⋯" button). */
|
||||
returnFocusRef: RefObject<HTMLButtonElement | null>
|
||||
}) {
|
||||
const {
|
||||
@@ -117,9 +117,9 @@ export function ConfirmRemoveAttendeeDialog({
|
||||
<Button variant="ghost" onClick={closeRemoveDialog} autoFocus>
|
||||
Cancelar
|
||||
</Button>
|
||||
{/* Etiqueta en negro sobre el relleno `danger`: es la única forma de
|
||||
llegar a AA con el mismo rojo en los dos temas (4.9:1 claro,
|
||||
6.7:1 oscuro); en blanco quedan 3.7:1 y 2.7:1. */}
|
||||
{/* Label in black on the `danger` fill: it is the only way to reach AA
|
||||
with the same red in both themes (4.9:1 light, 6.7:1 dark); in white
|
||||
they are 3.7:1 and 2.7:1. */}
|
||||
<Button
|
||||
onClick={() => confirmRemoveAttendee(false)}
|
||||
disabled={isSubmittingRemoval}
|
||||
@@ -138,10 +138,10 @@ export function ConfirmRemoveAttendeeDialog({
|
||||
)
|
||||
}
|
||||
|
||||
/** El `Modal` de la app no atrapa el foco; este diálogo sí, para que el Tab no
|
||||
* se vaya detrás del overlay. Solo cicla entre los controles del contenido: si
|
||||
* el foco está en otro lado (la X del `Modal`, que se sigue cerrando con
|
||||
* Escape) lo deja seguir su curso normal. */
|
||||
/** The app's `Modal` does not trap focus; this dialog does, so Tab does not walk
|
||||
* behind the overlay. It only cycles between the content's controls: if focus is
|
||||
* somewhere else (the `Modal`'s X, which still closes on Escape) it lets it
|
||||
* follow its normal course. */
|
||||
function trapTabWithin(contentRef: RefObject<HTMLDivElement | null>) {
|
||||
const handleKeyDown = (event: KeyboardEvent) => {
|
||||
if (event.key !== 'Tab') return
|
||||
|
||||
Reference in New Issue
Block a user