Skip to content

Refactor icon imports and update custom icons - #54

Merged
khaosans merged 10 commits into
mainfrom
feature/websearch
Nov 23, 2024
Merged

Refactor icon imports and update custom icons#54
khaosans merged 10 commits into
mainfrom
feature/websearch

Conversation

@khaosans

Copy link
Copy Markdown
Member

This pull request includes significant updates to the app/api/search/route.ts file to enhance search functionality, as well as improvements to the components/custom/chat.tsx file to add loading states and accessibility features.

Enhancements to Search Functionality:

  • Added rate limiting to the search API using the rateLimit function to prevent abuse.
  • Introduced new search providers (duckduckgo and serp) to enhance search results.
  • Replaced searchQuery with query for consistency throughout the search logic. [1] [2] [3] [4] [5]

Improvements to Chat Component:

  • Added Suspense and LoadingPage components to handle loading states more gracefully. [1] [2] [3] [4] [5]
  • Refactored the Chat component to include new state variables and loading indicators. [1] [2]

Accessibility Enhancements:

  • Updated icon exports to include accessibility props, ensuring that icons are properly labeled for screen readers.

New Loading Page Component:

  • Added a new LoadingPage component to provide a consistent loading experience across the application.

@vercel

vercel Bot commented Nov 23, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
elron-ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 23, 2024 10:44pm

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