Skip to content

feat: add search highlighting in model list#78

Open
Muskankr wants to merge 1 commit into
AditthyaSS:mainfrom
Muskankr:feature/search-highlighting
Open

feat: add search highlighting in model list#78
Muskankr wants to merge 1 commit into
AditthyaSS:mainfrom
Muskankr:feature/search-highlighting

Conversation

@Muskankr
Copy link
Copy Markdown
Contributor

@Muskankr Muskankr commented Jun 3, 2026

Related Issue

Closes #42

Summary

Adds search highlighting to the Model List.
Matching text in model names and provider/description is visually highlighted to improve clarity.

Changes Made

  • Added highlightText utility in lib/utils.ts.
  • Updated ModelCard to highlight matches in model name and provider.
  • Passed filters.search from ModelFilters down to ModelCard.

Testing

  • ✅ Search for "GPT" highlights matches in names and descriptions.
  • ✅ Works case-insensitive.
  • ✅ No errors when query is empty.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

@Muskankr is attempting to deploy a commit to the aditthyass' 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.

Add Search Highlighting in Model List

1 participant