- Created useDashboardStats hook for data fetching logic
- Simplified dashboard page by extracting state management
- Updated dashboard to use DocumentStatusBadge component
- Updated my-data page to use DocumentStatusBadge component
- Replaced magic status strings with DOCUMENT_STATUS constants
Benefits:
- Dashboard page reduced from ~100 lines of state logic to ~10 lines
- Status badge logic now in single location (SSOT)
- Data loading logic is now testable in isolation
- Consistent status display across all pages
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>