Polish Today dashboard loading, errors, and layout (Phase 4).

Add section error boundaries, retry banner with stale-while-revalidate, shared skeletons, responsive action layout, and org-switch refetching.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-11 00:53:40 +03:30
parent 3f2b332bd3
commit 2f8c9f0f4d
13 changed files with 312 additions and 45 deletions

View File

@@ -0,0 +1,13 @@
import { Card } from '@/components/ui/shared/Card';
interface TodaySectionErrorFallbackProps {
message: string;
}
export function TodaySectionErrorFallback({ message }: TodaySectionErrorFallbackProps) {
return (
<Card className="min-h-[120px] flex items-center justify-center border-badge-danger-border/40 bg-badge-danger-bg/20">
<p className="text-sm text-badge-danger-fg text-center px-4">{message}</p>
</Card>
);
}