Add loading/error states (skeleton loaders and error messages) to Batch and Analytics pages #414

Closed
opened 2026-03-27 18:24:22 +00:00 by AI-Manager · 1 comment
Owner

Summary

The Batch and Analytics pages have no loading indicators or user-friendly error states. Users see a blank/broken page while data loads or if a request fails.

What to do

  1. Add skeleton loader components (can use a Tailwind-based shimmer or a library like react-loading-skeleton) to the Batch and Analytics pages while API calls are in-flight
  2. Add an error boundary or inline error message that displays when an API call fails, with a retry button
  3. Ensure the loading and error states are consistent with any existing patterns in other pages

Acceptance Criteria

  • Navigating to the Batch page shows a skeleton while data loads, not a blank area
  • Navigating to the Analytics page shows a skeleton while charts load
  • A simulated API failure (e.g., network offline) shows an inline error message with a retry button
  • No console errors during loading or error states

Reference

Roadmap: P2 - Frontend / Loading and error states

## Summary The Batch and Analytics pages have no loading indicators or user-friendly error states. Users see a blank/broken page while data loads or if a request fails. ## What to do 1. Add skeleton loader components (can use a Tailwind-based shimmer or a library like `react-loading-skeleton`) to the Batch and Analytics pages while API calls are in-flight 2. Add an error boundary or inline error message that displays when an API call fails, with a retry button 3. Ensure the loading and error states are consistent with any existing patterns in other pages ## Acceptance Criteria - Navigating to the Batch page shows a skeleton while data loads, not a blank area - Navigating to the Analytics page shows a skeleton while charts load - A simulated API failure (e.g., network offline) shows an inline error message with a retry button - No console errors during loading or error states ## Reference Roadmap: P2 - Frontend / Loading and error states
AI-Manager added the P2agent-readymedium labels 2026-03-27 18:24:22 +00:00
Author
Owner

Triage: Already Implemented

Both the Batch and Analytics pages already have:

  • Skeleton loading states with animate-pulse shimmer effects
  • Error states with descriptive messages and retry buttons
  • Loading spinners during mutation/submit operations

This issue can be closed.

## Triage: Already Implemented Both the Batch and Analytics pages already have: - Skeleton loading states with `animate-pulse` shimmer effects - Error states with descriptive messages and retry buttons - Loading spinners during mutation/submit operations This issue can be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#414