feat: add search functionality for events with URL-based filtering an…#172
Open
Shalini828 wants to merge 3 commits intoreactplay:mainfrom
Open
feat: add search functionality for events with URL-based filtering an…#172Shalini828 wants to merge 3 commits intoreactplay:mainfrom
Shalini828 wants to merge 3 commits intoreactplay:mainfrom
Conversation
…d debounce (closes reactplay#163)
✅ Deploy Preview for reactkolkata ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
priyankarpal
requested changes
Feb 22, 2026
Member
priyankarpal
left a comment
There was a problem hiding this comment.
Attaching a screen recording below
Screencast.From.2026-02-22.21-14-39.mp4
| <div className="ml-4 hidden items-center lg:flex"> | ||
| <input | ||
| type="text" | ||
| placeholder="Search..." |
Member
There was a problem hiding this comment.
Suggested change
| placeholder="Search..." | |
| placeholder="Search events" |
Comment on lines
+143
to
+149
| <input | ||
| type="text" | ||
| placeholder="Search..." | ||
| value={searchQuery} | ||
| onChange={(e) => setSearchQuery(e.target.value)} | ||
| className="rounded-md border border-slate-600 bg-slate-800 px-3 py-1 text-sm text-white outline-none focus:border-sky-400" | ||
| /> |
Member
There was a problem hiding this comment.
- add a search icon, when a user clicks on it then show input.
Comment on lines
+27
to
+29
| if (pathname.includes("/events")) { | ||
| router.push(`/events?search=${searchQuery}`); | ||
| } |
Member
There was a problem hiding this comment.
- now users can't see anything when they search for events in the homepage
- it should be when a user search for any
eventthen it will auto navigate to the/eventsroute and show the details [only for event search]
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.
Added search functionality for the Events page.
Integrated search input in Navbar
Implemented URL-based filtering using ?search=
Added debounced search for better performance
Displays dynamic "No results found" message
Closes #163