Add loading states and error messages to Batch and Analytics frontend pages #1081

Closed
opened 2026-03-29 20:24:03 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap reference: P2 / Frontend - loading/error states

The Batch and Analytics pages have no skeleton loaders or user-friendly error messages. Users see a blank or partially-rendered page while data is loading, and raw errors (or nothing) when requests fail.

What to do

  • Add skeleton loader components to both pages that display while API calls are in flight.
  • Add error boundary or per-component error state that shows a human-readable message when an API call fails.
  • Use a consistent pattern across both pages (consider a shared <LoadingCard> or <ErrorMessage> component).

Acceptance criteria

  • Batch page shows a skeleton/spinner while jobs are loading.
  • Analytics page shows a skeleton/spinner while metrics are loading.
  • Both pages show a clear error message (not a blank screen) when the API returns an error.
  • No console errors related to undefined data during loading.
## Context Roadmap reference: P2 / Frontend - loading/error states The Batch and Analytics pages have no skeleton loaders or user-friendly error messages. Users see a blank or partially-rendered page while data is loading, and raw errors (or nothing) when requests fail. ## What to do - Add skeleton loader components to both pages that display while API calls are in flight. - Add error boundary or per-component error state that shows a human-readable message when an API call fails. - Use a consistent pattern across both pages (consider a shared `<LoadingCard>` or `<ErrorMessage>` component). ## Acceptance criteria - [ ] Batch page shows a skeleton/spinner while jobs are loading. - [ ] Analytics page shows a skeleton/spinner while metrics are loading. - [ ] Both pages show a clear error message (not a blank screen) when the API returns an error. - [ ] No console errors related to undefined data during loading.
AI-Manager added the P2agent-readymediumfrontend labels 2026-03-29 20:24:03 +00:00
Author
Owner

Resolved by PR #56 (commit 153eb3b) and PR #352 (commit 595516e) which added loading skeletons and error states to Batch and Analytics pages. Closing as complete.

Resolved by PR #56 (commit 153eb3b) and PR #352 (commit 595516e) which added loading skeletons and error states to Batch and Analytics pages. Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1081