-
Notifications
You must be signed in to change notification settings - Fork 6
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
Use display name on plugins that provide it #32
Conversation
How does this relate to #15? |
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.
looks ok for me
Since we don't disambiguate on display names (the uniqueness is only guaranteed for the actual package name), this could be used to inject malicious packages in the ecosystem. I suggest the actual package name is also shown next to the display name, or at least provide an icon with a tooltip listing the actual name. |
good point. I think we should always show name of package, as people may not check tooltip. We should also highlight collisions somehow. |
As in 2 packages are using the same display name? Sounds like something to be addressed separately? 🤔 |
@goanpeca did you point example package with, a different package name and display name? |
I missed it (on image) will test it tomorrow. |
Any updates here? |
In line 404 we get plugin name from button text, that will not work with rich name. Why can we not change button into label? As far as I check we only use it to open project website, that could be done with link on QLabel. |
You are correct, working on a prototype |
This uses now a clickable label to preserve the previous behavior. Also styling of links inside rich texts is not possible, so this also preserves the UI look in general Example on image Display name: napari ARCOS What do you think @Czaki, @jaimergp, @psobolewskiPhD ? Also, I needed to change some QSS that lives on napari side. I am bringing this over on a separate PR |
0115ae0
to
08902aa
Compare
@@ -30,7 +30,7 @@ jobs: | |||
strategy: | |||
fail-fast: false | |||
matrix: | |||
platform: [ubuntu-latest, windows-latest, macos-latest] | |||
platform: [ubuntu-latest, windows-latest, macos-13] |
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 failing with missing wheels due to latest being arm I think?
from napari_plugin_manager.qt_package_installer import InstallerActions | ||
|
||
if qtpy.API_NAME == 'PySide2' and sys.version_info[:2] == (3, 11): | ||
if (qtpy.API_NAME == 'PySide2' and platform.system() != "Linux") or ( |
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.
The same error was being seen across the board
Soma variation of object cannot be interpreted as an integer
Following napari I am only testing pyside2 combination for linux with python 3.9 and 3.10
08902aa
to
31944fa
Compare
References and relevant issues
Description
This PR now displays the display name (if provided by author) on the available plugins list. The installed list still will not show them as another fix needs to be carried out on the npe2 project to include the extra field in the metadata.
Search works for both package name and display name
Screenshot
Before
After this PR