-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Linelist improvements #1327
Linelist improvements #1327
Conversation
Co-authored-by: Kyle Conroy <kyleconroy@gmail.com>
… reset dict for traitlet Co-authored-by: Kyle Conroy <kyleconroy@gmail.com>
Co-authored-by: Kyle Conroy <kyleconroy@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #1327 +/- ##
==========================================
+ Coverage 83.83% 84.61% +0.78%
==========================================
Files 91 91
Lines 7751 7846 +95
==========================================
+ Hits 6498 6639 +141
+ Misses 1253 1207 -46
Continue to review full report at Codecov.
|
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 really does help cleanup the clutter and make the plugin more usable with less wasted space - nice work!
I noticed a few things when doing a quick test... I'll try to do a full review tomorrow:
- The filtering to lines to the axes limits seems to be overagressive (removing lines still within the limits). I can post a screen recording if you can't reproduce. They do seem to react to changes in the redshift though, so that is awesome!
- Would it be possible for the plot/erase all buttons to only act on the filtered list of lines rather than the full list? I think that would be a very handy use-case, but if not, maybe the buttons should go on top of the filters to make that more clear (and maybe the tooltip needs clarifying either way).
- Can the plot/erase all buttons at the bottom of the plugin (which apply to all lists) use the same styling and ordering (there plot is on the right, whereas the new buttons plot is on the left).
- Do we need to update any of the style guides for this new button style?
- I'm personally still not a fan of using the same icon for the limits-filter as we do for subsets elsewhere.... but we can leave it as-is for now if and revise if we notice user-confusion.
Hmm yes, if you could send a screenshot that would be awesome! Also if you could call:
that would be super useful!
That was the original plan, but I couldn't see a way to actually pull the list of filtered lines from the JS side without relooping through the list again. There wasn't some sort of
Good point!
I'm not sure about this one. Has this created a new paradigm? I don't even know what that would be!
|
It seems almost like it is computing the visibility one interaction behind, but I'm not 100% sure. But here you can see two lines within the plot, but only one shown in the sidebar.
Can the filtering be reproduced on the python side (when clicking the button, if Love the direction the new icon is going! I think that'll help make it so much clearer! |
@kecnry out of curiosity, when the tool is in that state, does toggling the spectral filter correct the results? |
No, it doesn't, but that gave me an idea... and for some reason swapping:
with
seems to fix it. The "downside" is that the filter only calculates after you stop dragging, but it seems that it avoids ending in the wrong state. I'm guessing the callbacks on the scales were not processed in a reliable order and so could get confused if you drag back and forth near the edge of the viewer? 🤷 |
Updated the new icon! Thanks @Jenneh! |
Co-authored-by: Kyle Conroy <kyleconroy@gmail.com>
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.
UI/UX improvements, including: 1) line padding, 2) hidden color picker, and 3) filter line list to plotted range look great. We might want to consider adding a line below the search that gives the filtered wavelength range and allows that to be edited manually. This could be a separate PR, if desired by more people.
…ementers in firefox
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.
One small suggestion to avoid headaches in the future, otherwise the code looks super clean, nice work!
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.
Everything looks good (including in dark mode)! Let's get this in (squashed) once CI passes.
Some last padding improvements from @Jenneh to close this PR out! |
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.
Fantastic visual improvement! :)
Description
This pull request introduces a series of feature and UI/UX improvements to the Line List plugin. Of note:
Ran out of time to implement line labels; will need to be pushed to another effort
This entire PR should really be coauthored by @kecnry, who was a big help in getting this PR to this state. Thanks, Kyle!
@PatrickOgle should review this PR, as the designated PO of interest
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.CHANGES.rst
?