Add FAQ search with highlighting, auto-scroll, and no-results feedback#1476
Merged
omroy07 merged 2 commits intoomroy07:mainfrom Feb 12, 2026
Merged
Add FAQ search with highlighting, auto-scroll, and no-results feedback#1476omroy07 merged 2 commits intoomroy07:mainfrom
omroy07 merged 2 commits intoomroy07:mainfrom
Conversation
|
@Eshajha19 is attempting to deploy a commit to the Om Roy's projects Team on Vercel. A member of the Team first needs to authorize it. |
Thanks for creating a PR for your Issue!
|
|
🎉 Congrats @Eshajha19 on getting your PR merged! 🙌 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 PR Description
Summary
Implemented a fully functional FAQ search system that filters, highlights, and prioritizes matching FAQs while providing clear user feedback when no results are found.
Key Features
🔍 Real-time FAQ filtering based on search input
🟨 Keyword highlighting in questions and answers
⬆️ Automatically moves matching FAQs to top of their section
📜 Auto-scrolls to first matching result
❌ Displays a friendly "No matching FAQs found" message
🔄 Restores full FAQ list when search is cleared
UX Improvements
Automatically expands matched FAQ items
Hides non-matching FAQs for focus
Clear visual feedback for zero results
Files Updated
faq.html
Added #faqNoResults placeholder element
faq.css / style.css
Added styles for no-results feedback message
Inline <script> in faq.html
Updated handleSearch() logic for filtering, highlighting, and no-results handling
Screenshots / Demo
This PR #1476 closes issue #1454