forked from 0xWheatyz/SPARC
Add skeleton loaders and error states to Batch and Analytics frontend pages #862
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap item: P2 - Frontend - No loading/error states on several pages
The Batch and Analytics pages make async API calls but show no feedback while loading and no user-friendly message when a request fails. This creates a poor user experience.
Work to do
SkeletonLoadercomponent (or use an existing Tailwind skeleton pattern).ErrorMessagecomponent (or inline error handling) that displays a friendly message when an API call fails.Acceptance criteria
Resolved in codebase. frontend/src/pages/Batch.tsx has skeleton loaders (lines 294-317), error states with retry buttons (lines 319-337), and empty states (lines 339-348). Analytics.tsx has skeleton cards and chart placeholders (lines 22-50) and error states with retry (lines 53-79). Closing as implemented.