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

Remove jQuery from Instructor List (Fix #777 Part 1/2) #806

Merged
merged 8 commits into from
Jun 2, 2024

Conversation

harsh183
Copy link
Member

@harsh183 harsh183 commented Jun 2, 2024

For Instructor List we can replace $ find with a react state. I added test cases with a new library @testing-library/user-event to make sure we preserve the existing functionality of the view.

@harsh183 harsh183 requested a review from angrave June 2, 2024 03:45
@harsh183 harsh183 mentioned this pull request Jun 2, 2024
@@ -1,4 +1,4 @@
import { render, screen, fireEvent } from '@testing-library/react';
Copy link
Member Author

Choose a reason for hiding this comment

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

Just code cleanup on this file, nothing new

@@ -15,7 +15,7 @@ export default function InstructorList({ instructors, loading, currUni, onInacti
const onSearch = (keyCode) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

@angrave if we want, we can make the search happen 'live' with every state change. That way we won't need to even hit enter or click the button now that we're not using jQuery

Copy link
Member Author

Choose a reason for hiding this comment

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

This can be a separate commit actually, I'll make this into a new issue so that this PR is fixed on just removing jquery.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

@angrave angrave merged commit ec8c00a into staging Jun 2, 2024
2 checks passed
@angrave angrave deleted the hd/remove-jquery branch June 2, 2024 04:16
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