Description: An unexpected client-rendering or API error can currently leave the user with an unhelpful broken page. Add Next.js error boundaries and clear recovery behavior for wallet/API failures.
Acceptance criteria:
Render a friendly fallback page for route-level errors.
Provide a retry action that resets the failed route.
Preserve safe error context without exposing secrets or stack traces.
Distinguish wallet connection errors from general application errors.
Ensure the fallback layout is accessible and responsive.
Files affected : Frontend/src/app/error.tsx (new), Frontend/src/app/global-error.tsx (new), Frontend/src/app/layout.tsx, Frontend/src/app/page.tsx, Frontend/src/lib/api.ts, Frontend/src/hooks/useWallet.ts, Frontend/src/app/globals.css
Description: An unexpected client-rendering or API error can currently leave the user with an unhelpful broken page. Add Next.js error boundaries and clear recovery behavior for wallet/API failures.
Acceptance criteria:
Render a friendly fallback page for route-level errors.
Provide a retry action that resets the failed route.
Preserve safe error context without exposing secrets or stack traces.
Distinguish wallet connection errors from general application errors.
Ensure the fallback layout is accessible and responsive.
Files affected : Frontend/src/app/error.tsx (new), Frontend/src/app/global-error.tsx (new), Frontend/src/app/layout.tsx, Frontend/src/app/page.tsx, Frontend/src/lib/api.ts, Frontend/src/hooks/useWallet.ts, Frontend/src/app/globals.css