Skip to content

Conversation

@jcarney2024
Copy link
Collaborator

UI/UX Improvements:

  • Added a new FilterModal component that displays all filter options in a modal dialog, allowing users to select multiple filters in one place and clear all selections easily. (src/components/search/FilterModal.tsx)
  • Updated the filter dropdown indicator in the Filter component to show an up arrow () when the dropdown is open, improving visual feedback for users. (src/components/Filter.tsx)

Refactoring:

  • Replaced the old inline filter button and followed-only controls in SearchControl with the new FilterModal, simplifying the filter logic and UI. (src/components/search/SearchControl.tsx) [1] [2]
  • Added new state hooks in SearchControl to manage all filter selections individually, supporting the expanded filter options in the modal. (src/components/search/SearchControl.tsx)

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a comprehensive filter modal for searching clubs, replacing the previous inline filter controls with a centralized modal interface. However, the implementation has critical issues where new filter states are not connected to the filtering logic, making several filters non-functional.

Key Changes:

  • Introduced a new FilterModal component that consolidates all filtering options (schools, affiliations, intensity, application status, categories, and followed-only) into a single modal dialog
  • Added new state variables for intensity, application status, and separate affiliations filtering
  • Updated the Filter component to show an up arrow indicator when the dropdown is open
  • Removed the default filter that previously showed only Yale College clubs

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

File Description
src/components/search/FilterModal.tsx New modal component providing a centralized UI for all filter options with clear all functionality
src/components/search/SearchControl.tsx Added state management for new filter types and integrated FilterModal; removed default Yale College filter
src/components/Filter.tsx Enhanced dropdown indicator to show up arrow when open for improved visual feedback

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Added aria labels + changed school filtering default back to Yale College only

Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants