-
Notifications
You must be signed in to change notification settings - Fork 10
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
Viewer creator in app toolbar #94
Conversation
still needs better ephemeris support
* re-introduce if/when upstream support is available (which would then give us automatic inherited tooltips, when also available upstream)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #94 +/- ##
==========================================
- Coverage 94.18% 94.05% -0.14%
==========================================
Files 35 37 +2
Lines 1548 1598 +50
==========================================
+ Hits 1458 1503 +45
- Misses 90 95 +5 ☔ View full report in Codecov by Sentry. |
20f1998
to
fb508d1
Compare
Functionality seems to work but I think the button really needs a tooltip - is there some difficulty with adding one to a downstream (from Jdaviz) component like this? |
Yes, this will be covered by spacetelescope/jdaviz#2743 and spacetelescope/jdaviz#2744 upstream and pulled in here by #68. |
Got it, thanks - I figured it wasn't trivial to insert something into out tooltip registry as-is. In that case I think this looks good to get in, I worry slightly about the number of things in the duplication menu getting out of hand, but also think it's very unlikely someone would create that many viewers. |
NOTE: this should be tested with jdaviz 3.8.x since this does not include updates for jdaviz 3.9 covered in #68.
This adds a viewer creator dropdown in the app-level toolbar which can create viewers, including phase viewers attached to a specific ephemeris.
Screen.Recording.2024-03-08.at.2.05.20.PM.mov
The current behavior is to first check for an existing viewer with a matching label and if it exists, clone the existing viewer (keeping data visibilities and plot options, etc), and otherwise create a new viewer.TODO:
Once merged:
The styling will also be improved by upstream spacetelescope/jdaviz#2743