Skip to content

Add an error boundary around the seller dashboard stats panel to prevent a data error from crashing the full page #27

Description

@Chucks1093

Summary

A rendering or data error inside the seller dashboard stats panel currently crashes the entire dashboard page. An error boundary scoped to the stats panel should catch the error and show a fallback while keeping the invoice list section functional.

Scope

  • Wrap the stats panel in a React error boundary
  • Fallback UI: 'Dashboard stats unavailable — try refreshing'
  • Include a retry button that resets the boundary and re-renders the stats panel
  • Log the caught error to the existing client-side error logger
  • The invoice breakdown list should remain fully interactive during the fallback state

Acceptance Criteria

  • Stats panel error does not crash the dashboard page
  • Fallback message and retry button shown on error
  • Retry button resets boundary and re-renders the stats panel
  • Error logged to the client-side logger
  • Invoice list remains interactive during fallback

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions