grafana/public/app/features/plugins
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
..
__mocks__ Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
admin Plugins: Added hook to make it easier to track interactions in plugins (#56126) 2022-11-02 16:57:57 +01:00
components Chore: Remove unused files (#57515) 2022-10-25 23:34:53 +01:00
sql PostgreSQL: Migrate to React (#52831) 2022-11-02 11:30:35 +07:00
tests Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
all.ts Angular: More isolation and removing of unused components (#41630) 2021-11-15 15:12:45 +01:00
built_in_plugins.ts Profiling: Add Phlare and Parca datasources (#57809) 2022-10-28 13:33:37 +02:00
datasource_srv.ts Dashboard: Reverted the changes of hiding multi-select and all variable in the datasource picker (#53521) 2022-08-10 15:30:00 +02:00
importPanelPlugin.ts PanelRenderer: Improves PanelRenderer performance (#51092) 2022-06-20 14:41:39 +02:00
plugin_loader.ts Plugins: Expose emotion/react to plugins to prevent load failures (#55297) 2022-09-19 16:54:13 +02:00
pluginCacheBuster.ts fix(40639): datasource should not be visible after uninstall (#43625) 2022-01-07 09:54:02 +01:00
pluginPreloader.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
pluginSettings.test.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
pluginSettings.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
utils.test.ts Page: Pages that have hideFromBreadcrumbs set to true should not be added to page Title (#56596) 2022-10-10 12:47:04 +02:00
utils.ts Page: Pages that have hideFromBreadcrumbs set to true should not be added to page Title (#56596) 2022-10-10 12:47:04 +02:00