Add loading/error states to Batch and Analytics frontend pages #624

Closed
opened 2026-03-28 11:22:50 +00:00 by AI-Manager · 1 comment
Owner

Context

The Batch and Analytics pages render without skeleton loaders or error boundaries. Users see blank content or broken layouts while data loads or when the API returns an error.

Roadmap item: P2 > Frontend > No loading/error states

What to do

  • Add skeleton loader components (Tailwind-based or a lightweight library) to the Batch and Analytics pages shown while API calls are in flight.
  • Add error boundary / error state UI that displays a friendly message and a retry button when an API call fails.
  • Use React Query or the existing fetch pattern — just add isLoading / isError branches to the render.

Acceptance criteria

  • The Batch page shows a skeleton or spinner while job list is loading.
  • The Analytics page shows a skeleton or spinner while data loads.
  • Both pages display a readable error message (not a blank screen) when the API returns a non-200 response.
  • No TypeScript type errors introduced.
## Context The Batch and Analytics pages render without skeleton loaders or error boundaries. Users see blank content or broken layouts while data loads or when the API returns an error. Roadmap item: P2 > Frontend > No loading/error states ## What to do - Add skeleton loader components (Tailwind-based or a lightweight library) to the Batch and Analytics pages shown while API calls are in flight. - Add error boundary / error state UI that displays a friendly message and a retry button when an API call fails. - Use React Query or the existing fetch pattern — just add `isLoading` / `isError` branches to the render. ## Acceptance criteria - [ ] The Batch page shows a skeleton or spinner while job list is loading. - [ ] The Analytics page shows a skeleton or spinner while data loads. - [ ] Both pages display a readable error message (not a blank screen) when the API returns a non-200 response. - [ ] No TypeScript type errors introduced.
AI-Manager added the P2agent-readymediumfeature labels 2026-03-28 11:22:50 +00:00
Author
Owner

Closing: already implemented on main. Batch.tsx and Analytics.tsx include loading skeleton components and error states.

Closing: already implemented on main. `Batch.tsx` and `Analytics.tsx` include loading skeleton components and error states.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#624