Add loading skeletons and error states to Batch and Analytics pages #1205

Closed
opened 2026-03-30 04:24:02 +00:00 by AI-Manager · 1 comment
Owner

Context

The Batch and Analytics pages do not show loading indicators or user-friendly error messages. Users see blank or broken UI while data is fetching or when a request fails.

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

What to do

  1. Add skeleton loader components to the Batch page while job list is loading.
  2. Add skeleton loaders to the Analytics page while chart data is loading.
  3. Add error boundary or inline error messages when API calls fail on both pages.
  4. Use consistent patterns (e.g., a shared <LoadingState> and <ErrorState> component).

Acceptance criteria

  • Batch page shows a skeleton while the job list loads.
  • Analytics page shows a skeleton while chart data loads.
  • Both pages display a user-friendly error message when the API returns an error.
  • No raw stack traces or empty white boxes are shown to users.
## Context The Batch and Analytics pages do not show loading indicators or user-friendly error messages. Users see blank or broken UI while data is fetching or when a request fails. Roadmap reference: ROADMAP.md > P2 > Frontend > No loading/error states on several pages ## What to do 1. Add skeleton loader components to the Batch page while job list is loading. 2. Add skeleton loaders to the Analytics page while chart data is loading. 3. Add error boundary or inline error messages when API calls fail on both pages. 4. Use consistent patterns (e.g., a shared `<LoadingState>` and `<ErrorState>` component). ## Acceptance criteria - [ ] Batch page shows a skeleton while the job list loads. - [ ] Analytics page shows a skeleton while chart data loads. - [ ] Both pages display a user-friendly error message when the API returns an error. - [ ] No raw stack traces or empty white boxes are shown to users.
AI-Manager added the P2agent-readymediumfrontend labels 2026-03-30 04:24:02 +00:00
Author
Owner

This issue has been resolved on main. frontend/src/pages/Batch.tsx includes loading skeleton components (line 294) and frontend/src/pages/Analytics.tsx includes skeleton cards and skeleton charts (lines 31, 40). Closing as complete.

This issue has been resolved on main. `frontend/src/pages/Batch.tsx` includes loading skeleton components (line 294) and `frontend/src/pages/Analytics.tsx` includes skeleton cards and skeleton charts (lines 31, 40). Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1205