Skip to content

feat: standardize error handling and add toast notifications (#11)#82

Open
dsmithnautel wants to merge 2 commits intorefactor/standardize-project-namingfrom
fix/error-handling-ui-11
Open

feat: standardize error handling and add toast notifications (#11)#82
dsmithnautel wants to merge 2 commits intorefactor/standardize-project-namingfrom
fix/error-handling-ui-11

Conversation

@dsmithnautel
Copy link
Copy Markdown
Owner

@dsmithnautel dsmithnautel commented Mar 6, 2026

Summary

  • Add standardized ErrorResponse model with machine-readable error codes
  • Add global exception handlers for validation (422), DB errors (503), rate limits (429), and catch-all (500)
  • Add lifespan context manager for graceful DB connection cleanup
  • Wrap all router DB/service calls with try/except guards
  • Add 10MB file size limit on PDF uploads (413)
  • Install sonner for toast notifications
  • Add Next.js error boundary and global error boundary
  • Add ApiError class with user-friendly error code mapping
  • Add toast notifications and retry buttons on all pages

Test plan

  • All 42 backend tests pass
  • Frontend builds successfully
  • Manual test: upload a file and verify toast on success
  • Manual test: disconnect DB and verify 503 error message

Addresses #11

dsmithnautel and others added 2 commits March 6, 2026 16:10
Backend: add ErrorResponse model, global exception handlers for
validation/DB/rate-limit/500 errors, lifespan DB cleanup, try/except
guards in all routers, 10MB file size limit on uploads.

Frontend: install sonner for toast notifications, add error boundary
files (error.tsx, global-error.tsx), add ApiError class with
user-friendly error code mapping, add toast.success/error and retry
buttons to vault, compile, and review pages.
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
restailor Ready Ready Preview, Comment Mar 6, 2026 10:12pm

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.

Improve error handling and UI responsiveness

1 participant