-
Notifications
You must be signed in to change notification settings - Fork 253
Migrate Course Summary Table to @tanstack/react-table v8 #7732
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
base: master
Are you sure you want to change the base?
Migrate Course Summary Table to @tanstack/react-table v8 #7732
Conversation
…zie-liu/Markus into migrate-course-summary-table
Pull Request Test Coverage Report for Build 19452209077Details
💛 - Coveralls |
| const columnHelper = this.columnHelper; | ||
| return [ | ||
| columnHelper.accessor("hidden", { | ||
| id: "hidden", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This column is actually still appearing in the table (see screenshot below). I think this actually might be a problem with other v8 tables as well, I recall seeing it somewhere else. Please modify this code so that the column is fully hidden. You may need to change the underlying Table component implementation we've defined.
| columnHelper.accessor("hidden", { | ||
| id: "hidden", | ||
| filterFn: (row, columnId, filterValue) => { | ||
| if (filterValue) return true; // If filterValue true, show all rows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code should be simplified; follow the same structure as the original implementation. You can leave a comment explaining what conditions are checked.
|
|
||
| updateShowHidden = event => { | ||
| let showHidden = event.target.checked; | ||
| let filtered = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not change this code other than the renaming of the state
Proposed Changes
Migrating the Course Summary Table to use @tanstack/react-table v8.
Screenshots of your changes (if applicable)
Associated documentation repository pull request (if applicable)
Type of Change
(Write an
Xor a brief description next to the type or types that best describe your changes.)Checklist
(Complete each of the following items for your pull request. Indicate that you have completed an item by changing the
[ ]into a[x]in the raw text, or by clicking on the checkbox in the rendered description on GitHub.)Before opening your pull request:
After opening your pull request:
Questions and Comments
(Include any questions or comments you have regarding your changes.)