Skip to content

fix: display user-friendly UI for GitHub API rate limit errors (#72) - #73

Open
GowsiSM wants to merge 3 commits into
arnabnandy7:mainfrom
GowsiSM:fix/rate-limit-error-ui
Open

fix: display user-friendly UI for GitHub API rate limit errors (#72)#73
GowsiSM wants to merge 3 commits into
arnabnandy7:mainfrom
GowsiSM:fix/rate-limit-error-ui

Conversation

@GowsiSM

@GowsiSM GowsiSM commented Sep 1, 2026

Copy link
Copy Markdown

This PR replaces the raw GitHub API rate limit error JSON with a user-friendly error UI.

Changes

  • Added a reusable ErrorCard component with warning and error variants
  • Added GitHub API rate limit detection
  • Added structured rate limit error responses
  • Added retry functionality
  • Added a "Sign in for higher limits" action for unauthenticated users
  • Added collapsible technical details for debugging
  • Added light and dark theme support

Closes #72

- Add RateLimitError class and isRateLimitError helper function
- Detect GitHub API 403 errors with rate limit messaging
- Structure error responses with rateLimit and retryAfter fields
- Add rateLimit and retryAfter to SearchResponse type
- Support warning and destructive variants with collapsible technical details
- Buttons for retry and sign-in
- Replace raw JSON error display with ErrorCard in searchsummary
- Add rateLimitInfo state and retry handler
- Show sign-in prompt for unauthenticated users

Closes arnabnandy7#72
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

@GowsiSM is attempting to deploy a commit to the arnabnandy7's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

UX Improvement: Display a user-friendly message for GitHub API rate limit errors instead of raw JSON

1 participant