-
Notifications
You must be signed in to change notification settings - Fork 27
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
Added a save dialog with options #102
Conversation
Codecov Report
@@ Coverage Diff @@
## main #102 +/- ##
==========================================
- Coverage 90.38% 84.91% -5.48%
==========================================
Files 20 21 +1
Lines 853 928 +75
==========================================
+ Hits 771 788 +17
- Misses 82 140 +58
Continue to review full report at Codecov.
|
hey @Fifourche, sorry for not following up on this sooner! I love the look of this from your screenshot but unfortunately can't play with it properly here, I keep running into the same issues as #39 (not your fault, I think this is a weird mac specific bug |
Following up here, what do you mean exactly by 'filters are not handled properly'? I've been meaning to fix this save dialog issue properly on my machine and getting this in is great motivation 🙂 |
Hi ! :) I just wanted to say that the drop down menu is not displaying indivdually all the format options, just folder or else. Otherwise everything seems to work fine, even though tests would be needed ! I don't have access to a Mac, so I'm not sure I can help much... but you can try this to test the interface : This would run a |
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.
@Fifourche you've really gone above and beyond providing that binder link! Thanks so much and sorry for not being able to review properly without it 🙂
I have a couple of small comments/suggestions but the functionality is awesome and works really nicely! Awesome job
What do you think about making the qualityComboBox
a QLabeledSlider
from the new superqt repo? A slider might be more obvious than a combo box for the quality
I'm approving now but will wait to hear what you think about these suggestions before merging, if you'd rather not implement these changes yourself I'm happy to do them myself in a followup PR!
Thanks again!!
Co-authored-by: alisterburt <alisterburt@gmail.com>
Thanks for the suggestions, I took them all into account ! :) There's one thing I can't seem to work out for now ; it's the display style of the |
Hey ! I'm still having problems with the looks of the |
Was still on 0.4.8, didn't realize... ^^ I just tried 0.4.10 and it's works, thanks ! |
Oh and for the failing test, only on mac, I don't have a clue what might have triggered this error... Is this is something you already encountered @alisterburt ?
|
oh that is looking nice!! For the failing test, I've seen these errors before... usually they occur if I try to modify an attribute of a layer after closing the viewer... I'll relaunch the tests here to see if it passes on a second go! |
retried on the same computer and an other one, the problem is still there it seems... I'm not sure why ! I'll give a closer look at the Here are some informations about the packages' versions if needed :
|
when you previously tried it and thought it was working, was that a different OS? |
I actually don't think this is a superqt issue, it's more of a stylesheet issue, and the styles of widgets inserted into a napari viewer come from napari itself... superqt just "obeys" the parent styles. The basic idea with layouts is that they get allotted an area according to their size policy. So, if they all have the default size policy, they will all get equal space (Which could give the appearance of a big gap like you had there). The ways to fix it include:
|
So from what I understood, the buttons of the Would there be some tests to write for this part of the interface then ? I see that codecov is failing, but at the same time there are no tests for rest of the plugin's interface either if I'm not mistaken ! |
not totally following what does what there, but i pulled this and it looks good :) One comment on saving: currently, the entire napari window will block until saving is done. This can go in another PR, but this would be a good time to use napari's nice work! |
apologies for taking so long about this @Fifourche, really let this get away from me! Congrats, awesome work 🚀 |
This PR aims at improving the save procedure, and brings a draft of save dialog with options, as raised by #76 .
Currently filters are not properly handled. The rest seems ok !