code100x / daily-code

https://projects.100xdevs.com/
834 stars 1.02k forks source link

Created the search by tag functionality to make the card accessebility easier #661

Open Prakash21singh opened 2 months ago

Prakash21singh commented 2 months ago

This pull request implements the search functionality in the ContentSearch component. Users can now filter tracks by tag in addition to title. The following updates were made: Search by Tag: Added a new filter option allowing users to search for tracks based on their associated tags. Updated the filter dropdown to support dynamic search filtering by title, description. Improved the filtering logic to handle various cases based on the user's selection (title or description).

Changes Made: Modified ContentSearch.tsx to include the tag-based filtering logic. Updated the state management to track the selected filter type (title, description). Refactored the input handling to dynamically apply the search filter based on the selected type. Fixed minor UI bugs related to the dropdown and list display.

Testing: Tested the search functionality to ensure smooth filtering by title, and description. Verified that keyboard navigation and selection still function as expected.

Prakash21singh commented 2 months ago

Please review it.