grafana/public/app/features/dashboard
Marcus Andersson b804b2f073
Plugins: Added hook to make it easier to track interactions in plugins (#56126)
* first stab at context away plugin tracking.

* adding a plugin context and a hook to get hold of a tracker that always appends the plugin context information.

* wip

* improved the code a bit.

* wip

* Fixed type errors.

* added datasource_uid to data sources.

* fixed error message when trying to use hook outside of context.

* small refactoring according to feedback.

* using the correct provider for data source context.

* check not needed.

* enforcing the interaction name to start with grafana_plugin_

* exposing guards for the other context type.

* added structure for writing reporter hook tests.

* added some more tests.

* added tests.

* reverted back to inheritance between context types.

* adding mock for getDataSourceSrv
2022-11-02 16:57:57 +01:00
..
api PublicDashboards: Delete public dashboard in public dashboard table (#57766) 2022-10-31 17:16:07 -04:00
components Plugins: Added hook to make it easier to track interactions in plugins (#56126) 2022-11-02 16:57:57 +01:00
containers Dashboards: Add workaround for react-grid-layout rearrange bug (#57832) 2022-10-28 15:36:37 +01:00
dashgrid Plugins: Added hook to make it easier to track interactions in plugins (#56126) 2022-11-02 16:57:57 +01:00
services PublicDashboards: Fix unsafe code snippets (#57641) 2022-10-25 20:16:10 -04:00
state LibrayPanels: Fix unlinking libray panel (#57825) 2022-11-02 11:38:48 +01:00
utils LibrayPanels: Fix unlinking libray panel (#57825) 2022-11-02 11:38:48 +01:00
index.ts Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
routes.ts Public Dashboards: Add audit table (#54508) 2022-10-12 21:36:05 -08:00