Skip to content

Add error boundary for Quality Gates Panel #57

Description

@frankbria

Problem

The Quality Gates Panel is not wrapped in an error boundary, which means unexpected errors could crash the entire Dashboard instead of gracefully degrading.

Context

According to CLAUDE.md Frontend State Management Architecture section, error boundaries should wrap major components. Other complex Dashboard components use error boundaries for resilience.

Proposed Solution

Wrap the Quality Gates Panel in an ErrorBoundary component similar to how AgentStateProvider is wrapped.

Implementation

  1. Create or reuse ErrorBoundary component
  2. Wrap Quality Gates Panel in Dashboard.tsx
  3. Create fallback component with user-friendly error message
  4. Add retry mechanism for recovery

Error Boundary Coverage

  • API fetch failures not caught by component error state
  • Type errors from malformed API responses
  • Render errors from unexpected null/undefined values
  • Errors in gate status calculation logic

Acceptance Criteria

  • Quality Gates Panel wrapped in error boundary
  • Fallback UI displays when panel crashes
  • Error boundary logs errors for debugging
  • Retry mechanism allows recovery without page reload
  • Other Dashboard panels continue working when Quality Gates crashes

Estimated Effort

~1-2 hours

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions