Show entity 404s inside the dashboard shell
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 75/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
Línea de trabajo
Read packages/client/src/router/config.tsx to trace the dashboard layout and its errorElement, then use packages/client/src/router/__tests__/tax-category-route.test.tsx as the router-level test harness. Reproduce a loader 404 or error on an entity detail route and add an error boundary so the dashboard shell stays mounted. Done when the test confirms the sidebar and header remain visible while the error appears in the content area.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
When an entity detail page's loader throws (an unknown id gives a 404, or a network failure), the router renders ErrorBoundary from the dashboard route's errorElement in packages/client/src/router/config.tsx. React Router replaces that route's whole element with the error element. So a "Page Not Found" for a bad business or tax category id shows without the dashboard shell: no sidebar, no navigation.
This applies to every detail route under the dashboard (/businesses/:id, /tax-categories/:id, charges and others), and predates the tax category work. It is only rarer now, because a tax category id opened as a business redirects instead of failing.
Proposal
Render loader errors inside the shell. Add an errorElement on a pathless layout route below the dashboard layout, or on the detail routes themselves, so the sidebar and header stay mounted and only the content area shows the error. Keep the root-level boundary for errors in the layout itself.
The router-level test harness in packages/client/src/router/__tests__/tax-category-route.test.tsx (real routes, createMemoryRouter, stubbed layouts) is a good base for a test.
Done when
A loader 404 or error on an entity detail page shows the error inside the dashboard shell, with a router-level test asserting the shell stays mounted.
- Lenguaje dominante
- TypeScript
- Estrellas
- 30
- Forks
- 10
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 276
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Urigo/accounter-fullstack
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Urigo/accounter-fullstack#5302 ·
Los mantenedores suelen responder en 2 días
-
1214 annual-audit-workflow
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Urigo/accounter-fullstack#5257 ·
Los mantenedores suelen responder en 2 días
-
1214 annual-audit-workflow
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Urigo/accounter-fullstack#5256 ·
Los mantenedores suelen responder en 2 días
-
annual-audit-workflow
Dificultad 1/5 1-3 horas Aptitud para principiantes 87/100
Urigo/accounter-fullstack#5252 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Urigo/accounter-fullstack#4919 ·
Los mantenedores suelen responder en 2 días
Todos los issues de Urigo/accounter-fullstack
Issues similares
-
area: integrations documentation priority: P2 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eddiejaoude/StackDash#798 ·
Los mantenedores suelen responder en 1 día
-
bot:ai-assisted component:midnight-js status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
midnightntwrk/midnight-js#1790 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area:vscode bug has repro platform:macos platform:vscode regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDAbiertocheck:passed streams:add
Dificultad 1/5 Menos de una hora Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día