-
Notifications
You must be signed in to change notification settings - Fork 387
[GOOD FIRST ISSUE] Add error boundary to Dashboard route #2250
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersgssoc26GSSoC 2026 contributionGSSoC 2026 contributiongssoc:assignedGSSoC: Issue assigned to a contributorGSSoC: Issue assigned to a contributorhelp wantedExtra attention is neededExtra attention is neededlevel:intermediateGSSoC: Intermediate difficulty (35 pts)GSSoC: Intermediate difficulty (35 pts)type:featureGSSoC type bonus: new featureGSSoC type bonus: new feature
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersgssoc26GSSoC 2026 contributionGSSoC 2026 contributiongssoc:assignedGSSoC: Issue assigned to a contributorGSSoC: Issue assigned to a contributorhelp wantedExtra attention is neededExtra attention is neededlevel:intermediateGSSoC: Intermediate difficulty (35 pts)GSSoC: Intermediate difficulty (35 pts)type:featureGSSoC type bonus: new featureGSSoC type bonus: new feature
Type
Fields
Give feedbackNo fields configured for issues without a type.
What Needs to Be Done
Add a React Error Boundary to the Dashboard page so that if any widget crashes, it shows a friendly error message instead of crashing the entire page.
Why This Matters
Currently, if any dashboard component throws an error (e.g., bad API response, rendering bug), the entire dashboard goes blank. An error boundary catches the error and shows a fallback UI while keeping the rest of the page functional.
Files to Look At
src/app/dashboard/page.tsx— Dashboard page layoutsrc/app/dashboard/error.tsx— Create this file (Next.js App Router error boundary convention)src/components/— Dashboard widget componentsAcceptance Criteria
src/app/dashboard/error.tsxfollowing Next.js App Router conventionsvar(--card),var(--foreground))reset()function to retry renderingTech Context
Next.js App Router uses file-based error boundaries. Create an
error.tsxfile that exports a client component witherrorandresetprops. See Next.js Error Handling docs.Mentorship
Comment on this issue and you'll receive guidance on getting started. The maintainer will help you through your first PR.