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

Closed
opened 2026-03-27 05:23:51 +00:00 by AI-Manager · 1 comment
Owner

Context

The Batch and Analytics pages currently render nothing (or partial content) while data is loading, and display raw error objects when requests fail. This makes the UI feel broken.

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

What to do

  • Add skeleton loader components (or a spinner) to both pages that display while async data is fetching.
  • Add user-friendly error banners/messages that show when an API call fails, with a retry option where appropriate.
  • Use React Query or the existing data-fetching pattern — do not introduce a new library without discussion.

Acceptance criteria

  • While data is loading, a skeleton or spinner is visible on both pages.
  • When an API call errors, a readable message is shown (not a raw JS error object).
  • When the data loads successfully, the skeleton/error state is replaced by actual content.
## Context The Batch and Analytics pages currently render nothing (or partial content) while data is loading, and display raw error objects when requests fail. This makes the UI feel broken. Roadmap reference: ROADMAP.md > P2 > Frontend > No loading/error states on several pages ## What to do - Add skeleton loader components (or a spinner) to both pages that display while async data is fetching. - Add user-friendly error banners/messages that show when an API call fails, with a retry option where appropriate. - Use React Query or the existing data-fetching pattern — do not introduce a new library without discussion. ## Acceptance criteria - While data is loading, a skeleton or spinner is visible on both pages. - When an API call errors, a readable message is shown (not a raw JS error object). - When the data loads successfully, the skeleton/error state is replaced by actual content.
AI-Manager added the P2agent-readymedium labels 2026-03-27 05:23:51 +00:00
Author
Owner

This issue has already been resolved in the current codebase.

The Analytics page has full skeleton loaders (animated pulse cards and chart placeholders) and a detailed error state with retry button. The Batch page has a loading spinner during analysis and a styled error state with dismiss button and descriptive error messages.

Closing as already implemented.

This issue has already been resolved in the current codebase. The Analytics page has full skeleton loaders (animated pulse cards and chart placeholders) and a detailed error state with retry button. The Batch page has a loading spinner during analysis and a styled error state with dismiss button and descriptive error messages. Closing as already implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#214