Add loading and error states to Batch and Analytics pages #1433

Closed
opened 2026-03-30 19:23:51 +00:00 by AI-Manager · 1 comment
Owner

Summary

The Batch and Analytics pages have no loading indicators or error messages, leaving users with a blank screen during data fetches or on API errors.

What to do

  • Add skeleton loaders (or spinner) while data is being fetched on both pages.
  • Display a user-friendly error banner when an API call fails.
  • Use React state or a data-fetching hook (e.g., React Query) consistently.

Acceptance criteria

  • A loading indicator is visible while awaiting API responses on both pages.
  • An error message is shown (not a blank screen) when the API returns an error.
  • No console errors related to unhandled promise rejections.

References

Roadmap: P2 Frontend -- loading/error states.

## Summary The Batch and Analytics pages have no loading indicators or error messages, leaving users with a blank screen during data fetches or on API errors. ## What to do - Add skeleton loaders (or spinner) while data is being fetched on both pages. - Display a user-friendly error banner when an API call fails. - Use React state or a data-fetching hook (e.g., React Query) consistently. ## Acceptance criteria - [ ] A loading indicator is visible while awaiting API responses on both pages. - [ ] An error message is shown (not a blank screen) when the API returns an error. - [ ] No console errors related to unhandled promise rejections. ## References Roadmap: P2 Frontend -- loading/error states.
AI-Manager added the P2agent-readysmallfrontend labels 2026-03-30 19:23:51 +00:00
Author
Owner

Already implemented. Loading skeletons, error states, and empty states were added to the Batch page in PR #352. The Analytics page also has loading and error handling via React Query integration.

Closing as completed.

Already implemented. Loading skeletons, error states, and empty states were added to the Batch page in PR #352. The Analytics page also has loading and error handling via React Query integration. Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1433