-
Notifications
You must be signed in to change notification settings - Fork 224
Fix Bug 716497, improve correlations tab ui #2403
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
Fix Bug 716497, improve correlations tab ui #2403
Conversation
|
@rhelmer if you're too busy I can review this one. |
|
Wow this looks so much better! |
|
@peterbe sure go for it |
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.
some strange indentation going on here
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.
Yeah I saw that, I will fix it when I amend the PR to also change the ui for the correlations tab on report index
|
Code looks good but there are a couple of things that are annoying
|
The problem we run into here is that some of the panels can contain an large amount of data and the browser uses this calculated height (0 to say 45000px) to determine the speed of the animation in order to make it as smooth as possible. So in this case, I reckon we should consider one of two options, do the animation with JS i.e. jQuery or, just have no animation at all and have the accordions snap open and closed. I am kinda leaning towards the second but will experiment. In terms of the interaction with the accordion. As you mentioned, it is pretty much the nature of an accordion widget but, it is also keyboard accessible i.e. tab, moves between the tab headers and hitting either enter or space will expand and contract it. (I have seen Fx behave a little strange with regards to tab order and actually skipping entire sections that are meant to be in the tab flow whilst Chrome just works as expected but, give it a try and see how it behaves for you. FYI, I have brought this up in the #accessibility channel and we are discussing why this is further there.) I am going to merge these changes also into the report index page and address the points you mentioned here. Will ping yourself and @rhelmer once I have updated the PR. |
|
Ok so, having looked at the code some more, especially related to porting this to report/index [and a new bug I ran into https://bugzilla.mozilla.org/show_bug.cgi?id=1074157], I want to make a suggestion. If I continue to work away on this in this single pull request, this is going to end up becoming another one of those huge, scary pull requests :) In order to avoid that, I want to suggest that we merge the current pull request as is and I open separate pull requests for the follow on work. These will relate to porting this UI change to report index, addressing the concerns raised by @peterbe, some additional cleanup and refactoring I wish to do and other items that might come up as I progress. Thoughts? |
|
Good idea. Like, we can totally wait with fixing the problem with the spinner gif src. However I think point 2, 3 and point 4 above are worth doing first. I don't know if there's much we can do about the fact that you have to click to open every accordian to see if something is in it but isn't that resolved with point 3. Once that's done, I'm happy to review again and we can move on with the other stuff you found. |
|
@peterbe Sounds good, let me resolve points 2, 3, 4 and update the PR. |
|
@peterbe I addressed points 2, 3 and 4. For point 4, I am simply not animating the height anymore but just the opacity. Let me know how this works for you or whether you still feel we need to handle this with JS. This is, in general the tabs pop open but, for one's that contain like 2000+ results, it might be a little slow but, those are huge tables. |
|
Note-to-self: Here's a good signature to test with: |
|
r+ Awesome! |
|
Thanks @peterbe and on to the rest I go ;) |
…relations-tab Fix Bug 716497, improve correlations tab ui
@rhelmer Ok, so as mentioned on IRC this is phase 1 of this PR that involved only the correlations tab on report/list
If this is all good, I will amend this PR to also include the same tab on report index.