Umer Nasir
06/26/2023, 9:16 AMMoises Morales
06/26/2023, 10:12 AMUmer Nasir
06/26/2023, 10:13 AMUmer Nasir
06/26/2023, 10:15 AMUmer Nasir
06/26/2023, 10:16 AMJan Rehanek
06/26/2023, 12:39 PMJan Rehanek
06/26/2023, 12:39 PMJan Rehanek
06/26/2023, 12:39 PMJan Rehanek
06/26/2023, 12:43 PM<http://janrehanek-public.s3.amazonaws.com|janrehanek-public.s3.amazonaws.com>
If I hosted my plugin there, I would have to include the following CSP for script-src:Jan Rehanek
06/26/2023, 12:43 PMUmer Nasir
06/26/2023, 4:49 PMdist/dashboardPlugin
?Umer Nasir
06/26/2023, 4:49 PMJan Rehanek
06/27/2023, 6:49 AMdist/dashboardPlugin
will be created with some 54 files, give or take. That folder you upload to the S3 bucket. You need to make sure it is accessible to the public.
Once you have it there, you need to get the URL, but not to the folder, but to the .js
file which shares the name of your plugin. For example, if I name my plugin first-plugin
, there’ll be a dp_first_plugin.js
in that folder.Jan Rehanek
06/27/2023, 6:50 AM{{baseUrl}}/api/v1/entities/workspaces/:workspaceId/dashboardPlugins
. You don’t have to do that manually; if you check the plugin toolkit’s README.md file, you’ll see there is a ``npm run add-plugin -- <url>`` command you can use for that.
If you do want to do that manually, you can refer to our API reference where that endpoint is described.Jan Rehanek
06/27/2023, 6:51 AMJan Rehanek
06/27/2023, 6:52 AMUmer Nasir
06/28/2023, 12:02 PMUmer Nasir
06/28/2023, 12:03 PMUmer Nasir
06/28/2023, 12:04 PMJan Rehanek
06/28/2023, 12:10 PM/api/profile
is definitely wrong, as it should be versioned: /api/v1/profile
Umer Nasir
06/28/2023, 12:11 PMUmer Nasir
06/28/2023, 12:11 PMJan Rehanek
06/28/2023, 12:11 PMUmer Nasir
06/28/2023, 12:12 PMUmer Nasir
06/28/2023, 12:13 PMUmer Nasir
06/28/2023, 12:13 PMnpm run gdc-plugins dashboard-plugin add --plugin-url <http://shared-web.s3.amazonaws.com/umer_test/tooltip/dp_tooltip_plugin.js>
Jan Rehanek
06/28/2023, 12:15 PMJan Rehanek
06/28/2023, 12:29 PMnpm run add-plugin
successfully.Jan Rehanek
06/28/2023, 12:29 PM@gooddata/sdk-backend-tiger
alone may be enough.Jan Rehanek
06/28/2023, 12:40 PMUmer Nasir
06/28/2023, 12:40 PMUmer Nasir
06/28/2023, 12:41 PMUmer Nasir
06/28/2023, 12:41 PMUmer Nasir
06/28/2023, 12:41 PMUmer Nasir
06/28/2023, 12:42 PMJan Rehanek
06/28/2023, 12:46 PMgooddata-dashboard-plugins
, that gallery is primarily meant to be used as a starting point for you to develop your own plugins or to see what plugins are capable of in general.
You’re definitely right that we should take a look at it, though I’ll let the SDK team know about it and see what can be done.Petr Dolejsi
06/28/2023, 1:36 PMJan Rehanek
06/28/2023, 2:47 PMUmer Nasir
06/28/2023, 6:00 PMUmer Nasir
06/28/2023, 6:01 PMUmer Nasir
06/28/2023, 6:01 PMJan Rehanek
06/29/2023, 8:18 AMsrc
folder and edit the relevant TypeScript/JSX code to make it do exactly what you’ve designed.
3. I don’t know 100% what you want to use the plugin for. Generally, users want to produce some sort special feature or customization that’s ordinarily not possible with the existing UI. If it is about simply adding tooltips to insights with no added flair, that’s possible without any plugins; that feature has been productized some time ago. See attached pictures:Umer Nasir
06/29/2023, 12:27 PMJan Rehanek
06/29/2023, 12:37 PMgooddata-dashboard-plugins
repo and the versioning issue you’ve run into, I’ve already done everything I can to get that resolved as well.Umer Nasir
06/29/2023, 12:49 PMUmer Nasir
06/29/2023, 12:50 PMUmer Nasir
06/29/2023, 12:50 PMJan Rehanek
06/29/2023, 1:17 PM