refactor(web): rutas de la app de alumnos en inglés
/acceso → /access, /alumno/* → /student/* (welcome, classes, payments, profile, notify-absence, report-payment). El link del mail de confirmación pasa a /access/email/:token. AGENTS.md documenta que los paths van en inglés. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,7 @@ export function ConfirmRecoveryEmailView({ token }: { token: string }) {
|
||||
Si algún día perdés el acceso, pedí un link a <strong className="text-primary">{mutation.data.email}</strong>.
|
||||
</p>
|
||||
</div>
|
||||
<Link to="/alumno" className="inline-flex h-12 w-full items-center justify-center rounded-xl bg-accent font-medium text-on-accent hover:bg-accent-strong">
|
||||
<Link to="/student" className="inline-flex h-12 w-full items-center justify-center rounded-xl bg-accent font-medium text-on-accent hover:bg-accent-strong">
|
||||
Ir a gruperly
|
||||
</Link>
|
||||
</>
|
||||
|
||||
@@ -19,7 +19,7 @@ export function PasskeyLoginButton() {
|
||||
try {
|
||||
await loginWithPasskey()
|
||||
await queryClient.invalidateQueries({ queryKey: ['student'] })
|
||||
await navigate({ to: '/alumno', replace: true })
|
||||
await navigate({ to: '/student', replace: true })
|
||||
} catch (error) {
|
||||
if (!isPasskeyCancel(error)) setFailed(true)
|
||||
} finally {
|
||||
|
||||
@@ -34,7 +34,7 @@ export function StudentLinkProvider({ token, children }: { token: string; childr
|
||||
mutationFn: () => consumeStudentLink(token),
|
||||
onSuccess: async ({ firstLogin }) => {
|
||||
queryClient.removeQueries({ queryKey: ['student'] })
|
||||
await navigate({ to: firstLogin ? '/alumno/bienvenida' : '/alumno', replace: true })
|
||||
await navigate({ to: firstLogin ? '/student/welcome' : '/student', replace: true })
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ export function FeeCard({ fees }: { fees: StudentFee[] }) {
|
||||
</div>
|
||||
{toReport.length > 0 ? (
|
||||
<Link
|
||||
to="/alumno/informar-pago"
|
||||
to="/student/report-payment"
|
||||
className="mt-4 flex min-h-12 items-center justify-center gap-2 rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong"
|
||||
>
|
||||
<Receipt className="size-5" aria-hidden="true" />
|
||||
|
||||
@@ -34,7 +34,7 @@ export function NextClassCard({ item, timeZone }: NextClassCardProps) {
|
||||
</p>
|
||||
) : (
|
||||
<Link
|
||||
to="/alumno/avisar"
|
||||
to="/student/notify-absence"
|
||||
search={{ clase: item.startsAt }}
|
||||
className="mt-4 flex min-h-12 items-center justify-center gap-2 rounded-xl bg-white font-semibold text-brand-night hover:bg-brand-cloud"
|
||||
>
|
||||
|
||||
@@ -33,10 +33,10 @@ export function NotifyAbsenceView({ preselected }: { preselected?: string }) {
|
||||
<FlowDone title={`Listo, le avisamos a ${teacher}`}>
|
||||
<p className="text-sm text-secondary">Si cambiás de idea, podés deshacerlo desde Clases mientras la clase no haya empezado.</p>
|
||||
<div className="space-y-2 pt-2">
|
||||
<Link to="/alumno" className="flex min-h-12 items-center justify-center rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong">
|
||||
<Link to="/student" className="flex min-h-12 items-center justify-center rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong">
|
||||
Volver al inicio
|
||||
</Link>
|
||||
<Link to="/alumno/clases" className="flex min-h-12 items-center justify-center rounded-xl border border-border font-medium text-primary hover:bg-primary-soft">
|
||||
<Link to="/student/classes" className="flex min-h-12 items-center justify-center rounded-xl border border-border font-medium text-primary hover:bg-primary-soft">
|
||||
Ver mis clases
|
||||
</Link>
|
||||
</div>
|
||||
@@ -61,7 +61,7 @@ export function NotifyAbsenceView({ preselected }: { preselected?: string }) {
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<Link to="/alumno" className="hidden items-center gap-1 text-sm text-secondary hover:text-primary lg:inline-flex">
|
||||
<Link to="/student" className="hidden items-center gap-1 text-sm text-secondary hover:text-primary lg:inline-flex">
|
||||
<ArrowLeft className="size-4" aria-hidden="true" />
|
||||
Volver
|
||||
</Link>
|
||||
|
||||
@@ -34,7 +34,7 @@ export function ReportPaymentView() {
|
||||
<p className="text-sm text-secondary">
|
||||
{teacher} va a revisar el comprobante. Te avisamos acá cuando lo confirme.
|
||||
</p>
|
||||
<Link to="/alumno" className="flex min-h-12 items-center justify-center rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong">
|
||||
<Link to="/student" className="flex min-h-12 items-center justify-center rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong">
|
||||
Volver al inicio
|
||||
</Link>
|
||||
</FlowDone>
|
||||
@@ -63,7 +63,7 @@ export function ReportPaymentView() {
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<Link to="/alumno/pagos" className="hidden items-center gap-1 text-sm text-secondary hover:text-primary lg:inline-flex">
|
||||
<Link to="/student/payments" className="hidden items-center gap-1 text-sm text-secondary hover:text-primary lg:inline-flex">
|
||||
<ArrowLeft className="size-4" aria-hidden="true" />
|
||||
Volver
|
||||
</Link>
|
||||
|
||||
@@ -94,7 +94,7 @@ function useReportPayment(attendeeId: string | null) {
|
||||
}
|
||||
|
||||
/* State of the student app: the session ("me"), the selected attendee and its
|
||||
classes and fees. Without a session (401) it sends the student to /acceso. */
|
||||
classes and fees. Without a session (401) it sends the student to /access. */
|
||||
export function StudentAppProvider({ children }: { children: ReactNode }) {
|
||||
const navigate = useNavigate()
|
||||
const queryClient = useQueryClient()
|
||||
@@ -104,7 +104,7 @@ export function StudentAppProvider({ children }: { children: ReactNode }) {
|
||||
|
||||
useEffect(() => {
|
||||
if (meQuery.error instanceof ApiError && meQuery.error.status === 401) {
|
||||
void navigate({ to: '/acceso', replace: true })
|
||||
void navigate({ to: '/access', replace: true })
|
||||
}
|
||||
}, [meQuery.error, navigate])
|
||||
|
||||
@@ -145,7 +145,7 @@ export function StudentAppProvider({ children }: { children: ReactNode }) {
|
||||
mutationFn: logoutStudent,
|
||||
onSettled: async () => {
|
||||
queryClient.removeQueries({ queryKey: ['student'] })
|
||||
await navigate({ to: '/acceso', replace: true })
|
||||
await navigate({ to: '/access', replace: true })
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export function StudentClassesView() {
|
||||
</div>
|
||||
|
||||
<Link
|
||||
to="/alumno/avisar"
|
||||
to="/student/notify-absence"
|
||||
className="flex min-h-12 items-center justify-center gap-2 rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong"
|
||||
>
|
||||
<CalendarX2 className="size-5" aria-hidden="true" />
|
||||
|
||||
@@ -34,7 +34,7 @@ export function StudentLayout() {
|
||||
<div className="flex justify-center py-20" role="status" aria-label="Cargando">
|
||||
<Loader2 className="size-8 animate-spin text-accent" aria-hidden="true" />
|
||||
</div>
|
||||
) : !student && !location.pathname.startsWith('/alumno/perfil') ? (
|
||||
) : !student && !location.pathname.startsWith('/student/profile') ? (
|
||||
<div className="mt-10 space-y-3 rounded-2xl border border-border bg-surface p-6 text-center">
|
||||
<UserX className="mx-auto size-8 text-foreground" aria-hidden="true" />
|
||||
<h1 className="text-lg font-bold text-primary">No tenés grupos activos</h1>
|
||||
|
||||
@@ -69,7 +69,7 @@ export function StudentPaymentsView() {
|
||||
)}
|
||||
{canReport ? (
|
||||
<Link
|
||||
to="/alumno/informar-pago"
|
||||
to="/student/report-payment"
|
||||
className="flex min-h-12 items-center justify-center gap-2 rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong"
|
||||
>
|
||||
<Receipt className="size-5" aria-hidden="true" />
|
||||
|
||||
@@ -13,7 +13,7 @@ export function WelcomeView() {
|
||||
const [email, setEmail] = useState('')
|
||||
|
||||
const goHome = () =>
|
||||
finishWelcome.mutate(undefined, { onSettled: () => void navigate({ to: '/alumno', replace: true }) })
|
||||
finishWelcome.mutate(undefined, { onSettled: () => void navigate({ to: '/student', replace: true }) })
|
||||
|
||||
const handleContinue = () => {
|
||||
const value = email.trim()
|
||||
|
||||
@@ -3,17 +3,17 @@ import type { NavItem } from '../../components/layout/nav-items'
|
||||
|
||||
// Bottom nav of the student app: the single source for StudentBottomNav.
|
||||
export const STUDENT_NAV_ITEMS: NavItem[] = [
|
||||
{ label: 'Inicio', to: '/alumno', icon: Home },
|
||||
{ label: 'Clases', to: '/alumno/clases', icon: CalendarDays },
|
||||
{ label: 'Pagos', to: '/alumno/pagos', icon: Wallet },
|
||||
{ label: 'Perfil', to: '/alumno/perfil', icon: User },
|
||||
{ label: 'Inicio', to: '/student', icon: Home },
|
||||
{ label: 'Clases', to: '/student/classes', icon: CalendarDays },
|
||||
{ label: 'Pagos', to: '/student/payments', icon: Wallet },
|
||||
{ label: 'Perfil', to: '/student/profile', icon: User },
|
||||
]
|
||||
|
||||
/* Flow screens with their own fixed bottom button: no nav there. */
|
||||
export const STUDENT_FLOW_PATHS = ['/alumno/bienvenida', '/alumno/avisar', '/alumno/informar-pago']
|
||||
export const STUDENT_FLOW_PATHS = ['/student/welcome', '/student/notify-absence', '/student/report-payment']
|
||||
|
||||
export function isStudentNavItemActive(pathname: string, to: string): boolean {
|
||||
const path = pathname.replace(/\/$/, '') || '/'
|
||||
if (to === '/alumno') return path === '/alumno'
|
||||
if (to === '/student') return path === '/student'
|
||||
return path === to || path.startsWith(`${to}/`)
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ import { Route as AuthenticatedPaymentsRouteImport } from './routes/_authenticat
|
||||
import { Route as AuthenticatedProfileRouteImport } from './routes/_authenticated/profile'
|
||||
import { Route as AuthenticatedSecurityRouteImport } from './routes/_authenticated/security'
|
||||
import { Route as AuthenticatedSettingsRouteImport } from './routes/_authenticated/settings'
|
||||
import { Route as AccesoIndexRouteImport } from './routes/acceso.index'
|
||||
import { Route as AccessIndexRouteImport } from './routes/access.index'
|
||||
import { Route as AdminIndexRouteImport } from './routes/admin/index'
|
||||
import { Route as ITokenRouteImport } from './routes/i.$token'
|
||||
import { Route as JoinTokenRouteImport } from './routes/join.$token'
|
||||
@@ -32,14 +32,14 @@ import { Route as ReportAbsenceTokenRouteImport } from './routes/report-absence.
|
||||
import { Route as AuthenticatedGroupsIndexRouteImport } from './routes/_authenticated/groups/index'
|
||||
import { Route as AuthenticatedGroupsAttentionRouteImport } from './routes/_authenticated/groups/attention'
|
||||
import { Route as AuthenticatedGroupsNewRouteImport } from './routes/_authenticated/groups/new'
|
||||
import { Route as StudentAlumnoIndexRouteImport } from './routes/_student/alumno.index'
|
||||
import { Route as StudentAlumnoAvisarRouteImport } from './routes/_student/alumno.avisar'
|
||||
import { Route as StudentAlumnoBienvenidaRouteImport } from './routes/_student/alumno.bienvenida'
|
||||
import { Route as StudentAlumnoClasesRouteImport } from './routes/_student/alumno.clases'
|
||||
import { Route as StudentAlumnoInformarPagoRouteImport } from './routes/_student/alumno.informar-pago'
|
||||
import { Route as StudentAlumnoPagosRouteImport } from './routes/_student/alumno.pagos'
|
||||
import { Route as StudentAlumnoPerfilRouteImport } from './routes/_student/alumno.perfil'
|
||||
import { Route as AccesoMailTokenRouteImport } from './routes/acceso.mail.$token'
|
||||
import { Route as StudentStudentIndexRouteImport } from './routes/_student/student.index'
|
||||
import { Route as StudentStudentClassesRouteImport } from './routes/_student/student.classes'
|
||||
import { Route as StudentStudentNotifyAbsenceRouteImport } from './routes/_student/student.notify-absence'
|
||||
import { Route as StudentStudentPaymentsRouteImport } from './routes/_student/student.payments'
|
||||
import { Route as StudentStudentProfileRouteImport } from './routes/_student/student.profile'
|
||||
import { Route as StudentStudentReportPaymentRouteImport } from './routes/_student/student.report-payment'
|
||||
import { Route as StudentStudentWelcomeRouteImport } from './routes/_student/student.welcome'
|
||||
import { Route as AccessEmailTokenRouteImport } from './routes/access.email.$token'
|
||||
import { Route as AdminAccountsAccountIdRouteImport } from './routes/admin/accounts.$accountId'
|
||||
import { Route as AuthenticatedClassSessionIdAttendanceRouteImport } from './routes/_authenticated/class/$sessionId/attendance'
|
||||
import { Route as AuthenticatedGroupsGroupIdIndexRouteImport } from './routes/_authenticated/groups/$groupId/index'
|
||||
@@ -120,9 +120,9 @@ const AuthenticatedSettingsRoute = AuthenticatedSettingsRouteImport.update({
|
||||
path: '/settings',
|
||||
getParentRoute: () => AuthenticatedRoute,
|
||||
} as any)
|
||||
const AccesoIndexRoute = AccesoIndexRouteImport.update({
|
||||
id: '/acceso/',
|
||||
path: '/acceso/',
|
||||
const AccessIndexRoute = AccessIndexRouteImport.update({
|
||||
id: '/access/',
|
||||
path: '/access/',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const AdminIndexRoute = AdminIndexRouteImport.update({
|
||||
@@ -162,45 +162,46 @@ const AuthenticatedGroupsNewRoute = AuthenticatedGroupsNewRouteImport.update({
|
||||
path: '/groups/new',
|
||||
getParentRoute: () => AuthenticatedRoute,
|
||||
} as any)
|
||||
const StudentAlumnoIndexRoute = StudentAlumnoIndexRouteImport.update({
|
||||
id: '/alumno/',
|
||||
path: '/alumno/',
|
||||
const StudentStudentIndexRoute = StudentStudentIndexRouteImport.update({
|
||||
id: '/student/',
|
||||
path: '/student/',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoAvisarRoute = StudentAlumnoAvisarRouteImport.update({
|
||||
id: '/alumno/avisar',
|
||||
path: '/alumno/avisar',
|
||||
const StudentStudentClassesRoute = StudentStudentClassesRouteImport.update({
|
||||
id: '/student/classes',
|
||||
path: '/student/classes',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoBienvenidaRoute = StudentAlumnoBienvenidaRouteImport.update({
|
||||
id: '/alumno/bienvenida',
|
||||
path: '/alumno/bienvenida',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoClasesRoute = StudentAlumnoClasesRouteImport.update({
|
||||
id: '/alumno/clases',
|
||||
path: '/alumno/clases',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoInformarPagoRoute =
|
||||
StudentAlumnoInformarPagoRouteImport.update({
|
||||
id: '/alumno/informar-pago',
|
||||
path: '/alumno/informar-pago',
|
||||
const StudentStudentNotifyAbsenceRoute =
|
||||
StudentStudentNotifyAbsenceRouteImport.update({
|
||||
id: '/student/notify-absence',
|
||||
path: '/student/notify-absence',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoPagosRoute = StudentAlumnoPagosRouteImport.update({
|
||||
id: '/alumno/pagos',
|
||||
path: '/alumno/pagos',
|
||||
const StudentStudentPaymentsRoute = StudentStudentPaymentsRouteImport.update({
|
||||
id: '/student/payments',
|
||||
path: '/student/payments',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoPerfilRoute = StudentAlumnoPerfilRouteImport.update({
|
||||
id: '/alumno/perfil',
|
||||
path: '/alumno/perfil',
|
||||
const StudentStudentProfileRoute = StudentStudentProfileRouteImport.update({
|
||||
id: '/student/profile',
|
||||
path: '/student/profile',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const AccesoMailTokenRoute = AccesoMailTokenRouteImport.update({
|
||||
id: '/acceso/mail/$token',
|
||||
path: '/acceso/mail/$token',
|
||||
const StudentStudentReportPaymentRoute =
|
||||
StudentStudentReportPaymentRouteImport.update({
|
||||
id: '/student/report-payment',
|
||||
path: '/student/report-payment',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentStudentWelcomeRoute = StudentStudentWelcomeRouteImport.update({
|
||||
id: '/student/welcome',
|
||||
path: '/student/welcome',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const AccessEmailTokenRoute = AccessEmailTokenRouteImport.update({
|
||||
id: '/access/email/$token',
|
||||
path: '/access/email/$token',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const AdminAccountsAccountIdRoute = AdminAccountsAccountIdRouteImport.update({
|
||||
@@ -256,20 +257,20 @@ export interface FileRoutesByFullPath {
|
||||
'/i/$token': typeof ITokenRoute
|
||||
'/join/$token': typeof JoinTokenRoute
|
||||
'/report-absence/$token': typeof ReportAbsenceTokenRoute
|
||||
'/acceso/': typeof AccesoIndexRoute
|
||||
'/access/': typeof AccessIndexRoute
|
||||
'/admin/': typeof AdminIndexRoute
|
||||
'/groups/attention': typeof AuthenticatedGroupsAttentionRoute
|
||||
'/groups/new': typeof AuthenticatedGroupsNewRoute
|
||||
'/alumno/avisar': typeof StudentAlumnoAvisarRoute
|
||||
'/alumno/bienvenida': typeof StudentAlumnoBienvenidaRoute
|
||||
'/alumno/clases': typeof StudentAlumnoClasesRoute
|
||||
'/alumno/informar-pago': typeof StudentAlumnoInformarPagoRoute
|
||||
'/alumno/pagos': typeof StudentAlumnoPagosRoute
|
||||
'/alumno/perfil': typeof StudentAlumnoPerfilRoute
|
||||
'/acceso/mail/$token': typeof AccesoMailTokenRoute
|
||||
'/student/classes': typeof StudentStudentClassesRoute
|
||||
'/student/notify-absence': typeof StudentStudentNotifyAbsenceRoute
|
||||
'/student/payments': typeof StudentStudentPaymentsRoute
|
||||
'/student/profile': typeof StudentStudentProfileRoute
|
||||
'/student/report-payment': typeof StudentStudentReportPaymentRoute
|
||||
'/student/welcome': typeof StudentStudentWelcomeRoute
|
||||
'/access/email/$token': typeof AccessEmailTokenRoute
|
||||
'/admin/accounts/$accountId': typeof AdminAccountsAccountIdRoute
|
||||
'/groups/': typeof AuthenticatedGroupsIndexRoute
|
||||
'/alumno/': typeof StudentAlumnoIndexRoute
|
||||
'/student/': typeof StudentStudentIndexRoute
|
||||
'/class/$sessionId/attendance': typeof AuthenticatedClassSessionIdAttendanceRoute
|
||||
'/groups/$groupId/analytics': typeof AuthenticatedGroupsGroupIdAnalyticsRoute
|
||||
'/groups/$groupId/': typeof AuthenticatedGroupsGroupIdIndexRoute
|
||||
@@ -292,20 +293,20 @@ export interface FileRoutesByTo {
|
||||
'/i/$token': typeof ITokenRoute
|
||||
'/join/$token': typeof JoinTokenRoute
|
||||
'/report-absence/$token': typeof ReportAbsenceTokenRoute
|
||||
'/acceso': typeof AccesoIndexRoute
|
||||
'/access': typeof AccessIndexRoute
|
||||
'/admin': typeof AdminIndexRoute
|
||||
'/groups/attention': typeof AuthenticatedGroupsAttentionRoute
|
||||
'/groups/new': typeof AuthenticatedGroupsNewRoute
|
||||
'/alumno/avisar': typeof StudentAlumnoAvisarRoute
|
||||
'/alumno/bienvenida': typeof StudentAlumnoBienvenidaRoute
|
||||
'/alumno/clases': typeof StudentAlumnoClasesRoute
|
||||
'/alumno/informar-pago': typeof StudentAlumnoInformarPagoRoute
|
||||
'/alumno/pagos': typeof StudentAlumnoPagosRoute
|
||||
'/alumno/perfil': typeof StudentAlumnoPerfilRoute
|
||||
'/acceso/mail/$token': typeof AccesoMailTokenRoute
|
||||
'/student/classes': typeof StudentStudentClassesRoute
|
||||
'/student/notify-absence': typeof StudentStudentNotifyAbsenceRoute
|
||||
'/student/payments': typeof StudentStudentPaymentsRoute
|
||||
'/student/profile': typeof StudentStudentProfileRoute
|
||||
'/student/report-payment': typeof StudentStudentReportPaymentRoute
|
||||
'/student/welcome': typeof StudentStudentWelcomeRoute
|
||||
'/access/email/$token': typeof AccessEmailTokenRoute
|
||||
'/admin/accounts/$accountId': typeof AdminAccountsAccountIdRoute
|
||||
'/groups': typeof AuthenticatedGroupsIndexRoute
|
||||
'/alumno': typeof StudentAlumnoIndexRoute
|
||||
'/student': typeof StudentStudentIndexRoute
|
||||
'/class/$sessionId/attendance': typeof AuthenticatedClassSessionIdAttendanceRoute
|
||||
'/groups/$groupId/analytics': typeof AuthenticatedGroupsGroupIdAnalyticsRoute
|
||||
'/groups/$groupId': typeof AuthenticatedGroupsGroupIdIndexRoute
|
||||
@@ -332,20 +333,20 @@ export interface FileRoutesById {
|
||||
'/join/$token': typeof JoinTokenRoute
|
||||
'/report-absence/$token': typeof ReportAbsenceTokenRoute
|
||||
'/_authenticated/': typeof AuthenticatedIndexRoute
|
||||
'/acceso/': typeof AccesoIndexRoute
|
||||
'/access/': typeof AccessIndexRoute
|
||||
'/admin/': typeof AdminIndexRoute
|
||||
'/_authenticated/groups/attention': typeof AuthenticatedGroupsAttentionRoute
|
||||
'/_authenticated/groups/new': typeof AuthenticatedGroupsNewRoute
|
||||
'/_student/alumno/avisar': typeof StudentAlumnoAvisarRoute
|
||||
'/_student/alumno/bienvenida': typeof StudentAlumnoBienvenidaRoute
|
||||
'/_student/alumno/clases': typeof StudentAlumnoClasesRoute
|
||||
'/_student/alumno/informar-pago': typeof StudentAlumnoInformarPagoRoute
|
||||
'/_student/alumno/pagos': typeof StudentAlumnoPagosRoute
|
||||
'/_student/alumno/perfil': typeof StudentAlumnoPerfilRoute
|
||||
'/acceso/mail/$token': typeof AccesoMailTokenRoute
|
||||
'/_student/student/classes': typeof StudentStudentClassesRoute
|
||||
'/_student/student/notify-absence': typeof StudentStudentNotifyAbsenceRoute
|
||||
'/_student/student/payments': typeof StudentStudentPaymentsRoute
|
||||
'/_student/student/profile': typeof StudentStudentProfileRoute
|
||||
'/_student/student/report-payment': typeof StudentStudentReportPaymentRoute
|
||||
'/_student/student/welcome': typeof StudentStudentWelcomeRoute
|
||||
'/access/email/$token': typeof AccessEmailTokenRoute
|
||||
'/admin/accounts/$accountId': typeof AdminAccountsAccountIdRoute
|
||||
'/_authenticated/groups/': typeof AuthenticatedGroupsIndexRoute
|
||||
'/_student/alumno/': typeof StudentAlumnoIndexRoute
|
||||
'/_student/student/': typeof StudentStudentIndexRoute
|
||||
'/_authenticated/class/$sessionId/attendance': typeof AuthenticatedClassSessionIdAttendanceRoute
|
||||
'/_authenticated/groups/$groupId/analytics': typeof AuthenticatedGroupsGroupIdAnalyticsRoute
|
||||
'/_authenticated/groups/$groupId/': typeof AuthenticatedGroupsGroupIdIndexRoute
|
||||
@@ -371,20 +372,20 @@ export interface FileRouteTypes {
|
||||
| '/i/$token'
|
||||
| '/join/$token'
|
||||
| '/report-absence/$token'
|
||||
| '/acceso/'
|
||||
| '/access/'
|
||||
| '/admin/'
|
||||
| '/groups/attention'
|
||||
| '/groups/new'
|
||||
| '/alumno/avisar'
|
||||
| '/alumno/bienvenida'
|
||||
| '/alumno/clases'
|
||||
| '/alumno/informar-pago'
|
||||
| '/alumno/pagos'
|
||||
| '/alumno/perfil'
|
||||
| '/acceso/mail/$token'
|
||||
| '/student/classes'
|
||||
| '/student/notify-absence'
|
||||
| '/student/payments'
|
||||
| '/student/profile'
|
||||
| '/student/report-payment'
|
||||
| '/student/welcome'
|
||||
| '/access/email/$token'
|
||||
| '/admin/accounts/$accountId'
|
||||
| '/groups/'
|
||||
| '/alumno/'
|
||||
| '/student/'
|
||||
| '/class/$sessionId/attendance'
|
||||
| '/groups/$groupId/analytics'
|
||||
| '/groups/$groupId/'
|
||||
@@ -407,20 +408,20 @@ export interface FileRouteTypes {
|
||||
| '/i/$token'
|
||||
| '/join/$token'
|
||||
| '/report-absence/$token'
|
||||
| '/acceso'
|
||||
| '/access'
|
||||
| '/admin'
|
||||
| '/groups/attention'
|
||||
| '/groups/new'
|
||||
| '/alumno/avisar'
|
||||
| '/alumno/bienvenida'
|
||||
| '/alumno/clases'
|
||||
| '/alumno/informar-pago'
|
||||
| '/alumno/pagos'
|
||||
| '/alumno/perfil'
|
||||
| '/acceso/mail/$token'
|
||||
| '/student/classes'
|
||||
| '/student/notify-absence'
|
||||
| '/student/payments'
|
||||
| '/student/profile'
|
||||
| '/student/report-payment'
|
||||
| '/student/welcome'
|
||||
| '/access/email/$token'
|
||||
| '/admin/accounts/$accountId'
|
||||
| '/groups'
|
||||
| '/alumno'
|
||||
| '/student'
|
||||
| '/class/$sessionId/attendance'
|
||||
| '/groups/$groupId/analytics'
|
||||
| '/groups/$groupId'
|
||||
@@ -446,20 +447,20 @@ export interface FileRouteTypes {
|
||||
| '/join/$token'
|
||||
| '/report-absence/$token'
|
||||
| '/_authenticated/'
|
||||
| '/acceso/'
|
||||
| '/access/'
|
||||
| '/admin/'
|
||||
| '/_authenticated/groups/attention'
|
||||
| '/_authenticated/groups/new'
|
||||
| '/_student/alumno/avisar'
|
||||
| '/_student/alumno/bienvenida'
|
||||
| '/_student/alumno/clases'
|
||||
| '/_student/alumno/informar-pago'
|
||||
| '/_student/alumno/pagos'
|
||||
| '/_student/alumno/perfil'
|
||||
| '/acceso/mail/$token'
|
||||
| '/_student/student/classes'
|
||||
| '/_student/student/notify-absence'
|
||||
| '/_student/student/payments'
|
||||
| '/_student/student/profile'
|
||||
| '/_student/student/report-payment'
|
||||
| '/_student/student/welcome'
|
||||
| '/access/email/$token'
|
||||
| '/admin/accounts/$accountId'
|
||||
| '/_authenticated/groups/'
|
||||
| '/_student/alumno/'
|
||||
| '/_student/student/'
|
||||
| '/_authenticated/class/$sessionId/attendance'
|
||||
| '/_authenticated/groups/$groupId/analytics'
|
||||
| '/_authenticated/groups/$groupId/'
|
||||
@@ -480,8 +481,8 @@ export interface RootRouteChildren {
|
||||
ITokenRoute: typeof ITokenRoute
|
||||
JoinTokenRoute: typeof JoinTokenRoute
|
||||
ReportAbsenceTokenRoute: typeof ReportAbsenceTokenRoute
|
||||
AccesoIndexRoute: typeof AccesoIndexRoute
|
||||
AccesoMailTokenRoute: typeof AccesoMailTokenRoute
|
||||
AccessIndexRoute: typeof AccessIndexRoute
|
||||
AccessEmailTokenRoute: typeof AccessEmailTokenRoute
|
||||
}
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
@@ -591,11 +592,11 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof AuthenticatedSettingsRouteImport
|
||||
parentRoute: typeof AuthenticatedRoute
|
||||
}
|
||||
'/acceso/': {
|
||||
id: '/acceso/'
|
||||
path: '/acceso'
|
||||
fullPath: '/acceso/'
|
||||
preLoaderRoute: typeof AccesoIndexRouteImport
|
||||
'/access/': {
|
||||
id: '/access/'
|
||||
path: '/access'
|
||||
fullPath: '/access/'
|
||||
preLoaderRoute: typeof AccessIndexRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/admin/': {
|
||||
@@ -647,60 +648,60 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof AuthenticatedGroupsNewRouteImport
|
||||
parentRoute: typeof AuthenticatedRoute
|
||||
}
|
||||
'/_student/alumno/': {
|
||||
id: '/_student/alumno/'
|
||||
path: '/alumno'
|
||||
fullPath: '/alumno/'
|
||||
preLoaderRoute: typeof StudentAlumnoIndexRouteImport
|
||||
'/_student/student/': {
|
||||
id: '/_student/student/'
|
||||
path: '/student'
|
||||
fullPath: '/student/'
|
||||
preLoaderRoute: typeof StudentStudentIndexRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/avisar': {
|
||||
id: '/_student/alumno/avisar'
|
||||
path: '/alumno/avisar'
|
||||
fullPath: '/alumno/avisar'
|
||||
preLoaderRoute: typeof StudentAlumnoAvisarRouteImport
|
||||
'/_student/student/classes': {
|
||||
id: '/_student/student/classes'
|
||||
path: '/student/classes'
|
||||
fullPath: '/student/classes'
|
||||
preLoaderRoute: typeof StudentStudentClassesRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/bienvenida': {
|
||||
id: '/_student/alumno/bienvenida'
|
||||
path: '/alumno/bienvenida'
|
||||
fullPath: '/alumno/bienvenida'
|
||||
preLoaderRoute: typeof StudentAlumnoBienvenidaRouteImport
|
||||
'/_student/student/notify-absence': {
|
||||
id: '/_student/student/notify-absence'
|
||||
path: '/student/notify-absence'
|
||||
fullPath: '/student/notify-absence'
|
||||
preLoaderRoute: typeof StudentStudentNotifyAbsenceRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/clases': {
|
||||
id: '/_student/alumno/clases'
|
||||
path: '/alumno/clases'
|
||||
fullPath: '/alumno/clases'
|
||||
preLoaderRoute: typeof StudentAlumnoClasesRouteImport
|
||||
'/_student/student/payments': {
|
||||
id: '/_student/student/payments'
|
||||
path: '/student/payments'
|
||||
fullPath: '/student/payments'
|
||||
preLoaderRoute: typeof StudentStudentPaymentsRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/informar-pago': {
|
||||
id: '/_student/alumno/informar-pago'
|
||||
path: '/alumno/informar-pago'
|
||||
fullPath: '/alumno/informar-pago'
|
||||
preLoaderRoute: typeof StudentAlumnoInformarPagoRouteImport
|
||||
'/_student/student/profile': {
|
||||
id: '/_student/student/profile'
|
||||
path: '/student/profile'
|
||||
fullPath: '/student/profile'
|
||||
preLoaderRoute: typeof StudentStudentProfileRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/pagos': {
|
||||
id: '/_student/alumno/pagos'
|
||||
path: '/alumno/pagos'
|
||||
fullPath: '/alumno/pagos'
|
||||
preLoaderRoute: typeof StudentAlumnoPagosRouteImport
|
||||
'/_student/student/report-payment': {
|
||||
id: '/_student/student/report-payment'
|
||||
path: '/student/report-payment'
|
||||
fullPath: '/student/report-payment'
|
||||
preLoaderRoute: typeof StudentStudentReportPaymentRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/perfil': {
|
||||
id: '/_student/alumno/perfil'
|
||||
path: '/alumno/perfil'
|
||||
fullPath: '/alumno/perfil'
|
||||
preLoaderRoute: typeof StudentAlumnoPerfilRouteImport
|
||||
'/_student/student/welcome': {
|
||||
id: '/_student/student/welcome'
|
||||
path: '/student/welcome'
|
||||
fullPath: '/student/welcome'
|
||||
preLoaderRoute: typeof StudentStudentWelcomeRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/acceso/mail/$token': {
|
||||
id: '/acceso/mail/$token'
|
||||
path: '/acceso/mail/$token'
|
||||
fullPath: '/acceso/mail/$token'
|
||||
preLoaderRoute: typeof AccesoMailTokenRouteImport
|
||||
'/access/email/$token': {
|
||||
id: '/access/email/$token'
|
||||
path: '/access/email/$token'
|
||||
fullPath: '/access/email/$token'
|
||||
preLoaderRoute: typeof AccessEmailTokenRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/admin/accounts/$accountId': {
|
||||
@@ -791,23 +792,23 @@ const AuthenticatedRouteWithChildren = AuthenticatedRoute._addFileChildren(
|
||||
)
|
||||
|
||||
interface StudentRouteChildren {
|
||||
StudentAlumnoAvisarRoute: typeof StudentAlumnoAvisarRoute
|
||||
StudentAlumnoBienvenidaRoute: typeof StudentAlumnoBienvenidaRoute
|
||||
StudentAlumnoClasesRoute: typeof StudentAlumnoClasesRoute
|
||||
StudentAlumnoInformarPagoRoute: typeof StudentAlumnoInformarPagoRoute
|
||||
StudentAlumnoPagosRoute: typeof StudentAlumnoPagosRoute
|
||||
StudentAlumnoPerfilRoute: typeof StudentAlumnoPerfilRoute
|
||||
StudentAlumnoIndexRoute: typeof StudentAlumnoIndexRoute
|
||||
StudentStudentClassesRoute: typeof StudentStudentClassesRoute
|
||||
StudentStudentNotifyAbsenceRoute: typeof StudentStudentNotifyAbsenceRoute
|
||||
StudentStudentPaymentsRoute: typeof StudentStudentPaymentsRoute
|
||||
StudentStudentProfileRoute: typeof StudentStudentProfileRoute
|
||||
StudentStudentReportPaymentRoute: typeof StudentStudentReportPaymentRoute
|
||||
StudentStudentWelcomeRoute: typeof StudentStudentWelcomeRoute
|
||||
StudentStudentIndexRoute: typeof StudentStudentIndexRoute
|
||||
}
|
||||
|
||||
const StudentRouteChildren: StudentRouteChildren = {
|
||||
StudentAlumnoAvisarRoute: StudentAlumnoAvisarRoute,
|
||||
StudentAlumnoBienvenidaRoute: StudentAlumnoBienvenidaRoute,
|
||||
StudentAlumnoClasesRoute: StudentAlumnoClasesRoute,
|
||||
StudentAlumnoInformarPagoRoute: StudentAlumnoInformarPagoRoute,
|
||||
StudentAlumnoPagosRoute: StudentAlumnoPagosRoute,
|
||||
StudentAlumnoPerfilRoute: StudentAlumnoPerfilRoute,
|
||||
StudentAlumnoIndexRoute: StudentAlumnoIndexRoute,
|
||||
StudentStudentClassesRoute: StudentStudentClassesRoute,
|
||||
StudentStudentNotifyAbsenceRoute: StudentStudentNotifyAbsenceRoute,
|
||||
StudentStudentPaymentsRoute: StudentStudentPaymentsRoute,
|
||||
StudentStudentProfileRoute: StudentStudentProfileRoute,
|
||||
StudentStudentReportPaymentRoute: StudentStudentReportPaymentRoute,
|
||||
StudentStudentWelcomeRoute: StudentStudentWelcomeRoute,
|
||||
StudentStudentIndexRoute: StudentStudentIndexRoute,
|
||||
}
|
||||
|
||||
const StudentRouteWithChildren =
|
||||
@@ -838,8 +839,8 @@ const rootRouteChildren: RootRouteChildren = {
|
||||
ITokenRoute: ITokenRoute,
|
||||
JoinTokenRoute: JoinTokenRoute,
|
||||
ReportAbsenceTokenRoute: ReportAbsenceTokenRoute,
|
||||
AccesoIndexRoute: AccesoIndexRoute,
|
||||
AccesoMailTokenRoute: AccesoMailTokenRoute,
|
||||
AccessIndexRoute: AccessIndexRoute,
|
||||
AccessEmailTokenRoute: AccessEmailTokenRoute,
|
||||
}
|
||||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { StudentClassesView } from '../../features/student-app/StudentClassesView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/clases')({
|
||||
export const Route = createFileRoute('/_student/student/classes')({
|
||||
component: StudentClassesView,
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { StudentHomeView } from '../../features/student-app/StudentHomeView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/')({
|
||||
export const Route = createFileRoute('/_student/student/')({
|
||||
component: StudentHomeView,
|
||||
})
|
||||
@@ -6,7 +6,7 @@ function NotifyAbsenceRoute() {
|
||||
return <NotifyAbsenceView preselected={clase} />
|
||||
}
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/avisar')({
|
||||
export const Route = createFileRoute('/_student/student/notify-absence')({
|
||||
validateSearch: (search: Record<string, unknown>): { clase?: string } =>
|
||||
typeof search.clase === 'string' ? { clase: search.clase } : {},
|
||||
component: NotifyAbsenceRoute,
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { StudentPaymentsView } from '../../features/student-app/StudentPaymentsView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/pagos')({
|
||||
export const Route = createFileRoute('/_student/student/payments')({
|
||||
component: StudentPaymentsView,
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { StudentProfileView } from '../../features/student-app/StudentProfileView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/perfil')({
|
||||
export const Route = createFileRoute('/_student/student/profile')({
|
||||
component: StudentProfileView,
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { ReportPaymentView } from '../../features/student-app/ReportPaymentView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/informar-pago')({
|
||||
export const Route = createFileRoute('/_student/student/report-payment')({
|
||||
component: ReportPaymentView,
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { WelcomeView } from '../../features/student-app/WelcomeView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/bienvenida')({
|
||||
export const Route = createFileRoute('/_student/student/welcome')({
|
||||
component: WelcomeView,
|
||||
})
|
||||
@@ -6,6 +6,6 @@ function ConfirmRecoveryEmailRoute() {
|
||||
return <ConfirmRecoveryEmailView token={token} />
|
||||
}
|
||||
|
||||
export const Route = createFileRoute('/acceso/mail/$token')({
|
||||
export const Route = createFileRoute('/access/email/$token')({
|
||||
component: ConfirmRecoveryEmailRoute,
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { LinkUsedView } from '../features/student-access/LinkUsedView'
|
||||
|
||||
export const Route = createFileRoute('/acceso/')({
|
||||
export const Route = createFileRoute('/access/')({
|
||||
component: () => <LinkUsedView variant="signed-out" />,
|
||||
})
|
||||
Reference in New Issue
Block a user