grafana/public/app/features
Marcus Andersson b63c56903d
Plugins: Extend panel menu with commands from plugins (#63802)
* 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.

* Started to add structure for supporting commands.

* fixed tests.

* adding commands to the registry

* tests: group test cases in describe blocks

* tests: add a little bit more refactoring to the tests

* tests: add a test case for checking correct placements

* feat: first version of the command handler

* feat: register panel menu items with commands

* refactor: make the 'configure' function not optional on `PluginExtensionRegistryItem`

* Wip

* Wip

* Wip

* added test to verify the default configure function.

* added some more tests to verify that commands have the proper error handling for its configure function.

* tests: fix TS errors in tests

* tests: add auxiliary functions

* refactor: small refactoring in tests

* refactor: refactoring tests for registryFactory

* refactor: refactoring tests for registryFactory

* refactor: refactoring tests for registryFactory

* refactor: refactoring tests for registryFactory

* refactor: refactoring tests for registryFactory

* refactor: refactoring tests for registryFactory

* refactor: refactoring tests for registryFactory

* refactor: refactoring tests for registryFactory

* draft of wrapping command handler with error handling.

* refactor: refactoring tests for registryFactory

* added test for edge case.

* replaced the registry item with a configure function.

* renamed the configure function type.

* refactoring of the registryfactory.

* added tests for handler error handling.

* fixed issue with assert function.

* added comment about the limited type.

* Update public/app/features/plugins/extensions/errorHandling.test.ts

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

* Update public/app/features/plugins/extensions/errorHandling.test.ts

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

* Update public/app/features/plugins/extensions/errorHandling.test.ts

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

* added missing tests.

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2023-03-08 14:23:29 +01:00
..
admin Auth: Refactoring of frontend skipOrgRoleSync logic to backend (#62921) 2023-02-08 20:11:46 +00:00
alerting Update dependency msw to v1 (#64281) 2023-03-07 11:17:38 +01:00
annotations Datasources: Use getDefaultQuery in annotations editors (#61870) 2023-01-30 16:45:03 +01:00
api-keys API keys: Remove state hideAPIkeys and refactor interface to IsDisabled (#64018) 2023-03-03 16:12:34 +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 commands from plugins (#63802) 2023-03-08 14:23:29 +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 Feat: Changing link destination for get more plugins (#63517) 2023-03-07 15:16:27 +01:00
dimensions Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
explore Logs: Add millisecond to timestamp in log line (#64372) 2023-03-08 11:39:56 +01:00
expressions Alerting: Fix queries not being previewed in detail view (#64198) 2023-03-06 15:46:55 +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: Add millisecond to timestamp in log line (#64372) 2023-03-08 11:39:56 +01:00
manage-dashboards PublicDashboards: Change disabled label in Audit Table (#64260) 2023-03-06 19:06:34 -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 commands from plugins (#63802) 2023-03-08 14:23:29 +01:00
profile Profile: Fix session table overflowing page layout in mobile (#63858) 2023-03-01 17:08:04 +00:00
query DatasourceVariables: Update query editor when switching datasources from picker (#62617) 2023-03-08 11:24:29 +00: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 Scene: Set maxDataPoints for dashboard scene query runners (#63772) 2023-03-06 11:00:47 +01: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 FieldType: Add enum type and include it in testdata scenarios (#64059) 2023-03-03 13:37:56 -08:00
users Preferences: Add pagination to org configuration page (#60896) 2023-01-09 11:54:33 +03:00
variables OptionsPicker: Correctly highlight template variable value when filtering (#63495) 2023-03-08 03:36:06 -08:00
all.ts Chore: Remove empty and leftover files (#55757) 2022-09-26 11:33:07 -04:00