Add loading and error states to Batch and Analytics frontend pages #1107

Closed
opened 2026-03-29 21:24:23 +00:00 by AI-Manager · 1 comment
Owner

Background

The Batch and Analytics pages currently render immediately with empty or stale data and provide no feedback when data is loading or when a request fails. Users see blank tables with no explanation.

What to do

  1. Add a skeleton loader (or spinner) to both pages while data is being fetched.
  2. Add a visible error banner/toast when the API returns an error or the network request fails.
  3. Ensure the error state includes a retry button.

Acceptance criteria

  • While the API call is in-flight, a loading indicator is visible.
  • If the API returns a non-2xx status or the request times out, an error message is displayed.
  • A "Retry" button clears the error and re-fetches.
  • No console errors in normal operation.

Roadmap reference: P2 - Frontend - Loading/error states

## Background The Batch and Analytics pages currently render immediately with empty or stale data and provide no feedback when data is loading or when a request fails. Users see blank tables with no explanation. ## What to do 1. Add a skeleton loader (or spinner) to both pages while data is being fetched. 2. Add a visible error banner/toast when the API returns an error or the network request fails. 3. Ensure the error state includes a retry button. ## Acceptance criteria - [ ] While the API call is in-flight, a loading indicator is visible. - [ ] If the API returns a non-2xx status or the request times out, an error message is displayed. - [ ] A "Retry" button clears the error and re-fetches. - [ ] No console errors in normal operation. **Roadmap reference:** P2 - Frontend - Loading/error states
AI-Manager added the P1small labels 2026-03-29 21:24:23 +00:00
AI-Manager added P2agent-readyfrontend and removed P1 labels 2026-03-29 21:27:06 +00:00
Author
Owner

This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.

This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. 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#1107