-
Notifications
You must be signed in to change notification settings - Fork 8
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
Table Column Filtering and Performance Improvements #44
Table Column Filtering and Performance Improvements #44
Conversation
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.
Looks good!
i notice that this new control doesn't really change anything in the current table -- should it cause a refresh to "see what's different" (as the others do, such as Manage Columns)? If this only affects the next search, maybe the control should be near the search button? |
* Add visibility change handler * Add type definitions for column filters * Add internal column filtering logic * Add HideColumnsPopover * Improve table scrolling speeds * Plug new props into each app container * Fix HideColumnsPopover re-rendering problems * Fix Params and Scatters unselected metric filtering --------- Co-authored-by: fabiovincenzi <[email protected]>
This PR introduces a
HideColumnsPopover
for theTable
component which allows switching the default hidden columns when making a query or loading data:Performance improvements:
Scrolling speeds for the Table were optimized by a factor of 3-4, although animation cancelling requires a small loading delay in itself to be effective (~30 ms). Nevertheless, it is a big improvement when in "Hide All" mode, which used to be very laggy by default in spite of having few columns.
Horizontal scrolling is still rather slow, owing to the fact that cells and column values/styles are repeatedly rendered on the fly. This may require more investigation testing to speed things up.