Skip to content

feat(frontend): add route error boundaries - #170

Merged
Kaylahray merged 1 commit into
artisyn-io:mainfrom
Ezeh20:frontend/route-error-boundaries
Jun 3, 2026
Merged

feat(frontend): add route error boundaries#170
Kaylahray merged 1 commit into
artisyn-io:mainfrom
Ezeh20:frontend/route-error-boundaries

Conversation

@Ezeh20

@Ezeh20 Ezeh20 commented Jun 2, 2026

Copy link
Copy Markdown

🚀 Artisyn.io Pull Request

Mark with an x all the checkboxes that apply (like [x])


📌 Type of Change

  • Documentation (updates to README, docs, or comments)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

📝 Changes description

Added route-level error boundaries for the primary App Router groups:

  • src/app/(auth)/error.tsx
  • src/app/(dashboard)/error.tsx

These custom error boundaries prevent blank failure screens when runtime errors occur in those route groups. Each boundary shows a user-friendly fallback UI and includes a retry action using Next.js' reset() callback so users can recover without losing overall navigation.


📸 Evidence (A photo is required as evidence)

Attach screenshots showing:

  1. An error rendered inside the auth route with the custom fallback UI
  2. An error rendered inside the dashboard route with the retry button visible

@Kaylahray
Kaylahray merged commit 618b4cf into artisyn-io:main Jun 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Route error boundaries

3 participants