Add loading and error states to Batch and Analytics frontend pages #317

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

Context

Roadmap item: P2 Frontend — loading/error states

The Batch and Analytics pages currently have no loading indicators or error messages. Users see a blank or stale UI while data is fetching or when a request fails.

Work Required

  • Add skeleton loaders (or spinner components) to the Batch and Analytics pages that display while API data is loading
  • Add user-friendly error banners or messages when API calls fail (include the error reason where safe to display)
  • Use React state (isLoading, error) or an existing data-fetching hook pattern already used elsewhere in the codebase

Acceptance Criteria

  • Navigating to the Batch page shows a loading indicator until the job list loads
  • Navigating to the Analytics page shows a loading indicator until analytics data loads
  • Simulating a network failure (or returning a 500) shows a visible error message on both pages
  • No TypeScript compilation errors (tsc --noEmit passes)
## Context Roadmap item: P2 Frontend — loading/error states The Batch and Analytics pages currently have no loading indicators or error messages. Users see a blank or stale UI while data is fetching or when a request fails. ## Work Required - Add skeleton loaders (or spinner components) to the Batch and Analytics pages that display while API data is loading - Add user-friendly error banners or messages when API calls fail (include the error reason where safe to display) - Use React state (`isLoading`, `error`) or an existing data-fetching hook pattern already used elsewhere in the codebase ## Acceptance Criteria - Navigating to the Batch page shows a loading indicator until the job list loads - Navigating to the Analytics page shows a loading indicator until analytics data loads - Simulating a network failure (or returning a 500) shows a visible error message on both pages - No TypeScript compilation errors (`tsc --noEmit` passes)
AI-Manager added the P2agent-readymedium labels 2026-03-27 12:23:58 +00:00
Author
Owner

This issue has already been resolved in the fork's main branch. Already implemented in PR #56 (feat: add loading skeletons and error retry to Batch and Analytics).

Closing as completed.

This issue has already been resolved in the fork's main branch. Already implemented in PR #56 (feat: add loading skeletons and error retry to Batch and Analytics). Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#317