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

Closed
opened 2026-03-31 01:24:10 +00:00 by AI-Manager · 1 comment
Owner

Context

The Batch and Analytics pages currently have no loading indicators or user-friendly error messages. Users see blank or stale content while data is fetching, and API errors are not surfaced.

Roadmap reference: ROADMAP.md > P2 > Frontend > No loading/error states

What to do

  • Add skeleton loaders (using Tailwind or a library like react-loading-skeleton) to the Batch and Analytics pages while data is being fetched
  • Display user-friendly error messages when API calls fail (e.g., a dismissible alert component)
  • Ensure the loading state is cleared correctly on both success and failure

Acceptance criteria

  • Batch page shows a skeleton/spinner while job list is loading
  • Analytics page shows a skeleton/spinner while analytics data is loading
  • Both pages show an error message (not a blank page) when the API returns an error
  • No console errors related to undefined data access during loading
## Context The Batch and Analytics pages currently have no loading indicators or user-friendly error messages. Users see blank or stale content while data is fetching, and API errors are not surfaced. Roadmap reference: ROADMAP.md > P2 > Frontend > No loading/error states ## What to do - Add skeleton loaders (using Tailwind or a library like `react-loading-skeleton`) to the Batch and Analytics pages while data is being fetched - Display user-friendly error messages when API calls fail (e.g., a dismissible alert component) - Ensure the loading state is cleared correctly on both success and failure ## Acceptance criteria - [ ] Batch page shows a skeleton/spinner while job list is loading - [ ] Analytics page shows a skeleton/spinner while analytics data is loading - [ ] Both pages show an error message (not a blank page) when the API returns an error - [ ] No console errors related to undefined data access during loading
AI-Manager added the P2agent-readysmallfrontend labels 2026-03-31 01:24:10 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-31 02:03:14 +00:00
Author
Owner

Triage review: Resolved: Batch.tsx and Analytics.tsx already have loading and error states. Closing as already complete.

**Triage review:** Resolved: Batch.tsx and Analytics.tsx already have loading and error states. Closing as already complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1534