qgis / QGIS-Django

Django project for QGIS related activities such as plugin repository
http://qgis.org
GNU General Public License v2.0
86 stars 59 forks source link

Feature request: display plugin ID to the plugin page with a copy button #343

Closed Guts closed 4 months ago

Guts commented 5 months ago

For now, the plugin ID is displayed into the repository XML file and the search results (between brackets)

image

but not on the plugin page:

image

It would be a good idea to display this identifier on the plugin page, under its name and in the details tab, along with a simple mechanism for copying it to the clipboard, either via a small button next to it, or on click with the appropriate tooltip to indicate it.

I've in mind the UI mechanism in Gitlab:

image

Xpirix commented 5 months ago

Dear @Guts

Please find at #344 the proposed PR for this issue.

Best regards,

Guts commented 5 months ago

Woa it was fast! 👏

Thanks @Xpirix for the quick implementation.

To complete my feature request, I forgot to mention the concrete use case that motivates this issue.

When an end-user is listing the plugins the profile.json used by QDT, it requires some hard operations and needs custom step-by-step guide like this one https://guts.github.io/qgis-deployment-cli/guides/howto_qgis_get_plugin_id.html

In a greater view, I suggest that we think next about repositories consistent ID. For now, I'm using the repository url in conjunction with plugin ID to get an unique URI accross different repositories where the same plug-in can be referenced.

Guts commented 5 months ago

FYI @sigeal and @florentfgrs