diff --git a/apps/web/src/components/layout/Breadcrumb.tsx b/apps/web/src/components/layout/Breadcrumb.tsx index 0b86caa..f51b9cf 100644 --- a/apps/web/src/components/layout/Breadcrumb.tsx +++ b/apps/web/src/components/layout/Breadcrumb.tsx @@ -17,7 +17,7 @@ const BREADCRUMBS: Record = { { label: 'Inicio', to: '/' }, { label: 'Ajustes' }, ], - '/seguridad': [ + '/security': [ { label: 'Inicio', to: '/' }, { label: 'Ajustes', to: '/settings' }, { label: 'Seguridad' }, diff --git a/apps/web/src/features/groups/detail/AttendeeDetailModal.tsx b/apps/web/src/features/groups/detail/AttendeeDetailModal.tsx index d01ab5f..395fc0b 100644 --- a/apps/web/src/features/groups/detail/AttendeeDetailModal.tsx +++ b/apps/web/src/features/groups/detail/AttendeeDetailModal.tsx @@ -7,7 +7,7 @@ export function AttendeeDetailModal() { const { selectedAttendee, setSelectedAttendee, requestRemoveAttendee, copyAbsenceNotifyUrl } = useGroupDetail() const absenceNotifyUrl = selectedAttendee?.notifyToken - ? `${window.location.origin}/avisar-ausencia/${selectedAttendee.notifyToken}` + ? `${window.location.origin}/report-absence/${selectedAttendee.notifyToken}` : null return ( diff --git a/apps/web/src/features/settings/SettingsView.tsx b/apps/web/src/features/settings/SettingsView.tsx index dbdbaf8..25b3212 100644 --- a/apps/web/src/features/settings/SettingsView.tsx +++ b/apps/web/src/features/settings/SettingsView.tsx @@ -20,7 +20,7 @@ export function SettingsView() {
- + diff --git a/apps/web/src/routeTree.gen.ts b/apps/web/src/routeTree.gen.ts index 632981b..ecd9aa3 100644 --- a/apps/web/src/routeTree.gen.ts +++ b/apps/web/src/routeTree.gen.ts @@ -17,10 +17,10 @@ import { Route as VerifyEmailRouteImport } from './routes/verify-email' import { Route as AuthenticatedIndexRouteImport } from './routes/_authenticated/index' import { Route as AuthenticatedPaymentsRouteImport } from './routes/_authenticated/payments' 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 AvisarAusenciaTokenRouteImport } from './routes/avisar-ausencia.$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 AuthenticatedGroupsNewRouteImport } from './routes/_authenticated/groups/new' import { Route as AuthenticatedClassSessionIdAttendanceRouteImport } from './routes/_authenticated/class/$sessionId/attendance' @@ -66,9 +66,9 @@ const AuthenticatedProfileRoute = AuthenticatedProfileRouteImport.update({ path: '/profile', getParentRoute: () => AuthenticatedRoute, } as any) -const AuthenticatedSeguridadRoute = AuthenticatedSeguridadRouteImport.update({ - id: '/seguridad', - path: '/seguridad', +const AuthenticatedSecurityRoute = AuthenticatedSecurityRouteImport.update({ + id: '/security', + path: '/security', getParentRoute: () => AuthenticatedRoute, } as any) const AuthenticatedSettingsRoute = AuthenticatedSettingsRouteImport.update({ @@ -76,16 +76,16 @@ const AuthenticatedSettingsRoute = AuthenticatedSettingsRouteImport.update({ path: '/settings', getParentRoute: () => AuthenticatedRoute, } as any) -const AvisarAusenciaTokenRoute = AvisarAusenciaTokenRouteImport.update({ - id: '/avisar-ausencia/$token', - path: '/avisar-ausencia/$token', - getParentRoute: () => rootRouteImport, -} as any) const JoinTokenRoute = JoinTokenRouteImport.update({ id: '/join/$token', path: '/join/$token', getParentRoute: () => rootRouteImport, } as any) +const ReportAbsenceTokenRoute = ReportAbsenceTokenRouteImport.update({ + id: '/report-absence/$token', + path: '/report-absence/$token', + getParentRoute: () => rootRouteImport, +} as any) const AuthenticatedGroupsIndexRoute = AuthenticatedGroupsIndexRouteImport.update({ id: '/groups/', @@ -124,10 +124,10 @@ export interface FileRoutesByFullPath { '/verify-email': typeof VerifyEmailRoute '/payments': typeof AuthenticatedPaymentsRoute '/profile': typeof AuthenticatedProfileRoute - '/seguridad': typeof AuthenticatedSeguridadRoute + '/security': typeof AuthenticatedSecurityRoute '/settings': typeof AuthenticatedSettingsRoute - '/avisar-ausencia/$token': typeof AvisarAusenciaTokenRoute '/join/$token': typeof JoinTokenRoute + '/report-absence/$token': typeof ReportAbsenceTokenRoute '/groups/new': typeof AuthenticatedGroupsNewRoute '/groups/': typeof AuthenticatedGroupsIndexRoute '/class/$sessionId/attendance': typeof AuthenticatedClassSessionIdAttendanceRoute @@ -141,10 +141,10 @@ export interface FileRoutesByTo { '/verify-email': typeof VerifyEmailRoute '/payments': typeof AuthenticatedPaymentsRoute '/profile': typeof AuthenticatedProfileRoute - '/seguridad': typeof AuthenticatedSeguridadRoute + '/security': typeof AuthenticatedSecurityRoute '/settings': typeof AuthenticatedSettingsRoute - '/avisar-ausencia/$token': typeof AvisarAusenciaTokenRoute '/join/$token': typeof JoinTokenRoute + '/report-absence/$token': typeof ReportAbsenceTokenRoute '/': typeof AuthenticatedIndexRoute '/groups/new': typeof AuthenticatedGroupsNewRoute '/groups': typeof AuthenticatedGroupsIndexRoute @@ -161,10 +161,10 @@ export interface FileRoutesById { '/verify-email': typeof VerifyEmailRoute '/_authenticated/payments': typeof AuthenticatedPaymentsRoute '/_authenticated/profile': typeof AuthenticatedProfileRoute - '/_authenticated/seguridad': typeof AuthenticatedSeguridadRoute + '/_authenticated/security': typeof AuthenticatedSecurityRoute '/_authenticated/settings': typeof AuthenticatedSettingsRoute - '/avisar-ausencia/$token': typeof AvisarAusenciaTokenRoute '/join/$token': typeof JoinTokenRoute + '/report-absence/$token': typeof ReportAbsenceTokenRoute '/_authenticated/': typeof AuthenticatedIndexRoute '/_authenticated/groups/new': typeof AuthenticatedGroupsNewRoute '/_authenticated/groups/': typeof AuthenticatedGroupsIndexRoute @@ -182,10 +182,10 @@ export interface FileRouteTypes { | '/verify-email' | '/payments' | '/profile' - | '/seguridad' + | '/security' | '/settings' - | '/avisar-ausencia/$token' | '/join/$token' + | '/report-absence/$token' | '/groups/new' | '/groups/' | '/class/$sessionId/attendance' @@ -199,10 +199,10 @@ export interface FileRouteTypes { | '/verify-email' | '/payments' | '/profile' - | '/seguridad' + | '/security' | '/settings' - | '/avisar-ausencia/$token' | '/join/$token' + | '/report-absence/$token' | '/' | '/groups/new' | '/groups' @@ -218,10 +218,10 @@ export interface FileRouteTypes { | '/verify-email' | '/_authenticated/payments' | '/_authenticated/profile' - | '/_authenticated/seguridad' + | '/_authenticated/security' | '/_authenticated/settings' - | '/avisar-ausencia/$token' | '/join/$token' + | '/report-absence/$token' | '/_authenticated/' | '/_authenticated/groups/new' | '/_authenticated/groups/' @@ -236,8 +236,8 @@ export interface RootRouteChildren { OnboardingRoute: typeof OnboardingRoute SignupRoute: typeof SignupRoute VerifyEmailRoute: typeof VerifyEmailRoute - AvisarAusenciaTokenRoute: typeof AvisarAusenciaTokenRoute JoinTokenRoute: typeof JoinTokenRoute + ReportAbsenceTokenRoute: typeof ReportAbsenceTokenRoute } declare module '@tanstack/react-router' { @@ -298,11 +298,11 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthenticatedProfileRouteImport parentRoute: typeof AuthenticatedRoute } - '/_authenticated/seguridad': { - id: '/_authenticated/seguridad' - path: '/seguridad' - fullPath: '/seguridad' - preLoaderRoute: typeof AuthenticatedSeguridadRouteImport + '/_authenticated/security': { + id: '/_authenticated/security' + path: '/security' + fullPath: '/security' + preLoaderRoute: typeof AuthenticatedSecurityRouteImport parentRoute: typeof AuthenticatedRoute } '/_authenticated/settings': { @@ -312,13 +312,6 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthenticatedSettingsRouteImport 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': { id: '/join/$token' path: '/join/$token' @@ -326,6 +319,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof JoinTokenRouteImport 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/': { id: '/_authenticated/groups/' path: '/groups' @@ -367,7 +367,7 @@ declare module '@tanstack/react-router' { interface AuthenticatedRouteChildren { AuthenticatedPaymentsRoute: typeof AuthenticatedPaymentsRoute AuthenticatedProfileRoute: typeof AuthenticatedProfileRoute - AuthenticatedSeguridadRoute: typeof AuthenticatedSeguridadRoute + AuthenticatedSecurityRoute: typeof AuthenticatedSecurityRoute AuthenticatedSettingsRoute: typeof AuthenticatedSettingsRoute AuthenticatedIndexRoute: typeof AuthenticatedIndexRoute AuthenticatedGroupsNewRoute: typeof AuthenticatedGroupsNewRoute @@ -380,7 +380,7 @@ interface AuthenticatedRouteChildren { const AuthenticatedRouteChildren: AuthenticatedRouteChildren = { AuthenticatedPaymentsRoute: AuthenticatedPaymentsRoute, AuthenticatedProfileRoute: AuthenticatedProfileRoute, - AuthenticatedSeguridadRoute: AuthenticatedSeguridadRoute, + AuthenticatedSecurityRoute: AuthenticatedSecurityRoute, AuthenticatedSettingsRoute: AuthenticatedSettingsRoute, AuthenticatedIndexRoute: AuthenticatedIndexRoute, AuthenticatedGroupsNewRoute: AuthenticatedGroupsNewRoute, @@ -402,8 +402,8 @@ const rootRouteChildren: RootRouteChildren = { OnboardingRoute: OnboardingRoute, SignupRoute: SignupRoute, VerifyEmailRoute: VerifyEmailRoute, - AvisarAusenciaTokenRoute: AvisarAusenciaTokenRoute, JoinTokenRoute: JoinTokenRoute, + ReportAbsenceTokenRoute: ReportAbsenceTokenRoute, } export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) diff --git a/apps/web/src/routes/_authenticated/seguridad.tsx b/apps/web/src/routes/_authenticated/security.tsx similarity index 69% rename from apps/web/src/routes/_authenticated/seguridad.tsx rename to apps/web/src/routes/_authenticated/security.tsx index 1f473bd..b12e31e 100644 --- a/apps/web/src/routes/_authenticated/seguridad.tsx +++ b/apps/web/src/routes/_authenticated/security.tsx @@ -1,6 +1,6 @@ import { createFileRoute } from '@tanstack/react-router' import { SecurityPage } from '../../features/security/SecurityPage' -export const Route = createFileRoute('/_authenticated/seguridad')({ +export const Route = createFileRoute('/_authenticated/security')({ component: SecurityPage, }) diff --git a/apps/web/src/routes/avisar-ausencia.$token.tsx b/apps/web/src/routes/report-absence.$token.tsx similarity index 76% rename from apps/web/src/routes/avisar-ausencia.$token.tsx rename to apps/web/src/routes/report-absence.$token.tsx index e9f9bbb..721fa1e 100644 --- a/apps/web/src/routes/avisar-ausencia.$token.tsx +++ b/apps/web/src/routes/report-absence.$token.tsx @@ -3,9 +3,9 @@ import { createFileRoute } from '@tanstack/react-router' import { AbsenceNotifyProvider } from '../features/absence-notify/AbsenceNotifyProvider' import { AbsenceNotifyView } from '../features/absence-notify/AbsenceNotifyView' -export const Route = createFileRoute('/avisar-ausencia/$token')({ +export const Route = createFileRoute('/report-absence/$token')({ component: () => { - const { token } = useParams({ from: '/avisar-ausencia/$token' }) + const { token } = useParams({ from: '/report-absence/$token' }) return (