-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Add Interactive Sub Scroll Panel for Enhanced Search Functionality. #622
Comments
To reduce notifications, issues are locked. Your issue will be unlock when we will add label as |
@apoorvmaurya from what I understood from the description of the proposed change, you want to add "Autocomplete" functionality right?...correct me if I am wrong. |
nope @suzy-g38 but it can be a sub-functionality, but what I want to say is that when an individual types (say any alphabets), it should automatically start suggesting every available events with that very alphabets your site has in it's database just like the google search bar does (google gives us every possible sentences or words that we may want to search and as we continue to type, the suggestion gets more and more precise ) |
okay....how do you want to proceed? |
well....for starters! by attaching an 'onchange' event handler to the input field that will trigger AJAX requests to a dedicated API route in NextJS whenever the user types then that request will be handled on the backend, where we'll utilize MongoDB to fetch the relevant suggestions based on the user's input. We'll then format and return the suggestions as JSON responses from the API route. These suggestions will be then displayed in the frontend dropdown, styled using TailwindCSS. |
Okay understood. Just do one thing instead of calling the server API every time a user types a character, make a limit of at least 3 characters should be written after that you will start calling the server API, example: as you suggested so if the user types "a" then according to you there will be a server call, but instead of that do the server call after user types "abc". I am suggesting this to reduce the number of database calls. Your proposal is great but we have to keep in mind the database call. We always have to minimize the database load. I am assigning this to you. You can start work on it. |
@suzy-g38 I have a suggestion for using the useDebounce hook for Delay a little bit while the user types something into the search bar except checking the character limit of at least 3. |
Detailed description
I would like to propose the addition of an interactive sub scroll panel to the existing search functionality which will aim to assist users during the search process by providing a dynamic preview of potentially relevant content as they type their search query. This will facilitate quicker and more accurate content discovery, particularly in cases where the exact search terms might be ambiguous or when users are unsure about the precise wording.
And yes, remove the 'You are searching for...' text, given that you are approving my proposal that is!
And while there is no input in the search bar, hide the 'No results found try searching something different' instead there should be the showcasing of events sorted in a way such that the most popular ones or those with the closer dates should be reffered.
And ofcourse when the user types incorrect search inputs then only make that visible.
Context
It will improve the
Vibey
's efficiency and will enhance UX, faster content disscovery and will reduce cognitive loadPossible implementation
No response
Additional information
Code of Conduct
The text was updated successfully, but these errors were encountered: