Skip to content

Add error handling and loading states#1

Open
arkbuilder wants to merge 1 commit intoMegaSF:Mainfrom
arkbuilder:fix/error-handling
Open

Add error handling and loading states#1
arkbuilder wants to merge 1 commit intoMegaSF:Mainfrom
arkbuilder:fix/error-handling

Conversation

@arkbuilder
Copy link

Summary

Adds proper error handling and loading states to prevent silent failures.

Changes

  • Error state with user-friendly messages for API failures
  • Loading state for all async operations
  • Visual error banner (red styled alert)
  • Loading indicator during operations
  • Controls disabled during loading
  • Data format validation before rendering

Why

Previously, failed requests would silently break the app with no feedback. Now users see clear messages if the backend is down or requests fail.

- Added error state for API failures with user-friendly messages
- Added loading state to indicate when operations are in progress
- Wrapped all async operations (fetchFiles, loadFile, handleUpload) in try/catch
- Added visual error banner with red styling
- Added Loading indicator
- Disabled controls during loading states
- Validates data response format before rendering charts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant