forked from 0xWheatyz/SPARC
Add loading and error states to Batch and Analytics pages #1277
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 pages make async API calls but show no loading indicator or error message while waiting or when requests fail. This creates a confusing user experience.
Roadmap reference: P2 - Frontend: No loading/error states on several pages
What to do
Acceptance criteria
Triage: Already Implemented
Loading and error states are implemented on
main:frontend/src/pages/Analytics.tsx): UsesisLoadingandisErrorfromuseQueryto show loading spinner and error messages.frontend/src/pages/Batch.tsx): Shows loading skeleton during submission and error banner withmutation.isError/mutation.error.message.Closing as completed.