VaibhavArora314 / StyleShare

A simple web based platform where users can easily create, explore, and share Tailwind CSS components and designs with fellow users.
https://style-share.vercel.app
MIT License
40 stars 69 forks source link

[Feature Request]: 🔎 Implement Autocomplete Suggestions in Search Bar #586

Closed MeetDOD closed 1 month ago

MeetDOD commented 1 month ago

Is there an existing issue for this?

Feature Description

I propose adding an autocomplete feature to the search bar within our web application to enhance the user experience and make it easier for users to find products quickly.

Feature Overview:

  1. Search Bar Autocomplete: As users begin typing in the search bar, a list of relevant suggestions will appear below the input field. These suggestions will be dynamically generated based on the user's input.

  2. Autocomplete Suggestions: The suggestions will include relevant posts names helping users quickly select or refine their search queries.

Use Case and Benefits

  1. Enhanced User Experience: The autocomplete feature will streamline the search process, making it more efficient and user-friendly.
  2. Increased Engagement: By offering relevant suggestions, users are more likely to engage with the search function and explore additional products.
  3. Time-Saving: This feature reduces the time users spend typing and searching for items, leading to quicker navigation.

Add ScreenShots

Current:

image

Future:

image

Technical Implementation:

  1. The suggestions should be fetched via an API that queries the database for relevant matches based on the user’s input.
  2. The UI should ensure that the suggestions are clearly visible, well-aligned, and easily selectable, with the text styled for readability.

Priority

High

Record

github-actions[bot] commented 1 month ago

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.

VaibhavArora314 commented 1 month ago

How will you get these suggestions list?

MeetDOD commented 1 month ago

How will you get these suggestions list?

from the card title i will map in the search bar dropdown !

VaibhavArora314 commented 1 month ago

Since we are not fetching all the posts at the same time, maybe you can create an api to only get names of all the posts which can be further used for suggestions. Or an api to get the suggestions themselves but this may slow down the app due to repeated calls.

github-actions[bot] commented 1 month ago

Hello @MeetDOD! Your issue #586 has been closed. Thank you for your contribution!