From 62129bb91f9bc0883cf9591a9892763239101315 Mon Sep 17 00:00:00 2001 From: Sven Grossmann Date: Fri, 7 Nov 2025 17:27:19 +0100 Subject: [PATCH] Search: Change copy to `Search with Grafana Assistant` (#113609) --- public/app/features/commandPalette/CommandPalette.test.tsx | 4 ++-- public/app/features/commandPalette/CommandPalette.tsx | 2 +- public/locales/en-US/grafana.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/app/features/commandPalette/CommandPalette.test.tsx b/public/app/features/commandPalette/CommandPalette.test.tsx index 02cdd308229..eeedeacc5a5 100644 --- a/public/app/features/commandPalette/CommandPalette.test.tsx +++ b/public/app/features/commandPalette/CommandPalette.test.tsx @@ -44,7 +44,7 @@ describe('CommandPalette', () => { // Check if empty state message is rendered expect(await screen.findByText('No results found')).toBeInTheDocument(); // Check if AI Assistant button is rendered with correct props - expect(screen.getByRole('button', { name: 'Try searching with Grafana Assistant' })).toBeInTheDocument(); + expect(screen.getByRole('button', { name: 'Search with Grafana Assistant' })).toBeInTheDocument(); }); it('should render empty state without AI Assistant button when assistant is not available', async () => { @@ -55,6 +55,6 @@ describe('CommandPalette', () => { // Check if empty state message is rendered expect(await screen.findByText('No results found')).toBeInTheDocument(); // Check that AI Assistant button is not rendered - expect(screen.queryByRole('button', { name: 'Try searching with Grafana Assistant' })).not.toBeInTheDocument(); + expect(screen.queryByRole('button', { name: 'Search with Grafana Assistant' })).not.toBeInTheDocument(); }); }); diff --git a/public/app/features/commandPalette/CommandPalette.tsx b/public/app/features/commandPalette/CommandPalette.tsx index d51b238a569..2c223f4f1a6 100644 --- a/public/app/features/commandPalette/CommandPalette.tsx +++ b/public/app/features/commandPalette/CommandPalette.tsx @@ -189,7 +189,7 @@ const RenderResults = ({ isFetchingSearchResults, searchResults, searchQuery }: )} diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 79ae2cc323e..6c9cb73d689 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -4130,7 +4130,7 @@ "scopes": "Scopes" }, "empty-state": { - "button-title": "Try searching with Grafana Assistant", + "button-title": "Search with Grafana Assistant", "message": "No results found" }, "scopes": {