-
Notifications
You must be signed in to change notification settings - Fork 76
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
Framework for legend data menu #3254
Conversation
@observe('show_viewer_labels') | ||
def _on_show_viewer_labels_changed(self, event): | ||
self.app.state.settings['viewer_labels'] = event['new'] | ||
|
||
def _on_app_settings_changed(self, value): | ||
self.show_viewer_labels = value['viewer_labels'] |
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 was never exposed in the user API, so probably doesn't need to be deprecated? Although we may want to mention in explicitly in the changelog (hiding viewer labels is now longer supported since they will soon become the trigger for opening the data menu).
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3254 +/- ##
==========================================
+ Coverage 88.63% 88.66% +0.03%
==========================================
Files 125 125
Lines 18779 18814 +35
==========================================
+ Hits 16644 16681 +37
+ Misses 2135 2133 -2 ☔ View full report in Codecov by Sentry. |
1a60f9e
to
3fc5293
Compare
Overall I think this is great! Much more intuitive design than what we have currently. I also really like the "Coming Soon" labels, it was very helpful during testing to know if something was supposed to be implemented or not. Some other observations:
Please ping me when you're ready for another look, very excited to see where this goes! |
What do you think of the latest change that swaps the viewer number (or adds a new entry) for a close button when the viewer is opened? Screen.Recording.2024-10-29.at.1.04.25.PM.mov
Yep, spectral subsets are definitely buggy. We'll definitely need to fix this before making the new menu public, but I think its just exposing existing buggy functionality with callbacks and messages. |
Everything is coming along really well! In testing some of the other plugins outside of what we saw in demos, I noticed a couple of things that may be outside of the scope for this effort:
|
Yes, the child layers should show with the correct notation (A1, etc), but we are intentionally deferring any indentation until @Jenneh advises.
Correct, this currently only shows data already loaded in the viewer. The "+" button on the top right will eventually handle loading additional available data into the viewer, similar to the "show data not in viewer" section of the old data menu. See the mockup for more details. |
@Jenneh - any thoughts? The
Yes, this is the known bug that we're hoping is improved by changes in upstream subset messaging.
That still might have the same problem, but I like it to make them stand out more. I'll give it a shot and see how it looks. Note that in the follow-up to enable actions in the bottom bar, I think this will become more intuitive, since those will be context dependent on the selection.
It is known, yes (but not introduced here... as you can see, similar problems exist in the old data menu and legend) |
@bmorris3 - how about this? |
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.
With the exception of the possible rebase issue noted below, the code looks great and ready to go.
jdaviz/configs/cubeviz/plugins/spectral_extraction/tests/test_spectral_extraction.py
Outdated
Show resolved
Hide resolved
* does not currently support subset layers * needs significant styling
* may be able to remove app-level method in the future
* replicating previous tests * fix case where subset visibility should default based on parent data vis
1b4c66b
to
f95b085
Compare
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.
After a bit more testing and code review I didn't see anything new that hasn't been addressed in the discussion above!
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.
All comments have been addressed and follow-up tickets have been made, so LGTM. Looking forward to seeing the work on this continue!
Description
This pull request implements the framework for the redesigned data-menu launched from the viewer legend - currently including a list of layers with togglable visibilities. Until this reaches feature-parity with the existing data menu and can be launched in its place, this will be hidden behind a developer flag to avoid confusion. To enable for testing (note: both this and the
_obj
will be removed when making the data-menu public):TODO / follow-ups:
set color of icons in header/footer(will be in next PR)nest sublayers in UI or keep by z-order?(talked to @Jenneh - let's defer for now and she'll work on a design)Change log entry
CHANGES.rst
? If you want to avoid merge conflicts,list the proposed change log here for review and add to
CHANGES.rst
before merge. If no, maintainershould add a
no-changelog-entry-needed
label.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.