feat: add rate limiting with countdown timer for docs chat

- Add in-memory rate limiter (10 requests/minute per user)
- Show informative message when limit reached explaining demo context
- Display countdown timer showing when chat becomes available again
- Auto-reset rate limit when timer expires
- Update documentation with rate limit FAQ and category selection flow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
colinislit
2025-12-01 18:00:51 +01:00
parent 150548bc62
commit 9dc2b4f216
6 changed files with 198 additions and 12 deletions

View File

@@ -2,5 +2,6 @@ export { DocsChatWidget } from './docs-chat-widget'
export { ChatMessages } from './chat-messages'
export { ChatInput } from './chat-input'
export { ChatSuggestions } from './chat-suggestions'
export { RateLimitMessage } from './rate-limit-message'
export { useDocsChat } from './use-docs-chat'
export type { ChatMessage } from './use-docs-chat'