Skip to content

Commit

Permalink
[Serverless Search] Polish getting started API key copy (#168683)
Browse files Browse the repository at this point in the history
  • Loading branch information
leemthompo and kibanamachine authored Oct 13, 2023
1 parent c227785 commit 3f6872d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ export const ApiKeyPanel = ({ setClientApiKey }: { setClientApiKey: (value: stri
<EuiTitle size="xs">
<h3>
{i18n.translate('xpack.serverlessSearch.apiKey.panel.title', {
defaultMessage: 'Prepare an API Key',
defaultMessage: 'Add an API Key',
})}
</h3>
</EuiTitle>
<EuiSpacer size="s" />
<EuiText size="s">
{i18n.translate('xpack.serverlessSearch.apiKey.panel.description', {
defaultMessage:
'An API key is a private, unique identifier for authentication and authorization.',
'Use an existing key, or create a new one and copy it somewhere safe.',
})}
</EuiText>
<EuiSpacer size="l" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('<Overview />', () => {
});
test('api key', () => {
const { getByRole } = render(<Overview />);
expect(getByRole('heading', { level: 2, name: 'Prepare an API Key' })).toBeDefined();
expect(getByRole('heading', { level: 2, name: 'API Key' })).toBeDefined();
});
test('cloud id', () => {
const { getByRole } = render(<Overview />);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ export const ElasticsearchOverview = () => {
<OverviewPanel
description={i18n.translate('xpack.serverlessSearch.apiKey.description', {
defaultMessage:
"You'll need a private API key to securely connect to your project. Use an existing key, or create a new one and copy it somewhere safe.",
"An API key is a private, unique identifier for authentication and authorization. You'll need an API key to securely connect to your project.",
})}
leftPanelContent={<ApiKeyPanel setClientApiKey={setClientApiKey} />}
links={[]}
title={i18n.translate('xpack.serverlessSearch.apiKey.title', {
defaultMessage: 'Prepare an API Key',
defaultMessage: 'API Key',
})}
/>
</EuiPageTemplate.Section>
Expand Down

0 comments on commit 3f6872d

Please sign in to comment.