feat: implement advanced filters for artisan search#282
Merged
gabito1451 merged 5 commits intoApr 28, 2026
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.
This pr closes #232
This PR introduces advanced filtering capabilities to the Artisan Search (Discovery) page. It expands the search functionality to allow users to narrow down their search by multiple specialties, price range, and minimum experience, alongside the existing location, minimum rating, and availability filters.
Changes Included:
frontend/app/artisans/page.tsx&frontend/lib/api.ts):api.ts) to handle sending an array of specialties and the newly introduced parameters.backend/app/schemas/artisan.py,backend/app/api/v1/endpoints/artisan.py,backend/app/services/artisan.py,backend/app/services/artisan_service.py):NearbyArtisansRequestschema to acceptmax_price,min_experience, and updatedspecialtiesto be an array of strings./artisans/nearbyendpoints to accept and parse the new query parameters.max_priceandmin_experienceto prevent cache collision.ArtisanServiceto conditionally filter results based onhourly_rateandexperience_years.