Search: Change copy to Search with Grafana Assistant (#113609)

This commit is contained in:
Sven Grossmann
2025-11-07 16:27:19 +00:00
committed by GitHub
parent 3d8da61569
commit 62129bb91f
3 changed files with 4 additions and 4 deletions
@@ -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();
});
});
@@ -189,7 +189,7 @@ const RenderResults = ({ isFetchingSearchResults, searchResults, searchQuery }:
<OpenAssistantButton
origin="grafana/command-palette-empty-state"
prompt={`Search for ${searchQuery}`}
title={t('command-palette.empty-state.button-title', 'Try searching with Grafana Assistant')}
title={t('command-palette.empty-state.button-title', 'Search with Grafana Assistant')}
onClick={query.toggle}
/>
)}
+1 -1
View File
@@ -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": {