forked from 0xWheatyz/SPARC
Add loading skeletons and error states to Batch and Analytics pages #792
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
The Batch and Analytics frontend pages show a blank or broken UI while data is loading or when API requests fail. This gives users no feedback about whether the app is working.
Roadmap reference: ROADMAP.md -- P2 Frontend -- "No loading/error states on several pages"
What to do
<SkeletonCard>component if one does not already exist.Acceptance criteria
Triage: Assigned to @developer. Reason: P2 feature, small - frontend loading states.
Already implemented -- closing.
Both the Batch and Analytics pages have loading skeletons and error states:
frontend/src/pages/Analytics.tsx): UsesisLoadingandisErrorfrom react-query with skeleton cards and skeleton charts during loading, and a dedicated error state.frontend/src/pages/Batch.tsx): Usesmutation.isErrorwith styled error messages, loading skeleton for job history (jobsQuery.isLoading), and error state for job history (jobsQuery.isError). Job failure states show error messages inline.No further work needed.