grafana/public/app/features/plugins
Jack Westbrook 8c8f584b41
Plugins: Extend panel menu with links from plugins (#63089)
* feat(plugins): introduce dashboard panel menu placement for adding menu items

* test: add test for getPanelMenu()

* added an unique identifier for each extension.

* added context to getPluginExtensions.

* wip

* Wip

* wiwip

* Wip

* feat: WWWIIIIPPPP 🧨

* Wip

* Renamed some of the types to align a bit better.

* added limit to how many extensions a plugin can register per placement.

* decreased number of items to 2

* will trim the lenght of titles to max 25 chars.

* wrapping configure function with error handling.

* added error handling for all scenarios.

* moved extension menu items to the bottom of the more sub menu.

* added tests for configuring the title.

* minor refactorings.

* changed so you need to specify the full path in package.json.

* wip

* removed unused type.

* big refactor to make things simpler and to centralize all configure error/validation handling.

* added missing import.

* fixed failing tests.

* fixed tests.

* revert(extensions): remove static extensions config in favour of registering via AppPlugin APIs

* removed the compose that didn't work for some reason.

* added tests just to verify that validation and error handling is tied together in configuration function.

* adding some more values to the context.

* draft validation.

* added missing tests for getPanelMenu.

* added more tests.

* refactor(extensions): move logic for validating extension link config to function

* Fixed ts errors.

* Update packages/grafana-data/src/types/app.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Update packages/grafana-runtime/src/services/pluginExtensions/extensions.test.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* refactor(extensions): rename limiter -> pluginPlacementCount

* refactor(getpanelmenu): remove redundant continue statement

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2023-03-02 15:42:00 +01:00
..
admin Nav: Handle app plugin installation/uninstallation (#63706) 2023-03-02 09:50:01 +01:00
components Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
extensions Plugins: Extend panel menu with links from plugins (#63089) 2023-03-02 15:42:00 +01:00
sql MySQL: Quote identifiers that include special characters (#61135) 2023-01-31 18:16:28 +01:00
systemjsPlugins Plugins: Fix plugins CDN not working when plugins are not in domain's root path (#63202) 2023-02-24 14:28:13 +01:00
tests Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +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 Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00: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: Allow loading panel plugins from a CDN (#59096) 2023-01-27 15:08:17 +01:00
pluginPreloader.ts Plugins: Extend panel menu with links from plugins (#63089) 2023-03-02 15:42:00 +01:00
pluginSettings.test.ts Alerting: Declare incident from a firing alert (#61178) 2023-01-11 11:52:20 +00:00
pluginSettings.ts Alerting: Declare incident from a firing alert (#61178) 2023-01-11 11:52:20 +00:00
routes.tsx Plugins: Case-sensitive routes for standalone pages (#62779) 2023-02-03 09:01:34 +01:00
utils.test.ts Navigation: Fix finding the active nav item for plugins (#62123) 2023-01-26 14:10:09 +00:00
utils.ts Navigation: Fix finding the active nav item for plugins (#62123) 2023-01-26 14:10:09 +00:00