Resumen de los cambios del fix de navegación:
Some checks failed
/ Deploy to Cloudflare Pages (push) Has been cancelled

LibraryPage.tsx:778 — reemplazó useSearch({ from: '/' }) por useRouterState + URLSearchParams. Ahora funciona tanto desde / como desde /library.
WorkspacePage.tsx:206-209 — handleBack() navega a /library (con o sin ?org=uuid) en lugar de /.
workspace-back-button.test.ts — backTo actualizado a /library y /library?org=... en los 6 tests.
library-ui.test.tsx — mock de useSearch → useRouterState (devuelve { location: { search: '' } }).
This commit is contained in:
2026-07-07 14:24:26 -03:00
parent ee356e5de6
commit f3f55a6857
5 changed files with 24 additions and 16 deletions

View File

@@ -103,6 +103,12 @@ const indexRoute = createRoute({
component: LibraryPage,
})
const libraryRoute = createRoute({
getParentRoute: () => rootRoute,
path: '/library',
component: LibraryPage,
})
const importRoute = createRoute({
getParentRoute: () => rootRoute,
path: '/import',
@@ -170,6 +176,7 @@ const routeTree = rootRoute.addChildren([
resetPasswordRoute,
confirmInviteRoute,
indexRoute,
libraryRoute,
importRoute,
workspaceRoute,
reportRoute,