Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: made course pane components functional #714

Merged
merged 6 commits into from
Oct 6, 2023
Merged

Conversation

ap0nia
Copy link
Collaborator

@ap0nia ap0nia commented Sep 30, 2023

Summary

If we want to support more sophisticated searching, then we'd want to integrate better with react-router so that we can manage state in the URL. This is in regards to #558 and the work that's being done on a fork by Carlos

The core component logic has been mostly preserved and optimized for functional components.

Test Plan

I can write tests, if anybody wants me to. Some tests I can think of at the top of my head are:

  • Displays the search results only when the conditions are met (i.e. selected a course, specified the proper advanced search parameters, etc.)
  • Returns to search when a key is pressed and conditions are met

@github-actions github-actions bot requested a review from JacE070 September 30, 2023 12:16
@ap0nia ap0nia requested review from EricPedley and MinhxNguyen7 and removed request for JacE070 September 30, 2023 12:20
Copy link
Member

@MinhxNguyen7 MinhxNguyen7 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@EricPedley EricPedley left a comment

Choose a reason for hiding this comment

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

Only reading the last commit that replaces the state hook with a reducer hook, and that looks good to me. Trusting Minh's approval for the rest. @ap0nia if you're ready to merge can you press the button? Not sure if you wanted to throw in anything else before merging.

@ap0nia ap0nia merged commit 5f04211 into main Oct 6, 2023
@ap0nia ap0nia deleted the refactor-coursepane branch October 10, 2023 01:07
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.

3 participants