Skip to content

feat(routes): route-level loading & error boundaries for analytics pages#490

Merged
edehvictor merged 1 commit into
edehvictor:mainfrom
chigozirim007:feat/route-loading-boundaries-436
May 30, 2026
Merged

feat(routes): route-level loading & error boundaries for analytics pages#490
edehvictor merged 1 commit into
edehvictor:mainfrom
chigozirim007:feat/route-loading-boundaries-436

Conversation

@chigozirim007
Copy link
Copy Markdown
Contributor

@chigozirim007 chigozirim007 commented May 26, 2026

Summary

closes #436

Adds a reusable RouteBoundary (ErrorBoundary + Suspense) and applies it to the analytics-heavy routes — /apy, /stress, /portfolio, /governance, /transparency — which are now React.lazy-loaded.

  • Consistent loading states: a loading panel renders while each route's chunk resolves.
  • Error boundaries: a fallback panel surfaces the real error message + a retry button, and logs the error (console.error) rather than swallowing it.
  • Test: RouteBoundary.test.tsx covers normal render, the error panel (asserts the message is shown and the error is logged), and the accessible loading panel.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

@chigozirim007 is attempting to deploy a commit to the Edeh Victor's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 26, 2026

@chigozirim007 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

…ics pages (edehvictor#436)

Add a reusable RouteBoundary (ErrorBoundary + Suspense) and apply it to the
analytics-heavy routes (/apy, /stress, /portfolio, /governance, /transparency),
which are now lazy-loaded.

- Loading: a consistent loading panel shows while a route chunk resolves.
- Errors: an error panel surfaces the real error message and offers retry — it
  logs the error rather than swallowing it silently.
- Test: RouteBoundary renders children, shows the error panel (with message) on
  throw, and exposes an accessible loading panel.

Co-Authored-By: Claude <noreply@anthropic.com>
@chigozirim007 chigozirim007 force-pushed the feat/route-loading-boundaries-436 branch from 060c096 to a281882 Compare May 29, 2026 12:02
@edehvictor edehvictor merged commit 6045717 into edehvictor:main May 30, 2026
6 of 9 checks 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.

Add route-level loading boundaries for slow analytics pages

2 participants