grafana/public
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 Plugins: Extend panel menu with links from plugins (#63089) 2023-03-02 15:42:00 +01:00
dashboards Chore: Update version of @grafana/eslint-config (#53403) 2022-08-08 15:19:15 +01:00
emails SMTP: Update email templates to include populated <title> tag (#61430) 2023-01-30 16:56:23 -05:00
fonts Theme: Use Inter font by default (#59544) 2022-12-01 11:59:37 +00:00
gazetteer Geomap: Add GeoJSON gazetteer (#40589) 2021-10-19 21:05:55 -07:00
img Alerting: Landing page v2 (#61600) 2023-01-18 12:40:09 +01:00
lib AzureMonitor: Kusto language support (#33528) 2021-05-11 16:48:59 +02:00
locales Internationalization: Mark up more of Dashboard Variables and Browse/Search Dashboards (#63518) 2023-02-23 10:46:07 +00:00
maps Geomap: include sample geojson files (#39057) 2021-09-10 09:05:03 -07:00
sass Accessibility: Make row actions keyboard accessible (#63367) 2023-02-23 15:20:59 +00:00
test AppChrome: Unify logic for chromeless pages that should not have NavBar, CommandPalette, Search etc (#62281) 2023-02-02 09:53:06 +01:00
testdata MarketTrend: add new alpha panel (#40909) 2021-11-05 18:01:26 -07:00
vendor Plugins: Allow loading panel plugins from a CDN (#59096) 2023-01-27 15:08:17 +01:00
views Preferences: Add theme preference to match system theme (#61986) 2023-01-30 10:51:51 +01:00
api-merged.json Alerting: Add endpoint for querying state history (#62166) 2023-02-02 11:34:00 -06:00
openapi3.json Swagger: Fix circular reference (#62673) 2023-02-02 13:18:04 +02:00
robots.txt