From 2bb5e6c2ecc0f68cffcb721976e755d23cb0ee42 Mon Sep 17 00:00:00 2001 From: Jack Baldry Date: Wed, 8 Oct 2025 13:05:58 +0100 Subject: [PATCH] Add support for the future rename of the docs plugin app to Grafana Pathfinder (#111950) --- .../AppChrome/ExtensionSidebar/ExtensionSidebarProvider.tsx | 3 +++ .../AppChrome/ExtensionSidebar/ExtensionToolbarItemButton.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/public/app/core/components/AppChrome/ExtensionSidebar/ExtensionSidebarProvider.tsx b/public/app/core/components/AppChrome/ExtensionSidebar/ExtensionSidebarProvider.tsx index 8b90bd24914..ca5ff926169 100644 --- a/public/app/core/components/AppChrome/ExtensionSidebar/ExtensionSidebarProvider.tsx +++ b/public/app/core/components/AppChrome/ExtensionSidebar/ExtensionSidebarProvider.tsx @@ -14,7 +14,10 @@ const PERMITTED_EXTENSION_SIDEBAR_PLUGINS = [ 'grafana-investigations-app', 'grafana-assistant-app', 'grafana-dash-app', + // The docs plugin ID is going to transition from grafana-grafanadocsplugin-app to grafana-pathfinder-app. + // Support both until that migration is complete. 'grafana-grafanadocsplugin-app', + 'grafana-pathfinder-app', ]; export type ExtensionSidebarContextType = { diff --git a/public/app/core/components/AppChrome/ExtensionSidebar/ExtensionToolbarItemButton.tsx b/public/app/core/components/AppChrome/ExtensionSidebar/ExtensionToolbarItemButton.tsx index 3dcc53730a7..0093a5dd0ef 100644 --- a/public/app/core/components/AppChrome/ExtensionSidebar/ExtensionToolbarItemButton.tsx +++ b/public/app/core/components/AppChrome/ExtensionSidebar/ExtensionToolbarItemButton.tsx @@ -14,7 +14,10 @@ interface ToolbarItemButtonProps { function getPluginIcon(pluginId?: string): string { switch (pluginId) { + // The docs plugin ID is going to transition from grafana-grafanadocsplugin-app to grafana-pathfinder-app. + // Support both until that migration is complete. case 'grafana-grafanadocsplugin-app': + case 'grafana-pathfinder-app': return 'book'; case 'grafana-investigations-app': return 'eye';