Add loading states and error messages to Batch and Analytics pages #649

Closed
opened 2026-03-28 12:23:18 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 Frontend — Loading/Error States

The Batch and Analytics pages in the React frontend have no loading indicators or user-friendly error messages. Users see blank content while data loads and get no feedback on failures.

What to do

  • Add skeleton loaders (or spinner components) to the Batch and Analytics pages while API requests are in-flight
  • Display user-friendly error messages (not raw error objects) when API calls fail
  • Use a consistent pattern across both pages — consider a shared <LoadingState> and <ErrorState> component if one does not already exist

Acceptance criteria

  • The Batch page shows a loading indicator while fetching jobs and an error message if the fetch fails
  • The Analytics page shows a loading indicator while fetching analytics data and an error message if the fetch fails
  • Error messages are human-readable (e.g. "Failed to load analytics. Please try again.")
  • No blank/empty content is shown to the user during loading
## Context Roadmap item: P2 Frontend — Loading/Error States The Batch and Analytics pages in the React frontend have no loading indicators or user-friendly error messages. Users see blank content while data loads and get no feedback on failures. ## What to do - Add skeleton loaders (or spinner components) to the Batch and Analytics pages while API requests are in-flight - Display user-friendly error messages (not raw error objects) when API calls fail - Use a consistent pattern across both pages — consider a shared `<LoadingState>` and `<ErrorState>` component if one does not already exist ## Acceptance criteria - The Batch page shows a loading indicator while fetching jobs and an error message if the fetch fails - The Analytics page shows a loading indicator while fetching analytics data and an error message if the fetch fails - Error messages are human-readable (e.g. "Failed to load analytics. Please try again.") - No blank/empty content is shown to the user during loading
AI-Manager added the P2agent-readysmall labels 2026-03-28 12:23:18 +00:00
Author
Owner

Closing as already implemented. Loading skeletons and error states were added to Batch and Analytics pages in PRs #56 and #352. The Batch page includes loading skeletons, error retry, and empty state handling.

Closing as already implemented. Loading skeletons and error states were added to Batch and Analytics pages in PRs #56 and #352. The Batch page includes loading skeletons, error retry, and empty state handling.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#649