Skip to content

feat: add rate limit UI with Sonner toast notifications#8

Open
karanray06 wants to merge 2 commits into
mainfrom
feature/rate-limit-ui
Open

feat: add rate limit UI with Sonner toast notifications#8
karanray06 wants to merge 2 commits into
mainfrom
feature/rate-limit-ui

Conversation

@karanray06

Copy link
Copy Markdown
Collaborator
  • Detect 429 and rate limit errors in chat message handler
  • Show special toast alert when rate limited (5s duration)
  • Display user-friendly message in chat on rate limit
  • Fallback generic errors also use toast
  • Import sonner for consistent toast notifications
  • Graceful degradation with helpful messaging

Files Changed: 1 (use-chat.ts)
Lines Added: +20

- Detect 429 and rate limit errors in chat message handler
- Show special toast alert when rate limited (5s duration)
- Display user-friendly message in chat on rate limit
- Fallback generic errors also use toast
- Import sonner for consistent toast notifications
- Graceful degradation with helpful messaging

Files Changed: 1 (use-chat.ts)
Lines Added: +20
@Circuit-Overtime

Copy link
Copy Markdown
Member

@karanray06 The dependency lock file is not present in the project and somehow has got deleted, please ensure that in this PR you generate the package lock json and push it. I would recommend that you do it in this PR and after we merge we will let it reach PR #9

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.

2 participants