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:
@@ -1,11 +1,11 @@
|
||||
/* Rutas "immersive": las que arman su propia barra de navegación con
|
||||
`LargeTitle` (título grande que colapsa) y por eso no muestran el header
|
||||
global con logo + toggle de tema + avatar.
|
||||
/* "Immersive" routes: the ones that build their own navigation bar with
|
||||
`LargeTitle` (a large title that collapses) and therefore don't show the
|
||||
global header with logo + theme toggle + avatar.
|
||||
|
||||
El patrón se resuelve a mano y no con `matchRoute` porque las dos rutas
|
||||
llevan parámetros (`matchRoute` los exige) y porque las rutas hijas NO son
|
||||
immersive aunque compartan prefijo: `/groups/:id/attendees/new` sigue usando
|
||||
el header global. */
|
||||
The pattern is resolved by hand and not with `matchRoute` because the two
|
||||
routes carry params (`matchRoute` requires them) and because child routes are
|
||||
NOT immersive even when they share a prefix: `/groups/:id/attendees/new`
|
||||
still uses the global header. */
|
||||
|
||||
const IMMERSIVE_SEGMENTS: ReadonlyArray<readonly string[]> = [
|
||||
['groups', ':id'],
|
||||
@@ -13,9 +13,9 @@ const IMMERSIVE_SEGMENTS: ReadonlyArray<readonly string[]> = [
|
||||
['class', ':id', 'attendance'],
|
||||
]
|
||||
|
||||
/* Rutas estáticas que ocupan el lugar de un parámetro. Sin esta lista
|
||||
`/groups/new` (crear grupo) se tomaría por una ficha de grupo y perdería el
|
||||
header global. */
|
||||
/* Static routes that sit where a param would go. Without this list
|
||||
`/groups/new` (create group) would be taken for a group detail page and would
|
||||
lose the global header. */
|
||||
const STATIC_SEGMENTS: ReadonlySet<string> = new Set(['new'])
|
||||
|
||||
export function isImmersiveRoute(pathname: string) {
|
||||
|
||||
Reference in New Issue
Block a user