This PR implements the search and filter mechanism for characters in the SearchFilter component. It allows users to search for characters by name and filter them based on their homeworld, film, or species. The UI elements are also updated with Tailwind CSS for styling. Types are declared and used for props and state variables to ensure type safety.
Summary of Changes
Uncommented the handleFilterChange function and the select elements for homeworld, film, and species filters in the SearchFilter component.
Modified the handleSearch function to include the filters in the API request.
Updated the UI elements with Tailwind CSS classes for styling.
Declared and used types for props and state variables for better type safety.
Please review and merge this PR at your earliest convenience.
Fixes #7.
π Latest improvements to Sweep:
Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
Added support for self-hosting! Check out Self-hosting Sweep to get started.
[Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
π‘ To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
PR Feedback (click)
Description
This PR implements the search and filter mechanism for characters in the SearchFilter component. It allows users to search for characters by name and filter them based on their homeworld, film, or species. The UI elements are also updated with Tailwind CSS for styling. Types are declared and used for props and state variables to ensure type safety.
Summary of Changes
Please review and merge this PR at your earliest convenience.
Fixes #7.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: