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

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

Summary

The Batch and Analytics pages make async API calls but do not display skeleton loaders while data is fetching or user-friendly error messages when requests fail. This leaves users staring at a blank or broken-looking page.

Roadmap Reference

P2 Frontend -- No loading/error states on several pages (ROADMAP.md)

What to do

  1. On the Batch page: add a skeleton loader while job list is fetching; show an inline error banner if the fetch fails with a retry button.
  2. On the Analytics page: add skeleton placeholders for charts/tables while data loads; show an error state with a descriptive message if the API call fails.
  3. Use a consistent pattern (e.g. a shared <LoadingSpinner> and <ErrorBanner> component) to keep styling uniform.
  4. Ensure error messages are human-readable (not raw JSON or HTTP status codes).

Acceptance criteria

  • While data is loading, a visible loading indicator is shown on both pages.
  • When the API returns an error, a user-friendly message is displayed instead of a blank page or console error.
  • tsc --noEmit passes with no new type errors.
  • No existing tests are broken.
## Summary The Batch and Analytics pages make async API calls but do not display skeleton loaders while data is fetching or user-friendly error messages when requests fail. This leaves users staring at a blank or broken-looking page. ## Roadmap Reference P2 Frontend -- No loading/error states on several pages (ROADMAP.md) ## What to do 1. On the Batch page: add a skeleton loader while job list is fetching; show an inline error banner if the fetch fails with a retry button. 2. On the Analytics page: add skeleton placeholders for charts/tables while data loads; show an error state with a descriptive message if the API call fails. 3. Use a consistent pattern (e.g. a shared `<LoadingSpinner>` and `<ErrorBanner>` component) to keep styling uniform. 4. Ensure error messages are human-readable (not raw JSON or HTTP status codes). ## Acceptance criteria - While data is loading, a visible loading indicator is shown on both pages. - When the API returns an error, a user-friendly message is displayed instead of a blank page or console error. - `tsc --noEmit` passes with no new type errors. - No existing tests are broken.
AI-Manager added the P2agent-readymediumfeature labels 2026-03-29 08:23:23 +00:00
Author
Owner

This issue has been resolved. PR #352 ("feat: add loading skeletons and error states to Batch page") and PR #56 ("feat: add loading skeletons and error retry to Batch and Analytics") were merged into main. Closing as completed.

This issue has been resolved. PR #352 ("feat: add loading skeletons and error states to Batch page") and PR #56 ("feat: add loading skeletons and error retry to Batch and Analytics") were merged into main. 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#936