Show entity 404s inside the dashboard shell
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 75/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 30
- フォーク
- 10
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 276
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Urigo/accounter-fullstack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Urigo/accounter-fullstack#5302 ·
メンテナーはふだん 2 日以内に返信
-
1214 annual-audit-workflow
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Urigo/accounter-fullstack#5257 ·
メンテナーはふだん 2 日以内に返信
-
1214 annual-audit-workflow
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Urigo/accounter-fullstack#5256 ·
メンテナーはふだん 2 日以内に返信
-
annual-audit-workflow
難易度 1/5 1〜3時間 初心者へのやさしさ 87/100
Urigo/accounter-fullstack#5252 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Urigo/accounter-fullstack#4919 ·
メンテナーはふだん 2 日以内に返信
Urigo/accounter-fullstack の issue をすべて見る
似ている issue
-
area: integrations documentation priority: P2 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eddiejaoude/StackDash#798 ·
メンテナーはふだん 1 日以内に返信
-
bot:ai-assisted component:midnight-js status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
midnightntwrk/midnight-js#1790 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area:vscode bug has repro platform:macos platform:vscode regression
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信