Closed goanpeca closed 2 months ago
@goanpeca What's the status here? Is this PR still active or should it be closed?
@goanpeca What's the status here? Is this PR still active or should it be closed?
Updated the PR, should be ready for review :)
Attention: Patch coverage is 94.69027%
with 6 lines
in your changes missing coverage. Please review.
Project coverage is 92.09%. Comparing base (
7f90aa8
) to head (35dd765
).
Files | Patch % | Lines |
---|---|---|
napari_plugin_manager/qt_plugin_dialog.py | 94.69% | 6 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@jaimergp added the comments :)
Thanks @goanpeca. @dalthviz, can you confirm the proposed changes address the items presented in https://github.com/napari/napari-plugin-manager/issues/14? Thanks!
Gave this a check on Windows and seems like the listed items from #14 that are being mentioned here get a fix here indeed :+1: However, not totally sure if the behavior of the layout after some interactions with the Installation Info
widget and the way the version label is getting elided are expected. Just in case, a preview of how those things were behaving for me:
Yea, looks like the extra button in the top panel (Update X.Y.Z) makes things behave a bit differently 🤔
Eliding indeed is no working as expected, definitely a bug on my side :)
Thanks for the review @dalthviz indeed weird behavior 😆 on resize, taking a look at it now.
Only thing I noticed was a flicker when you filter while it's still fetching:
Screenshot doesn't show it well, but type zarr into filter, the description of the plugin flickers.
@dalthviz added some dummy version to test the elide I think it is working, it just needs to be longer to be elided. Also added a fix for the resizing behavior bug you found. Could you check again :) ?
@psobolewskiPhD I cannot seem to reproduce the flickering :(
Gave this another check and seems like the resize behavior I mentioned above is not reproducible anymore :+1: I still see the version string being cut in two lines from my side but seems like that is expected due to the version string length, if I'm understanding correctly, right?:
Also, related with the flickering behavior, I tried filtering things multiple times while the available plugins list seemed like still being populated. For comparison, couple of GIF showing the behaviors (changes here vs latest release - 0.1.0a2 vs latest main - 5027417):
Version | Preview |
---|---|
This PR | |
0.1.0a2 |
|
main (5027417) |
I see with the changes here and with latest main a little freeze when filtering things, maybe is worthy to create an issue to track that? Related more specifically with the flickering, I think I'm able to see that behavior in all the versions that I checked. Maybe that is related with changes caused due to other plugins being loaded which change the width used for other fields like author and then cause the plugin description space to be shorter? Maybe creating an issue for that could be worthy too? 🤔
Hi @dalthviz thanks for the check again. Now I understand that the version is split in 2 lines... which is odd but, I know how to fix it :)
Will push a fix. Thanks again for the thorough reviews¡
So, the issue is that the eliding logic which is based for text, will split on given characters like a dot or a comma, or a dash etc. That is why you see the version split in 2 lines. So one "solution" would be to replace a normal dot by a different type of symbol. I tried a few and found one that could work :)
Thoughts @jaimergp, @dalthviz, @psobolewskiPhD ?
See https://www.amp-what.com/unicode/search/dot
Also created a new issue to track the flickering
So one "solution" would be to replace a normal dot by a different type of symbol. I tried a few and found one that could work :)
lmao hahah love it
This one is ready. Will continue opening smaller more concise issues to handle any remaining from https://github.com/napari/napari-plugin-manager/issues/14
Part of https://github.com/napari/napari-plugin-manager/issues/14
Comments from original issue that were fixed!
Align plugin name and summary in the installed plugins section.
Align installation info, Make a standard size? ( I know this button adjusts by the sizes on the drop down menus held within. Eliding may help here (see item below).
Ensure author names are aligned. (maybe misaligned only with many authors and in the presence of an update button?)
Ensure very long descriptions and author lists are not cut off.
Elide version numbers when long. When users have a plugin dev version installed the
Installation info
button & section is very long. We probably want to elide thisrefactor code, one example is cleaning up the code that toggles which widgets are visible or not: https://github.com/napari/napari/pull/5198#discussion_r1028817033
Set height of each item.
Current State with this PR