From 3f6872d77bd9555d436b426065fb9cc541341b2e Mon Sep 17 00:00:00 2001
From: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
Date: Fri, 13 Oct 2023 17:02:52 +0200
Subject: [PATCH] [Serverless Search] Polish getting started API key copy
(#168683)
Before:
![screenshot_2023-10-11_at_18 39
01_720](https://github.com/elastic/kibana/assets/32779855/70ba50f2-c71c-4f7e-84f3-de3d1d226104)
After:
![after](https://github.com/elastic/kibana/assets/32779855/38deaa82-1b50-400c-bc9b-427a14fec35d)
---------
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
---
.../public/application/components/api_key/api_key.tsx | 4 ++--
.../public/application/components/overview.test.tsx | 2 +-
.../public/application/components/overview.tsx | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/x-pack/plugins/serverless_search/public/application/components/api_key/api_key.tsx b/x-pack/plugins/serverless_search/public/application/components/api_key/api_key.tsx
index 164bdacd5f985..e3aecb517f947 100644
--- a/x-pack/plugins/serverless_search/public/application/components/api_key/api_key.tsx
+++ b/x-pack/plugins/serverless_search/public/application/components/api_key/api_key.tsx
@@ -82,7 +82,7 @@ export const ApiKeyPanel = ({ setClientApiKey }: { setClientApiKey: (value: stri
{i18n.translate('xpack.serverlessSearch.apiKey.panel.title', {
- defaultMessage: 'Prepare an API Key',
+ defaultMessage: 'Add an API Key',
})}
@@ -90,7 +90,7 @@ export const ApiKeyPanel = ({ setClientApiKey }: { setClientApiKey: (value: stri
{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.',
})}
diff --git a/x-pack/plugins/serverless_search/public/application/components/overview.test.tsx b/x-pack/plugins/serverless_search/public/application/components/overview.test.tsx
index 28748db40cedb..3c59d064d72cc 100644
--- a/x-pack/plugins/serverless_search/public/application/components/overview.test.tsx
+++ b/x-pack/plugins/serverless_search/public/application/components/overview.test.tsx
@@ -51,7 +51,7 @@ describe('', () => {
});
test('api key', () => {
const { getByRole } = render();
- 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();
diff --git a/x-pack/plugins/serverless_search/public/application/components/overview.tsx b/x-pack/plugins/serverless_search/public/application/components/overview.tsx
index bff725c88034d..ed29ac4c14802 100644
--- a/x-pack/plugins/serverless_search/public/application/components/overview.tsx
+++ b/x-pack/plugins/serverless_search/public/application/components/overview.tsx
@@ -116,12 +116,12 @@ export const ElasticsearchOverview = () => {
}
links={[]}
title={i18n.translate('xpack.serverlessSearch.apiKey.title', {
- defaultMessage: 'Prepare an API Key',
+ defaultMessage: 'API Key',
})}
/>