-
Notifications
You must be signed in to change notification settings - Fork 17
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
Used virtualized scrolling for AutoComplete component #568
Conversation
34f7c52
to
0cf9144
Compare
0cf9144
to
5fa40ca
Compare
5fa40ca
to
83bc6d0
Compare
83bc6d0
to
b611b97
Compare
@@ -393,7 +405,8 @@ class AutoComplete extends Component { | |||
triggerUpdateOnFocus, // eslint-disable-line no-unused-vars | |||
openOnFocus, // eslint-disable-line no-unused-vars | |||
maxSearchResults, | |||
dataSource, | |||
dataSource, // eslint-disable-line no-unused-vars | |||
menuHeight, |
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.
seems odd that menuHeight
wouldn't be part of menuStyle
. is there a reason for this? either way, this should be moved up to be proximal to menuStyle
and menuProps
in this list
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.
I added menuHeight
because we need to pass this number to the VirtualScroll
component
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.
that's a concern of the child component. i still think height should be part of menuStyle (as 'maxHeight'). Menu.js can worry about passing the correct value for 'menuHeight'. this would get rid of the need for 'menuStyleWithHeight', which IMO is kind of clunky
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.
I'll add it back to menuStyle
but we still need to pass it as a separate prop since maxHeight
is not the same thing as VirtualScroll
's height, and it seems clunky to extract that information from a CSS style object
just checked out the branch and ran through the profile forms. this is performing really nicely. should we think about manually testing this in other browsers? |
Yes, we generally support the same browsers as edX: http://edx.readthedocs.io/projects/edx-guide-for-students/en/latest/front_matter/browsers.html |
I filed an issue to fix this: #609 |
hold on a sec - jumped the gun on the +1. i just want to review the changes you made once more |
That's fine, we have the merge freeze anyway |
works in IE11 EDIT: that might not be true since the polyfill hasnt been added to this PR. i may have been working with the wrong static assets |
99f565b
to
40dd741
Compare
I rebased on master so this PR should now include the polyfill |
40dd741
to
08aac4e
Compare
Any other comments? |
tested in IE11. looks great! 👍 |
08aac4e
to
7f82fa3
Compare
What are the relevant tickets?
Fixes #515
What's this PR do?
Adds
Menu
andList
frommaterial-ui
and modifies them andAutoComplete
to increase performance and use virtualized scrolling.Where should the reviewer start?
How should this be manually tested?
In general things should act exactly as they did before, except faster hopefully or at least not slower. Open up micromasters-ci in a separate tab and for each case compare functionality between it and your local instance which is on this branch.
First, go through all of the cases in the manual testing section of #382 and verify that it all works. Additionally check these cases (make sure to confirm the redux state for each selection):
Other things to check for:
Bugs:
What GIF best describes this PR or how it makes you feel?
http://i.giphy.com/zf3skxc4BFBqo.gif