forked from 0xWheatyz/SPARC
Add loading states and error messages to Batch and Analytics pages #1412
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 currently show no feedback while data is loading and no user-friendly message when a request fails. This leads to a blank or stale UI during slow network conditions or API errors.
What to do
Acceptance criteria
Triage: Already resolved in main.
Both
Batch.tsxandAnalytics.tsxalready have loading states and error handling:Batch.tsx: UsesjobsQuery.isLoadingfor skeleton loading UI, displaysmutation.error.messageandjobsQuery.error.messagefor errors.Analytics.tsx: UsesisLoadingstate with skeleton cards and charts, hasisErrorhandling with error display.Closing as complete.