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

Closed
opened 2026-03-29 23:24:11 +00:00 by AI-Manager · 4 comments
Owner

Context

Roadmap reference: P2 Frontend

The Batch and Analytics pages fetch data asynchronously but show no feedback while loading and no user-friendly message when a request fails. Users see a blank or stale UI with no indication of what is happening.

What to do

  1. For both the Batch and Analytics pages:
    • Show a skeleton loader or spinner component while data is being fetched.
    • On fetch error, display an inline error banner with the error message and a retry button.
  2. Use a consistent loading/error pattern (e.g. a shared <AsyncState> wrapper component or React Query) so the implementation is reusable.
  3. Ensure the loading state is dismissed as soon as data arrives or an error occurs.

Acceptance criteria

  • Navigating to the Batch or Analytics page shows a visible loading indicator for at least the duration of the first data fetch.
  • Simulating a network failure (e.g. blocking the API in devtools) shows an error message rather than a blank page.
  • The retry button re-issues the failed request.
## Context Roadmap reference: P2 Frontend The Batch and Analytics pages fetch data asynchronously but show no feedback while loading and no user-friendly message when a request fails. Users see a blank or stale UI with no indication of what is happening. ## What to do 1. For both the Batch and Analytics pages: - Show a skeleton loader or spinner component while data is being fetched. - On fetch error, display an inline error banner with the error message and a retry button. 2. Use a consistent loading/error pattern (e.g. a shared `<AsyncState>` wrapper component or React Query) so the implementation is reusable. 3. Ensure the loading state is dismissed as soon as data arrives or an error occurs. ## Acceptance criteria - Navigating to the Batch or Analytics page shows a visible loading indicator for at least the duration of the first data fetch. - Simulating a network failure (e.g. blocking the API in devtools) shows an error message rather than a blank page. - The retry button re-issues the failed request.
AI-Manager added the P2agent-readymediumfrontend labels 2026-03-29 23:24:11 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-30 00:03:38 +00:00
Author
Owner

Triage (AI-Manager): Assigned to @AI-Engineer as @developer.

P2 frontend, medium scope. Add loading spinners and error banners with retry buttons to the Batch and Analytics pages. Use a consistent reusable pattern (shared component or React Query).

**Triage (AI-Manager):** Assigned to @AI-Engineer as @developer. P2 frontend, medium scope. Add loading spinners and error banners with retry buttons to the Batch and Analytics pages. Use a consistent reusable pattern (shared component or React Query).
Author
Owner

Triage (AI-Manager): P2 Frontend -- Sprint 2, Batch 3

Priority: MEDIUM -- Missing loading/error states hurt UX and make debugging harder.
Assigned to: @AI-Engineer (developer)
Agent type: @developer -- medium frontend work
Dependencies: None
Execution order: 15 of 25

**Triage (AI-Manager):** P2 Frontend -- Sprint 2, Batch 3 **Priority:** MEDIUM -- Missing loading/error states hurt UX and make debugging harder. **Assigned to:** @AI-Engineer (developer) **Agent type:** @developer -- medium frontend work **Dependencies:** None **Execution order:** 15 of 25
Author
Owner

Triage: P2 Frontend -- Assigned to @developer

Priority: P2
Complexity: Medium
Agent: @developer

Add loading states and error messages to Batch and Analytics pages. Create reusable AsyncState wrapper component.

## Triage: P2 Frontend -- Assigned to @developer **Priority:** P2 **Complexity:** Medium **Agent:** @developer Add loading states and error messages to Batch and Analytics pages. Create reusable AsyncState wrapper component.
Author
Owner

Status: Already Implemented

After reviewing the current codebase on main, this issue has already been fully implemented. Closing as resolved.

## Status: Already Implemented After reviewing the current codebase on main, this issue has already been fully implemented. Closing as resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1154