grafana/pkg/plugins/manager/testdata
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
..
app-with-child/dist fix and add test (#44286) 2022-01-21 11:00:20 +01:00
cdn/plugin Plugins: Allow loading panel plugins from a CDN (#59096) 2023-01-27 15:08:17 +01:00
disallowed-cue-import Kindsys: Unify plugins, pfs with kind framework (#61192) 2023-01-20 09:41:35 +00:00
duplicate-plugins/nested Plugins: Enforce signing for all plugins (#34364) 2021-05-19 15:42:50 +02:00
includes-symlinks Plugins: Ignore symlinked folders when verifying plugin signature (#34434) 2021-06-15 11:55:47 +02:00
installer/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
invalid-plugin-json Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
invalid-v1-signature/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
invalid-v2-extra-file/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
invalid-v2-missing-file/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
lacking-files/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
missing-kind-datasource Kindsys: Unify plugins, pfs with kind framework (#61192) 2023-01-20 09:41:35 +00:00
name-mismatch-panel Kindsys: Unify plugins, pfs with kind framework (#61192) 2023-01-20 09:41:35 +00:00
nested-plugins/parent plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
no-rootfile plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
non-pvt-with-root-url/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
panel-conflicting-joinschema Kindsys: Unify plugins, pfs with kind framework (#61192) 2023-01-20 09:41:35 +00:00
panel-does-not-follow-slot-joinschema Kindsys: Unify plugins, pfs with kind framework (#61192) 2023-01-20 09:41:35 +00:00
renderer-added-file/plugin Plugins: Unsigned chromium file should not invalidate signature for Renderer plugin (#59104) 2022-12-19 12:46:27 +01:00
symbolic-plugin-dirs Plugins: fix test with bad symlink target (#35737) 2021-06-15 13:53:09 +02:00
test-app Plugins: Enforce signing for all plugins (#34364) 2021-05-19 15:42:50 +02:00
test-app-with-includes Plugins: Fix Default Nav URL for dashboard includes (#47143) 2022-04-06 10:50:39 +02:00
test-app-with-roles RBAC: remove redundant role name field from plugin role registrations (#58166) 2022-11-15 09:51:40 +01:00
unsigned-datasource/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
unsigned-panel/plugin Plugins: Enforce signing for all plugins (#34364) 2021-05-19 15:42:50 +02:00
valid-model-datasource Kindsys: Unify plugins, pfs with kind framework (#61192) 2023-01-20 09:41:35 +00:00
valid-model-panel Kindsys: Unify plugins, pfs with kind framework (#61192) 2023-01-20 09:41:35 +00:00
valid-v2-pvt-signature/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
valid-v2-pvt-signature-root-url-uri/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
valid-v2-signature/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00