Show entity 404s inside the dashboard shell
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 30
- Forks
- 10
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 276
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Urigo/accounter-fullstack
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Urigo/accounter-fullstack#5302 ·
Maintainers usually reply within 2 days
-
1214 annual-audit-workflow
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Urigo/accounter-fullstack#5257 ·
Maintainers usually reply within 2 days
-
1214 annual-audit-workflow
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Urigo/accounter-fullstack#5256 ·
Maintainers usually reply within 2 days
-
annual-audit-workflow
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
Urigo/accounter-fullstack#5252 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Urigo/accounter-fullstack#4919 ·
Maintainers usually reply within 2 days
All issues in Urigo/accounter-fullstack
Similar issues
-
area: integrations documentation priority: P2 size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
eddiejaoude/StackDash#798 ·
Maintainers usually reply within 1 day
-
bot:ai-assisted component:midnight-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
midnightntwrk/midnight-js#1790 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area:vscode bug has repro platform:macos platform:vscode regression
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDOpencheck:passed streams:add
Difficulty 1/5 Under an hour Newbie friendliness 77/100
Maintainers usually reply within 1 day