-
Notifications
You must be signed in to change notification settings - Fork 76
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
Jdaviz Launcher: Identify compatible configs and request user to select config #2267
Conversation
ab0e8c8
to
51b7a4a
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.
Some quality-of-life improvement ideas:
- There needs to be some user feedback when a file is not found. Right now, it does nothing and also does not emit any error message. For example, what if I accidentally think the instance is launched from my working dir like normal notebook (it is not, it is in a temp dir but this is hidden from user) and I entered the filename without path?
- There needs to be some basic instructions on how to use the UI elements in the launcher itself. Having to enter text field by hand and then click on 🔍 is not a common workflow (for example, you don't do this in Photoshop).
- Make it clearer in the launcher that if you click on the viz button with blank text field, you are going to launch empty viz and lose the launcher.
535687b
to
91c000c
Compare
8935385
to
8315c44
Compare
8315c44
to
8f4867a
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2267 +/- ##
==========================================
- Coverage 90.89% 90.85% -0.04%
==========================================
Files 152 152
Lines 17060 17070 +10
==========================================
+ Hits 15506 15509 +3
- Misses 1554 1561 +7
☔ View full report in Codecov by Sentry. |
Responding to @pllim's comments: Great points! I agree with all of them, though we are doing a UI overhaul of the launcher in an upcoming effort (probably at the same time we write the docs and advertise the functionality to the public). As such, all your points I think should be addressed in our UI effort for the launcher. This PR should be thought of as a technical demonstration of hooking in the autoidentification to the launcher. The only thing I wanted to confirm was your first point with an invalid path. I verified that if the user attempts to identify a filepath that doesn't exist, it returns a proper traceback (again thinking from the technical side), which it does. Admittedly, I think what you're describing here is if the user enters a filepath but does NOT identify the file, then the config buttons ignore the filepath and loads an empty viz. While I agree it's confusing, I think this is something that should be discussed in the UI effort. I'm not sure there is a clear answer to this one. For instance, I could see a few different ways this could be addressed:
Again, all great points, I just feel out of scope, since we aren't advertising it and the UI ticket is coming up |
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 reasonable to me. Discussing offline, we'll defer the decision to migrate this logic to a full-fledged vue-template to the UI work, at which point we can iterate further on UX details.
Okay, where is the UI ticket? I want to copy the comments there. Thanks! |
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.
Kyle said he added my comments to the JIRA ticket. So LGTM now. Thanks!
--layout
that is reintroduced.Description
This pull request extends #2257 when a filepath is provided, identify the file and enable/disable the relevant config buttons that are compatible. Then allow the user to select the configuration they would like to load with the data selected:
SpecvizExample.-.Jupyter.Notebook.-.Brave.2023-06-26.17-53-28.mp4
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.