[GOOD FIRST ISSUE] Add error boundary to each dashboard widget
Summary
If a single widget throws a render error, it crashes the entire dashboard. Each widget should have its own error boundary so a failure in one card doesn't affect the rest.
Current Behaviour
An unhandled render error in any widget unmounts the whole dashboard with a blank screen.
Expected Behaviour
The erroring widget shows an inline "Something went wrong" card with a retry button. Other widgets continue working normally.
Acceptance Criteria
- [ ] Create
src/components/WidgetErrorBoundary.tsx(React class component) - [ ] Wrap each widget in
dashboard/page.tsxwith<WidgetErrorBoundary> - [ ] Error card matches design system (
var(--card),var(--border), red error text) - [ ] Retry button resets the error boundary state
- [ ] Error is reported to
console.errorfor debugging
Files to Touch
- New:
src/components/WidgetErrorBoundary.tsx src/app/dashboard/page.tsx
hiii @Priyanshu-byte-coder i would like to work on this issue please assign it to me under GSSoC'26.
@seffhunnn Please see the note left on #90 — mass-requesting assignment across multiple issues at once won't result in any assignments. Pick one issue, share your approach, and we'll go from there.
Hi @Priyanshu-byte-coder 👋 I would like to work on this issue under GSSoC’26.
My approach would be to create a reusable WidgetErrorBoundary.tsx component and wrap each widget individually in dashboard/page.tsx so that if one widget crashes, the rest of the dashboard continues functioning normally.
I’ll also implement:
- A clean fallback error UI matching the design system
- Retry functionality to reset the error boundary
- Proper
console.errorlogging for debugging
This will improve dashboard stability and overall user experience significantly 🚀
@Priyanshu-byte-coder hey maintainer, I am GSSoC contributor, could you please assign me this task?
@Aditya8369 This issue is already taken by @akshaya988. Check other open issues!
@Priyanshu-byte-coder Hi can you please add marks for this and close this issue
@Priyanshu-byte-coder please add marks to this issue
@Priyanshu-byte-coder please add marks to this issue
Hey @Priyanshu-byte-coder, I'm a GSSoC 26 contributor and would like to work on this issue. Please assign it to me. /claim /assign
/assign
Hey @Priyanshu-byte-coder please add marks to this issue
Hey @Priyanshu-byte-coder please add marks to this issue
Hey @akshaya988 — this issue was assigned a while back with no recent activity. Unassigning so it's available for Hacktoberfest contributors. Still working on it? Comment and we'll reassign you.
Assigned to @Priyanshu-byte-coder! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!
Done: each dashboard widget is wrapped in its own WidgetErrorBoundary.
✅ Closed as completed!
If DevTrack has been useful, a ⭐ star on the repo helps the project grow and reach more developers.