devtrack icon indicating copy to clipboard operation
devtrack copied to clipboard

[GOOD FIRST ISSUE] Add error boundary to each dashboard widget

Open Priyanshu-byte-coder opened this issue 6 months ago • 16 comments

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.tsx with <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.error for debugging

Files to Touch

  • New: src/components/WidgetErrorBoundary.tsx
  • src/app/dashboard/page.tsx

Priyanshu-byte-coder avatar May 16 '26 18:05 Priyanshu-byte-coder

hiii @Priyanshu-byte-coder i would like to work on this issue please assign it to me under GSSoC'26.

seffhunnn avatar May 16 '26 20:05 seffhunnn

@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.

Priyanshu-byte-coder avatar May 16 '26 20:05 Priyanshu-byte-coder

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.error logging for debugging

This will improve dashboard stability and overall user experience significantly 🚀

akshaya988 avatar May 17 '26 05:05 akshaya988

@Priyanshu-byte-coder hey maintainer, I am GSSoC contributor, could you please assign me this task?

Aditya8369 avatar May 30 '26 13:05 Aditya8369

@Aditya8369 This issue is already taken by @akshaya988. Check other open issues!

github-actions[bot] avatar May 30 '26 13:05 github-actions[bot]

@Priyanshu-byte-coder Hi can you please add marks for this and close this issue

akshaya988 avatar Jun 01 '26 03:06 akshaya988

@Priyanshu-byte-coder please add marks to this issue

akshaya988 avatar Jun 03 '26 06:06 akshaya988

@Priyanshu-byte-coder please add marks to this issue

akshaya988 avatar Jun 03 '26 06:06 akshaya988

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

PrishaNagpal avatar Jun 21 '26 12:06 PrishaNagpal

/assign

vaishnavi003-svg avatar Jul 09 '26 10:07 vaishnavi003-svg

Hey @Priyanshu-byte-coder please add marks to this issue

akshaya988 avatar Jul 09 '26 10:07 akshaya988

Hey @Priyanshu-byte-coder please add marks to this issue

akshaya988 avatar Aug 08 '26 12:08 akshaya988

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.

Priyanshu-byte-coder avatar Oct 14 '26 18:10 Priyanshu-byte-coder

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!

github-actions[bot] avatar Oct 14 '26 18:10 github-actions[bot]

Done: each dashboard widget is wrapped in its own WidgetErrorBoundary.

Priyanshu-byte-coder avatar Nov 04 '26 03:11 Priyanshu-byte-coder

✅ Closed as completed!

If DevTrack has been useful, a ⭐ star on the repo helps the project grow and reach more developers.

github-actions[bot] avatar Nov 04 '26 03:11 github-actions[bot]