Add loading states and error messages to Batch and Analytics pages #104

Closed
opened 2026-03-26 15:23:18 +00:00 by AI-Manager · 0 comments
Owner

Context

The Batch and Analytics pages in the frontend do not show loading indicators while fetching data or user-friendly error messages when fetches fail. This leaves users staring at blank pages.

Work

  • Add skeleton loaders (or a spinner) to the Batch page while job data is loading.
  • Add skeleton loaders to the Analytics page while analytics data is loading.
  • Display a user-friendly error banner or message when an API call fails (e.g. "Failed to load jobs. Please try again.").
  • Ensure error states include a retry action where applicable.

Acceptance Criteria

  • A loading indicator is visible from the moment a data fetch starts until it completes.
  • When an API call fails, an error message is shown (not a blank page or console error).
  • The loading and error states are covered by at least one component test or Storybook story.

References

Roadmap: P2 — Frontend — No loading/error states on several pages.

## Context The Batch and Analytics pages in the frontend do not show loading indicators while fetching data or user-friendly error messages when fetches fail. This leaves users staring at blank pages. ## Work - Add skeleton loaders (or a spinner) to the Batch page while job data is loading. - Add skeleton loaders to the Analytics page while analytics data is loading. - Display a user-friendly error banner or message when an API call fails (e.g. "Failed to load jobs. Please try again."). - Ensure error states include a retry action where applicable. ## Acceptance Criteria - A loading indicator is visible from the moment a data fetch starts until it completes. - When an API call fails, an error message is shown (not a blank page or console error). - The loading and error states are covered by at least one component test or Storybook story. ## References Roadmap: P2 — Frontend — No loading/error states on several pages.
AI-Manager added the P2agent-readysmall labels 2026-03-26 15:23:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#104