Compare commits

1 Commits

Author SHA1 Message Date
Jose Selesan
e736ed3547 Updated spanish routes to english 2026-09-25 10:10:28 -03:00
6 changed files with 44 additions and 44 deletions

View File

@@ -17,7 +17,7 @@ const BREADCRUMBS: Record<string, Crumb[]> = {
{ label: 'Inicio', to: '/' }, { label: 'Inicio', to: '/' },
{ label: 'Ajustes' }, { label: 'Ajustes' },
], ],
'/seguridad': [ '/security': [
{ label: 'Inicio', to: '/' }, { label: 'Inicio', to: '/' },
{ label: 'Ajustes', to: '/settings' }, { label: 'Ajustes', to: '/settings' },
{ label: 'Seguridad' }, { label: 'Seguridad' },

View File

@@ -7,7 +7,7 @@ export function AttendeeDetailModal() {
const { selectedAttendee, setSelectedAttendee, requestRemoveAttendee, copyAbsenceNotifyUrl } = const { selectedAttendee, setSelectedAttendee, requestRemoveAttendee, copyAbsenceNotifyUrl } =
useGroupDetail() useGroupDetail()
const absenceNotifyUrl = selectedAttendee?.notifyToken const absenceNotifyUrl = selectedAttendee?.notifyToken
? `${window.location.origin}/avisar-ausencia/${selectedAttendee.notifyToken}` ? `${window.location.origin}/report-absence/${selectedAttendee.notifyToken}`
: null : null
return ( return (

View File

@@ -20,7 +20,7 @@ export function SettingsView() {
</div> </div>
<div className="divide-y divide-border rounded-xl border border-border bg-surface"> <div className="divide-y divide-border rounded-xl border border-border bg-surface">
<Link to="/seguridad" className="flex items-center gap-3 px-4 py-3 hover:bg-primary-soft"> <Link to="/security" className="flex items-center gap-3 px-4 py-3 hover:bg-primary-soft">
<span className="rounded-lg bg-accent-soft p-2"> <span className="rounded-lg bg-accent-soft p-2">
<Fingerprint className="size-4 text-accent-fg" /> <Fingerprint className="size-4 text-accent-fg" />
</span> </span>

View File

@@ -17,10 +17,10 @@ import { Route as VerifyEmailRouteImport } from './routes/verify-email'
import { Route as AuthenticatedIndexRouteImport } from './routes/_authenticated/index' import { Route as AuthenticatedIndexRouteImport } from './routes/_authenticated/index'
import { Route as AuthenticatedPaymentsRouteImport } from './routes/_authenticated/payments' import { Route as AuthenticatedPaymentsRouteImport } from './routes/_authenticated/payments'
import { Route as AuthenticatedProfileRouteImport } from './routes/_authenticated/profile' import { Route as AuthenticatedProfileRouteImport } from './routes/_authenticated/profile'
import { Route as AuthenticatedSeguridadRouteImport } from './routes/_authenticated/seguridad' import { Route as AuthenticatedSecurityRouteImport } from './routes/_authenticated/security'
import { Route as AuthenticatedSettingsRouteImport } from './routes/_authenticated/settings' import { Route as AuthenticatedSettingsRouteImport } from './routes/_authenticated/settings'
import { Route as AvisarAusenciaTokenRouteImport } from './routes/avisar-ausencia.$token'
import { Route as JoinTokenRouteImport } from './routes/join.$token' import { Route as JoinTokenRouteImport } from './routes/join.$token'
import { Route as ReportAbsenceTokenRouteImport } from './routes/report-absence.$token'
import { Route as AuthenticatedGroupsIndexRouteImport } from './routes/_authenticated/groups/index' import { Route as AuthenticatedGroupsIndexRouteImport } from './routes/_authenticated/groups/index'
import { Route as AuthenticatedGroupsNewRouteImport } from './routes/_authenticated/groups/new' import { Route as AuthenticatedGroupsNewRouteImport } from './routes/_authenticated/groups/new'
import { Route as AuthenticatedClassSessionIdAttendanceRouteImport } from './routes/_authenticated/class/$sessionId/attendance' import { Route as AuthenticatedClassSessionIdAttendanceRouteImport } from './routes/_authenticated/class/$sessionId/attendance'
@@ -66,9 +66,9 @@ const AuthenticatedProfileRoute = AuthenticatedProfileRouteImport.update({
path: '/profile', path: '/profile',
getParentRoute: () => AuthenticatedRoute, getParentRoute: () => AuthenticatedRoute,
} as any) } as any)
const AuthenticatedSeguridadRoute = AuthenticatedSeguridadRouteImport.update({ const AuthenticatedSecurityRoute = AuthenticatedSecurityRouteImport.update({
id: '/seguridad', id: '/security',
path: '/seguridad', path: '/security',
getParentRoute: () => AuthenticatedRoute, getParentRoute: () => AuthenticatedRoute,
} as any) } as any)
const AuthenticatedSettingsRoute = AuthenticatedSettingsRouteImport.update({ const AuthenticatedSettingsRoute = AuthenticatedSettingsRouteImport.update({
@@ -76,16 +76,16 @@ const AuthenticatedSettingsRoute = AuthenticatedSettingsRouteImport.update({
path: '/settings', path: '/settings',
getParentRoute: () => AuthenticatedRoute, getParentRoute: () => AuthenticatedRoute,
} as any) } as any)
const AvisarAusenciaTokenRoute = AvisarAusenciaTokenRouteImport.update({
id: '/avisar-ausencia/$token',
path: '/avisar-ausencia/$token',
getParentRoute: () => rootRouteImport,
} as any)
const JoinTokenRoute = JoinTokenRouteImport.update({ const JoinTokenRoute = JoinTokenRouteImport.update({
id: '/join/$token', id: '/join/$token',
path: '/join/$token', path: '/join/$token',
getParentRoute: () => rootRouteImport, getParentRoute: () => rootRouteImport,
} as any) } as any)
const ReportAbsenceTokenRoute = ReportAbsenceTokenRouteImport.update({
id: '/report-absence/$token',
path: '/report-absence/$token',
getParentRoute: () => rootRouteImport,
} as any)
const AuthenticatedGroupsIndexRoute = const AuthenticatedGroupsIndexRoute =
AuthenticatedGroupsIndexRouteImport.update({ AuthenticatedGroupsIndexRouteImport.update({
id: '/groups/', id: '/groups/',
@@ -124,10 +124,10 @@ export interface FileRoutesByFullPath {
'/verify-email': typeof VerifyEmailRoute '/verify-email': typeof VerifyEmailRoute
'/payments': typeof AuthenticatedPaymentsRoute '/payments': typeof AuthenticatedPaymentsRoute
'/profile': typeof AuthenticatedProfileRoute '/profile': typeof AuthenticatedProfileRoute
'/seguridad': typeof AuthenticatedSeguridadRoute '/security': typeof AuthenticatedSecurityRoute
'/settings': typeof AuthenticatedSettingsRoute '/settings': typeof AuthenticatedSettingsRoute
'/avisar-ausencia/$token': typeof AvisarAusenciaTokenRoute
'/join/$token': typeof JoinTokenRoute '/join/$token': typeof JoinTokenRoute
'/report-absence/$token': typeof ReportAbsenceTokenRoute
'/groups/new': typeof AuthenticatedGroupsNewRoute '/groups/new': typeof AuthenticatedGroupsNewRoute
'/groups/': typeof AuthenticatedGroupsIndexRoute '/groups/': typeof AuthenticatedGroupsIndexRoute
'/class/$sessionId/attendance': typeof AuthenticatedClassSessionIdAttendanceRoute '/class/$sessionId/attendance': typeof AuthenticatedClassSessionIdAttendanceRoute
@@ -141,10 +141,10 @@ export interface FileRoutesByTo {
'/verify-email': typeof VerifyEmailRoute '/verify-email': typeof VerifyEmailRoute
'/payments': typeof AuthenticatedPaymentsRoute '/payments': typeof AuthenticatedPaymentsRoute
'/profile': typeof AuthenticatedProfileRoute '/profile': typeof AuthenticatedProfileRoute
'/seguridad': typeof AuthenticatedSeguridadRoute '/security': typeof AuthenticatedSecurityRoute
'/settings': typeof AuthenticatedSettingsRoute '/settings': typeof AuthenticatedSettingsRoute
'/avisar-ausencia/$token': typeof AvisarAusenciaTokenRoute
'/join/$token': typeof JoinTokenRoute '/join/$token': typeof JoinTokenRoute
'/report-absence/$token': typeof ReportAbsenceTokenRoute
'/': typeof AuthenticatedIndexRoute '/': typeof AuthenticatedIndexRoute
'/groups/new': typeof AuthenticatedGroupsNewRoute '/groups/new': typeof AuthenticatedGroupsNewRoute
'/groups': typeof AuthenticatedGroupsIndexRoute '/groups': typeof AuthenticatedGroupsIndexRoute
@@ -161,10 +161,10 @@ export interface FileRoutesById {
'/verify-email': typeof VerifyEmailRoute '/verify-email': typeof VerifyEmailRoute
'/_authenticated/payments': typeof AuthenticatedPaymentsRoute '/_authenticated/payments': typeof AuthenticatedPaymentsRoute
'/_authenticated/profile': typeof AuthenticatedProfileRoute '/_authenticated/profile': typeof AuthenticatedProfileRoute
'/_authenticated/seguridad': typeof AuthenticatedSeguridadRoute '/_authenticated/security': typeof AuthenticatedSecurityRoute
'/_authenticated/settings': typeof AuthenticatedSettingsRoute '/_authenticated/settings': typeof AuthenticatedSettingsRoute
'/avisar-ausencia/$token': typeof AvisarAusenciaTokenRoute
'/join/$token': typeof JoinTokenRoute '/join/$token': typeof JoinTokenRoute
'/report-absence/$token': typeof ReportAbsenceTokenRoute
'/_authenticated/': typeof AuthenticatedIndexRoute '/_authenticated/': typeof AuthenticatedIndexRoute
'/_authenticated/groups/new': typeof AuthenticatedGroupsNewRoute '/_authenticated/groups/new': typeof AuthenticatedGroupsNewRoute
'/_authenticated/groups/': typeof AuthenticatedGroupsIndexRoute '/_authenticated/groups/': typeof AuthenticatedGroupsIndexRoute
@@ -182,10 +182,10 @@ export interface FileRouteTypes {
| '/verify-email' | '/verify-email'
| '/payments' | '/payments'
| '/profile' | '/profile'
| '/seguridad' | '/security'
| '/settings' | '/settings'
| '/avisar-ausencia/$token'
| '/join/$token' | '/join/$token'
| '/report-absence/$token'
| '/groups/new' | '/groups/new'
| '/groups/' | '/groups/'
| '/class/$sessionId/attendance' | '/class/$sessionId/attendance'
@@ -199,10 +199,10 @@ export interface FileRouteTypes {
| '/verify-email' | '/verify-email'
| '/payments' | '/payments'
| '/profile' | '/profile'
| '/seguridad' | '/security'
| '/settings' | '/settings'
| '/avisar-ausencia/$token'
| '/join/$token' | '/join/$token'
| '/report-absence/$token'
| '/' | '/'
| '/groups/new' | '/groups/new'
| '/groups' | '/groups'
@@ -218,10 +218,10 @@ export interface FileRouteTypes {
| '/verify-email' | '/verify-email'
| '/_authenticated/payments' | '/_authenticated/payments'
| '/_authenticated/profile' | '/_authenticated/profile'
| '/_authenticated/seguridad' | '/_authenticated/security'
| '/_authenticated/settings' | '/_authenticated/settings'
| '/avisar-ausencia/$token'
| '/join/$token' | '/join/$token'
| '/report-absence/$token'
| '/_authenticated/' | '/_authenticated/'
| '/_authenticated/groups/new' | '/_authenticated/groups/new'
| '/_authenticated/groups/' | '/_authenticated/groups/'
@@ -236,8 +236,8 @@ export interface RootRouteChildren {
OnboardingRoute: typeof OnboardingRoute OnboardingRoute: typeof OnboardingRoute
SignupRoute: typeof SignupRoute SignupRoute: typeof SignupRoute
VerifyEmailRoute: typeof VerifyEmailRoute VerifyEmailRoute: typeof VerifyEmailRoute
AvisarAusenciaTokenRoute: typeof AvisarAusenciaTokenRoute
JoinTokenRoute: typeof JoinTokenRoute JoinTokenRoute: typeof JoinTokenRoute
ReportAbsenceTokenRoute: typeof ReportAbsenceTokenRoute
} }
declare module '@tanstack/react-router' { declare module '@tanstack/react-router' {
@@ -298,11 +298,11 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthenticatedProfileRouteImport preLoaderRoute: typeof AuthenticatedProfileRouteImport
parentRoute: typeof AuthenticatedRoute parentRoute: typeof AuthenticatedRoute
} }
'/_authenticated/seguridad': { '/_authenticated/security': {
id: '/_authenticated/seguridad' id: '/_authenticated/security'
path: '/seguridad' path: '/security'
fullPath: '/seguridad' fullPath: '/security'
preLoaderRoute: typeof AuthenticatedSeguridadRouteImport preLoaderRoute: typeof AuthenticatedSecurityRouteImport
parentRoute: typeof AuthenticatedRoute parentRoute: typeof AuthenticatedRoute
} }
'/_authenticated/settings': { '/_authenticated/settings': {
@@ -312,13 +312,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthenticatedSettingsRouteImport preLoaderRoute: typeof AuthenticatedSettingsRouteImport
parentRoute: typeof AuthenticatedRoute parentRoute: typeof AuthenticatedRoute
} }
'/avisar-ausencia/$token': {
id: '/avisar-ausencia/$token'
path: '/avisar-ausencia/$token'
fullPath: '/avisar-ausencia/$token'
preLoaderRoute: typeof AvisarAusenciaTokenRouteImport
parentRoute: typeof rootRouteImport
}
'/join/$token': { '/join/$token': {
id: '/join/$token' id: '/join/$token'
path: '/join/$token' path: '/join/$token'
@@ -326,6 +319,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof JoinTokenRouteImport preLoaderRoute: typeof JoinTokenRouteImport
parentRoute: typeof rootRouteImport parentRoute: typeof rootRouteImport
} }
'/report-absence/$token': {
id: '/report-absence/$token'
path: '/report-absence/$token'
fullPath: '/report-absence/$token'
preLoaderRoute: typeof ReportAbsenceTokenRouteImport
parentRoute: typeof rootRouteImport
}
'/_authenticated/groups/': { '/_authenticated/groups/': {
id: '/_authenticated/groups/' id: '/_authenticated/groups/'
path: '/groups' path: '/groups'
@@ -367,7 +367,7 @@ declare module '@tanstack/react-router' {
interface AuthenticatedRouteChildren { interface AuthenticatedRouteChildren {
AuthenticatedPaymentsRoute: typeof AuthenticatedPaymentsRoute AuthenticatedPaymentsRoute: typeof AuthenticatedPaymentsRoute
AuthenticatedProfileRoute: typeof AuthenticatedProfileRoute AuthenticatedProfileRoute: typeof AuthenticatedProfileRoute
AuthenticatedSeguridadRoute: typeof AuthenticatedSeguridadRoute AuthenticatedSecurityRoute: typeof AuthenticatedSecurityRoute
AuthenticatedSettingsRoute: typeof AuthenticatedSettingsRoute AuthenticatedSettingsRoute: typeof AuthenticatedSettingsRoute
AuthenticatedIndexRoute: typeof AuthenticatedIndexRoute AuthenticatedIndexRoute: typeof AuthenticatedIndexRoute
AuthenticatedGroupsNewRoute: typeof AuthenticatedGroupsNewRoute AuthenticatedGroupsNewRoute: typeof AuthenticatedGroupsNewRoute
@@ -380,7 +380,7 @@ interface AuthenticatedRouteChildren {
const AuthenticatedRouteChildren: AuthenticatedRouteChildren = { const AuthenticatedRouteChildren: AuthenticatedRouteChildren = {
AuthenticatedPaymentsRoute: AuthenticatedPaymentsRoute, AuthenticatedPaymentsRoute: AuthenticatedPaymentsRoute,
AuthenticatedProfileRoute: AuthenticatedProfileRoute, AuthenticatedProfileRoute: AuthenticatedProfileRoute,
AuthenticatedSeguridadRoute: AuthenticatedSeguridadRoute, AuthenticatedSecurityRoute: AuthenticatedSecurityRoute,
AuthenticatedSettingsRoute: AuthenticatedSettingsRoute, AuthenticatedSettingsRoute: AuthenticatedSettingsRoute,
AuthenticatedIndexRoute: AuthenticatedIndexRoute, AuthenticatedIndexRoute: AuthenticatedIndexRoute,
AuthenticatedGroupsNewRoute: AuthenticatedGroupsNewRoute, AuthenticatedGroupsNewRoute: AuthenticatedGroupsNewRoute,
@@ -402,8 +402,8 @@ const rootRouteChildren: RootRouteChildren = {
OnboardingRoute: OnboardingRoute, OnboardingRoute: OnboardingRoute,
SignupRoute: SignupRoute, SignupRoute: SignupRoute,
VerifyEmailRoute: VerifyEmailRoute, VerifyEmailRoute: VerifyEmailRoute,
AvisarAusenciaTokenRoute: AvisarAusenciaTokenRoute,
JoinTokenRoute: JoinTokenRoute, JoinTokenRoute: JoinTokenRoute,
ReportAbsenceTokenRoute: ReportAbsenceTokenRoute,
} }
export const routeTree = rootRouteImport export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren) ._addFileChildren(rootRouteChildren)

View File

@@ -1,6 +1,6 @@
import { createFileRoute } from '@tanstack/react-router' import { createFileRoute } from '@tanstack/react-router'
import { SecurityPage } from '../../features/security/SecurityPage' import { SecurityPage } from '../../features/security/SecurityPage'
export const Route = createFileRoute('/_authenticated/seguridad')({ export const Route = createFileRoute('/_authenticated/security')({
component: SecurityPage, component: SecurityPage,
}) })

View File

@@ -3,9 +3,9 @@ import { createFileRoute } from '@tanstack/react-router'
import { AbsenceNotifyProvider } from '../features/absence-notify/AbsenceNotifyProvider' import { AbsenceNotifyProvider } from '../features/absence-notify/AbsenceNotifyProvider'
import { AbsenceNotifyView } from '../features/absence-notify/AbsenceNotifyView' import { AbsenceNotifyView } from '../features/absence-notify/AbsenceNotifyView'
export const Route = createFileRoute('/avisar-ausencia/$token')({ export const Route = createFileRoute('/report-absence/$token')({
component: () => { component: () => {
const { token } = useParams({ from: '/avisar-ausencia/$token' }) const { token } = useParams({ from: '/report-absence/$token' })
return ( return (
<AbsenceNotifyProvider token={token}> <AbsenceNotifyProvider token={token}>
<AbsenceNotifyView /> <AbsenceNotifyView />