From 688c51a30620d9b405a31e71785b99562ba72a76 Mon Sep 17 00:00:00 2001 From: kozhuhds Date: Fri, 21 Nov 2025 16:04:59 +0100 Subject: [PATCH] feat(dynamic command palette api): moving the code to command palette folder --- conf/defaults.ini | 41 +- .../commandPalette/CommandPalette.tsx | 42 +- .../commandPalette/actions/useActions.tsx | 13 - .../actions/useDynamicExtensionActions.ts | 138 ++- .../plugins/components/AppRootPage.test.tsx | 2 - .../plugins/components/AppRootPage.tsx | 3 - .../extensions/ExtensionRegistriesContext.tsx | 14 +- .../CommandPaletteDynamicRegistry.test.ts | 922 ------------------ .../registry/CommandPaletteDynamicRegistry.ts | 155 --- .../plugins/extensions/registry/setup.ts | 3 - .../plugins/extensions/registry/types.ts | 2 - .../extensions/usePluginComponent.test.tsx | 2 - .../extensions/usePluginComponents.test.tsx | 2 - .../extensions/usePluginFunctions.test.tsx | 2 - .../extensions/usePluginLinks.test.tsx | 2 - .../plugins/importer/pluginImporter.ts | 2 +- 16 files changed, 148 insertions(+), 1197 deletions(-) delete mode 100644 public/app/features/plugins/extensions/registry/CommandPaletteDynamicRegistry.test.ts delete mode 100644 public/app/features/plugins/extensions/registry/CommandPaletteDynamicRegistry.ts diff --git a/conf/defaults.ini b/conf/defaults.ini index 977d0fa8783..a0a74f3e58f 100644 --- a/conf/defaults.ini +++ b/conf/defaults.ini @@ -23,10 +23,11 @@ temp_data_lifetime = 24h logs = data/log # Directory where grafana will automatically scan and look for plugins -plugins = data/plugins +plugins = ../asserts-app-plugin + # folder that contains provisioning config files that grafana will apply on startup and while running. -provisioning = conf/provisioning +provisioning = ../asserts-app-plugin/provisioning # Directories that are permitted to contain local repositories. # This is a list. Each entry is delimited by a pipe (|). No leading or trailing spaces are supported. @@ -69,7 +70,7 @@ router_logging = false static_root_path = public # enable gzip -enable_gzip = false +enable_gzip = true # https certs & key file cert_file = @@ -394,10 +395,10 @@ disable_ip_address_login_protection = true cookie_secure = false # set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled" -cookie_samesite = lax +cookie_samesite = disabled # set to true if you want to allow browsers to render Grafana in a ,