Add search bar for filtering projects by name and description#36
Open
1234-ad wants to merge 4 commits into
Open
Add search bar for filtering projects by name and description#361234-ad wants to merge 4 commits into
1234-ad wants to merge 4 commits into
Conversation
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.
Description
This PR implements a search bar for filtering projects by name and description, addressing the remaining part of issue #8 (Project Sorting and Filtering).
Changes Made
1. Created
SearchBarcomponent (src/components/SearchBar.tsx)2. Added SearchBar styles (
src/styles/components/SearchBar.css)3. Enhanced Projects page (
src/pages/Projects.tsx)4. Updated Projects layout (
src/styles/pages/Projects.css)search-sort-rowlayout for search bar and sort dropdownFeatures
✅ Real-time Search: Filters projects instantly as you type
✅ Multi-field Search: Searches both project name and description
✅ Case-insensitive: Works regardless of capitalization
✅ Clear Button: Easy way to reset search with ✕ button
✅ Combined Filtering: Works seamlessly with language filters and sorting
✅ Results Counter: Shows how many projects match current filters
✅ Responsive Design: Works perfectly on mobile and desktop
User Experience
Before: Users could only filter by language and sort by stars/forks/name
After: Users can now quickly find specific projects by typing keywords
Example searches:
Technical Details
Testing Checklist
Screenshots
Will be added after testing on live site
Related Issue
Partially resolves #8 (specifically the "filter by name (search bar)" requirement)
Additional Notes