Skip to content

feat: add per-route error boundaries and PageLoader component#346

Open
shivv23 wants to merge 1 commit into
c2siorg:mainfrom
shivv23:feat/error-boundaries
Open

feat: add per-route error boundaries and PageLoader component#346
shivv23 wants to merge 1 commit into
c2siorg:mainfrom
shivv23:feat/error-boundaries

Conversation

@shivv23
Copy link
Copy Markdown
Contributor

@shivv23 shivv23 commented May 22, 2026

Summary

Improve frontend resilience by adding per-route error boundaries, a reusable ErrorFallback UI with navigation, and a PageLoader spinner component.

Changes

  • ErrorBoundary.jsx: Enhanced with ErrorFallback (navigation + retry) and PageLoader (spinner) exports
  • App.jsx: Each route is now individually wrapped in an ErrorBoundary — a crash in one page won't take down the entire app
  • ErrorBoundary.test.jsx: 9 unit tests covering error rendering, retry, fallback states, and loading UI

Validation

  • All 54 frontend unit tests pass (10 test files)
  • Single commit, rebased on latest main

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.

1 participant