feat: add graceful error recovery with user-friendly error screens and retry options for improved user experience

This commit is contained in:
Usman Baig
2026-02-22 19:49:27 +01:00
parent ca805c9790
commit e0bae5a728
11 changed files with 181 additions and 0 deletions

13
app/error.tsx Normal file
View File

@@ -0,0 +1,13 @@
'use client'
import ErrorDisplay from '@/components/ErrorDisplay'
export default function GlobalError({ reset }: { error: Error; reset: () => void }) {
return (
<ErrorDisplay
title="Something went wrong"
message="An unexpected error occurred. Please try again or go back to the dashboard."
onRetry={reset}
/>
)
}