Skip to content

refactor(dashboard): migrar de Next.js a Vite + TanStack Router#15

Open
Aaronzaso wants to merge 4 commits into
mainfrom
HU-Clientes-Miembros
Open

refactor(dashboard): migrar de Next.js a Vite + TanStack Router#15
Aaronzaso wants to merge 4 commits into
mainfrom
HU-Clientes-Miembros

Conversation

@Aaronzaso

Copy link
Copy Markdown
Collaborator

Resumen

Migración del dashboard de Next.js (App Router) a Vite + TanStack Router (enrutado file-based), in-place.

Commits

  • a6d8f6b refactor(dashboard): migrate from Next.js to Vite + TanStack Router
  • 8f87fd1 build: regenerate pnpm-lock.yaml for Vite + TanStack Router migration

Cambios

  • src/app (App Router) -> src/routes (file-based). 16 rutas migradas, incluidas members, members/new, memberships, memberships/approval, profile y trainer/members.
  • Añadidos vite.config.ts (plugins react + tanstack-router), index.html, main.tsx, __root.tsx, routeTree.gen.ts, tsr.config.json.
  • next/link -> Link y usePathname -> useLocation de TanStack Router.
  • Eliminados next, next.config.mjs y @vercel/analytics; se conserva next-themes.
  • Tauri frontendDist -> ../dist; dev server en puerto 3000; .prettierignore para el route tree generado.
  • Regenerado pnpm-lock.yaml para que pase pnpm install --frozen-lockfile en CI.

Verificación

  • Sin referencias a Next en el código; src/app eliminado; 16 rutas presentes.
  • prettier --check limpio sobre los archivos migrados.

Pendiente del revisor

  • Ejecutar pnpm install local para poblar node_modules y probar pnpm dev / pnpm dev:tauri

Aaronzaso and others added 4 commits June 14, 2026 03:34
…es (miembros)

Implementa las pantallas front (solo UI con datos mock, sin backend):
buscar y registrar miembros, aprobacion de membresias, mi perfil,
gestion de membresias y perfil de miembros asignados.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Replace Next.js App Router with TanStack Router file-based routing (src/routes)
- Add Vite config (react + tanstack router plugins), index.html and main.tsx
- Port landing, dashboard layout and 14 pages (incl. members, memberships, profile, trainer) to createFileRoute
- Swap next/link and usePathname for @tanstack/react-router Link/useLocation
- Remove next, next.config.mjs and @vercel/analytics; keep next-themes
- Point Tauri frontendDist to ../dist; Vite dev server on port 3000
- Add .prettierignore for generated routeTree.gen.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant