grafana/public/app/features/dashboard/utils
Marcus Andersson f1529997f2
Explore: Make toolbar action extendable by plugins (#65524)
* Cleaned up solution and starting to make it work properly.

* will disable add button if no queries available.

* Changed so 'add to dashboard' is registered as an extension in explore.

* moved utility function to utils

* hides button if insufficent permissions.

* Fixed ts issue.

* cleaned up the code and change to using the 'getPluginLinkExtensions'

* Added values to explore context.

* truncating title in menu.

* added tests to verify explore extension point.

* fixed failing tests in explore.

* made excludeModal optional.

* removed temporary fix to force old button.

* reverted generated files.

* fixed according to feedback.

* Update public/app/features/explore/extensions/ToolbarExtensionPoint.test.tsx

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

* Update public/app/features/explore/extensions/ToolbarExtensionPoint.test.tsx

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

* added tests suggested in reviews.

* fixed failing tests after sync with main.

* replaced exploreId type with stirng.

* cleaned up code a bit more.

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2023-06-28 15:42:41 +02:00
..
dashboard.ts New Dashboard: Fix "build a dashboard" when empty dash page feature is enabled (#66816) 2023-04-27 11:11:19 +01:00
getPanelChromeProps.tsx Dashboard: Fix panel description event triggering every time panel is rendered (#68791) 2023-05-22 15:58:42 +02:00
getPanelMenu.test.ts Chore: some type fixes (#69860) 2023-06-20 17:13:49 +01:00
getPanelMenu.ts Explore: Make toolbar action extendable by plugins (#65524) 2023-06-28 15:42:41 +02:00
getRefreshFromUrl.test.ts TimeRange: Fixes updating time range from url and browser history (#48657) 2022-05-04 11:36:15 +02:00
getRefreshFromUrl.ts Dashboards: Support an auto refresh interval that is based on the query range (#70479) 2023-06-26 19:46:23 +03:00
loadSnapshotData.ts ArrayDataFrame: Convert to a simple utility function rather than dynamically loaded values (#67427) 2023-04-27 12:38:19 -07:00
panel.test.ts grafana/data: Move getPanelOptionsWithDefaults from core (#60813) 2022-12-29 05:48:22 -08:00
panel.ts Dashboard: Empty/No Panels dashboard with a new design (#65161) 2023-03-28 12:42:23 +03:00
panelMerge.test.ts Schema: Add schema for role+access policies (#68047) 2023-05-24 10:31:57 -07:00
panelMerge.ts Chore: some type fixes (#69860) 2023-06-20 17:13:49 +01:00
screen.ts PublicDashboard: Add RTK Query with loading and error state. Add MSW dependency for testing. (#55518) 2022-09-22 09:35:04 -03:00
timeRange.ts PublicDashboards: UI improvements (#55130) 2022-09-14 14:35:46 -03:00
tracking.test.ts Chore: Add tracking for dashboard load (#70057) 2023-06-23 14:14:06 +02:00
tracking.ts Chore: Add tracking for dashboard load (#70057) 2023-06-23 14:14:06 +02:00