You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][UI - Projects page] Projects page shows infinite loading when project isn't found #8539
You’re right about the root cause: the Projects page fetches project data in config-ui/src/routes/project/detail/index.tsx using the useRefreshData hook and API.project.get(pname). Right now, it only checks if data is loaded and shows a spinner if not, but doesn’t handle API errors like 404s—so the loader never stops if the project isn’t found.
To fix this, you’ll want to update the component to check for an error state from useRefreshData. If the error is a 404, you can show a user-friendly message or redirect to the projects list. The API call itself is defined in config-ui/src/api/project/index.ts.
If you need help with the error handling logic or want to see examples from elsewhere in the codebase, let me know!
Good catch. Looking forward to your PR.
Would you like to join us and become an Apache Committer of the project?
Please DM me (Klesh Wong) on Slack if you are interested?
Activity
dosubot commentedon Aug 14, 2025
You’re right about the root cause: the Projects page fetches project data in
config-ui/src/routes/project/detail/index.tsxusing theuseRefreshDatahook andAPI.project.get(pname). Right now, it only checks if data is loaded and shows a spinner if not, but doesn’t handle API errors like 404s—so the loader never stops if the project isn’t found.To fix this, you’ll want to update the component to check for an error state from
useRefreshData. If the error is a 404, you can show a user-friendly message or redirect to the projects list. The API call itself is defined inconfig-ui/src/api/project/index.ts.If you need help with the error handling logic or want to see examples from elsewhere in the codebase, let me know!
To reply, just mention @dosu.
Docs are dead. Just use Dosu.
klesh commentedon Aug 22, 2025
Good catch. Looking forward to your PR.
Would you like to join us and become an Apache Committer of the project?
Please DM me (Klesh Wong) on Slack if you are interested?