grafana/public/app/features
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 Auth: Refactoring of frontend skipOrgRoleSync logic to backend (#62921) 2023-02-08 20:11:46 +00:00
alerting Alerting: New notification policies view (#61952) 2023-03-02 13:49:38 +01:00
annotations Datasources: Use getDefaultQuery in annotations editors (#61870) 2023-01-30 16:45:03 +01:00
api-keys Service accounts: Remove Add API keys buttons and remove one state of migrating for API keys tab (#63411) 2023-03-01 15:34:53 +00:00
canvas Canvas: Update server element design (#62832) 2023-02-03 08:59:29 -08:00
commandPalette Command Palette: Sign out link now works correctly (#63742) 2023-03-01 15:59:32 +00:00
comments Chore: fix some types (#58662) 2022-11-11 16:29:49 +00:00
connections Connections: Fix minor issues around Your connections/Data sources page (#63801) 2023-03-01 08:23:08 +01:00
correlations Explore: Add transformations to correlation data links (#61799) 2023-02-22 06:53:03 -06:00
dashboard Plugins: Extend panel menu with links from plugins (#63089) 2023-03-02 15:42:00 +01:00
dataframe-import Dashboard: Add a feature that creates a table panel when a spreadsheet file is dropped on the dashboard. (#62688) 2023-02-09 15:16:17 +01:00
datasource-drawer DataSourcePicker: Add new style of data source picker. (#63736) 2023-03-01 11:26:19 +01:00
datasources Connections: Fix minor issues around Your connections/Data sources page (#63801) 2023-03-01 08:23:08 +01:00
dimensions Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
explore Profiling: Enable flame graph & Phlare/Parca data sources for all users (#63488) 2023-03-01 11:32:39 +00:00
expressions Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
folders AppChrome: Unify logic for chromeless pages that should not have NavBar, CommandPalette, Search etc (#62281) 2023-02-02 09:53:06 +01:00
geo Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
inspector A11y: ignore rule since keyboard interaction is already handled (#62850) 2023-02-08 14:17:15 +00:00
invites Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
library-panels Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
live Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
logs Logs Panel: Refactor style generation to improve rendering performance (#62599) 2023-02-01 14:28:10 +00:00
manage-dashboards PublicDashboards: Email sharing (#63762) 2023-02-28 09:02:23 -03:00
notifications Page: Update profile page components to use new navId (#51664) 2022-07-11 14:35:30 +02:00
org Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
panel Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
playlist Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
plugins Plugins: Extend panel menu with links from plugins (#63089) 2023-03-02 15:42:00 +01:00
profile Profile: Fix session table overflowing page layout in mobile (#63858) 2023-03-01 17:08:04 +00:00
query Plugin query API: Handle multiple errors (#63553) 2023-03-02 11:25:50 +01:00
query-library SVG: Add dompurify preprocessor step (#62143) 2023-01-25 10:37:29 -08:00
runtime Runtime: remove updateLocation from window context (#42857) 2021-12-07 20:01:35 -08:00
sandbox Plugins: Extend panel menu with links from plugins (#63089) 2023-03-02 15:42:00 +01:00
scenes Migrate table to cue model (#61852) 2023-03-01 17:48:36 +02:00
search Search: Include panel_type in query (#63229) 2023-03-01 11:13:09 -08:00
serviceaccounts Service accounts: Remove Add API keys buttons and remove one state of migrating for API keys tab (#63411) 2023-03-01 15:34:53 +00:00
storage chore: remove export service POC from main (#63945) 2023-03-01 12:42:53 -05:00
support-bundles Support bundles: small UX improvements (#63277) 2023-02-11 08:31:03 +00:00
teams Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
templating Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
transformers Transformations: Support time format when converting time to strings (#63826) 2023-03-01 20:00:53 -08:00
users Preferences: Add pagination to org configuration page (#60896) 2023-01-09 11:54:33 +03:00
variables Internationalization: Mark up more of Dashboard Variables and Browse/Search Dashboards (#63518) 2023-02-23 10:46:07 +00:00
all.ts Chore: Remove empty and leftover files (#55757) 2022-09-26 11:33:07 -04:00