fix: enhance error handling and loading states in report panel and resume generation components

This commit is contained in:
Anish Sarkar 2026-04-15 23:08:19 +05:30
parent e3d9ab1263
commit 2f58b14440
2 changed files with 70 additions and 25 deletions

View file

@ -372,7 +372,7 @@ export function ReportPanelContent({
{isLoading ? (
<ReportPanelSkeleton />
) : error || !reportContent ? (
<div className="flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center">
<div className="flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center select-none">
<div>
<p className="font-medium text-foreground">Failed to load report</p>
<p className="text-sm text-red-500 mt-1">{error || "An unknown error occurred"}</p>