Skip to content

Add reusable ApiError component for prediction and upload failures#56

Open
liascope wants to merge 1 commit into
Climate-Vision:mainfrom
liascope:main
Open

Add reusable ApiError component for prediction and upload failures#56
liascope wants to merge 1 commit into
Climate-Vision:mainfrom
liascope:main

Conversation

@liascope
Copy link
Copy Markdown

@liascope liascope commented May 8, 2026

Summary

Added a reusable ApiError component for displaying API-related errors in the UI instead of failing silently or showing only toast notifications.

Fixes #19

Changes

  • Created reusable ApiError component in frontend/src/components/ui/
  • Added responsive error banner styling with Tailwind CSS
  • Added dismiss button using lucide-react
  • Integrated error handling into:
    • NewAnalysis.tsx
    • Upload.tsx
  • Improved API error propagation to display backend error messages

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.

[Good First Issue] Add reusable API error banner component to frontend

1 participant