Add dashboard error boundaries and fallbacks#6
Open
felixvippp-ai wants to merge 2 commits into
Open
Conversation
Author
|
Status follow-up: this PR remains open and cleanly mergeable from my side. The focused frontend build passed and the diagnostic artifacts/notes are included. Please let me know if any final changes are needed for acceptance or bounty payment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a reusable React error boundary and wraps the Dashboard content plus dynamic stat card grid independently so render failures are isolated instead of crashing the full UI.
Changes
frontend/src/components/ErrorBoundary.tsxwith accessible, non-breaking fallback UI.DashboardContentandStatsGridso the main panel and metric cards can be protected separately.Testing
C:\Program Files\nodejs\npm.cmd run buildfromfrontend/: passed.python build.py -m frontend: passed for the affected frontend module and committed generated diagnostics.diagnostic/build-2b707695.json,diagnostic/build-2b707695-part001.logd,diagnostic/build-2b707695-part002.logd,diagnostic/build-2b707695-part003.logd,diagnostic/build-2b707695-part004.logd.abd282865073fcbdd0f7.build.py; validation was scoped to the frontend module affected by this PR.Checklist