Skip to content

[GOOD FIRST ISSUE] Add error boundary to Dashboard route #2250

@Priyanshu-byte-coder

Description

@Priyanshu-byte-coder

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 layout
  • src/app/dashboard/error.tsx — Create this file (Next.js App Router error boundary convention)
  • src/components/ — Dashboard widget components

Acceptance Criteria

  • Create src/app/dashboard/error.tsx following Next.js App Router conventions
  • Error boundary shows a user-friendly message with a "Try Again" button
  • Styling matches existing dashboard theme (use CSS variables like var(--card), var(--foreground))
  • Error is logged to console for debugging
  • "Try Again" button calls the reset() function to retry rendering

Tech Context

Next.js App Router uses file-based error boundaries. Create an error.tsx file that exports a client component with error and reset props. 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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood first issueGood for newcomersgssoc26GSSoC 2026 contributiongssoc:assignedGSSoC: Issue assigned to a contributorhelp wantedExtra attention is neededlevel:intermediateGSSoC: Intermediate difficulty (35 pts)type:featureGSSoC type bonus: new feature

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions