From 85df7c994930c9dccd30e8f30b81d703f5521d34 Mon Sep 17 00:00:00 2001 From: Coen Warmer Date: Thu, 21 Dec 2023 12:03:02 +0100 Subject: [PATCH] Adjust wording in Set up KB message (#173814) --- .../components/chat/welcome_message_knowledge_base.tsx | 6 +++--- .../public/components/feedback_buttons.tsx | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/observability_ai_assistant/public/components/chat/welcome_message_knowledge_base.tsx b/x-pack/plugins/observability_ai_assistant/public/components/chat/welcome_message_knowledge_base.tsx index 849a07b7cabfc..afdbed9ed4c43 100644 --- a/x-pack/plugins/observability_ai_assistant/public/components/chat/welcome_message_knowledge_base.tsx +++ b/x-pack/plugins/observability_ai_assistant/public/components/chat/welcome_message_knowledge_base.tsx @@ -113,7 +113,7 @@ export function WelcomeMessageKnowledgeBase({ {i18n.translate( 'xpack.observabilityAiAssistant.welcomeMessageKnowledgeBase.yourKnowledgeBaseIsNotSetUpCorrectlyLabel', - { defaultMessage: 'Your Knowledge base is not set up correctly' } + { defaultMessage: `Your Knowledge base hasn't been set up.` } )} @@ -127,13 +127,13 @@ export function WelcomeMessageKnowledgeBase({ data-test-subj="observabilityAiAssistantWelcomeMessageSetUpKnowledgeBaseButton" fill isLoading={checkForInstallStatus} - iconType="refresh" + iconType="importAction" onClick={handleRetryInstall} > {i18n.translate( 'xpack.observabilityAiAssistant.welcomeMessage.retryButtonLabel', { - defaultMessage: 'Retry install', + defaultMessage: 'Install Knowledge base', } )} diff --git a/x-pack/plugins/observability_ai_assistant/public/components/feedback_buttons.tsx b/x-pack/plugins/observability_ai_assistant/public/components/feedback_buttons.tsx index 2187817e7228e..6315d493078c5 100644 --- a/x-pack/plugins/observability_ai_assistant/public/components/feedback_buttons.tsx +++ b/x-pack/plugins/observability_ai_assistant/public/components/feedback_buttons.tsx @@ -16,6 +16,11 @@ interface FeedbackButtonsProps { onClickFeedback: (feedback: Feedback) => void; } +const THANK_YOU_MESSAGE = i18n.translate( + 'xpack.observabilityAiAssistant.feedbackButtons.em.thanksForYourFeedbackLabel', + { defaultMessage: 'Thanks for your feedback' } +); + export function FeedbackButtons({ onClickFeedback }: FeedbackButtonsProps) { const { notifications } = useKibana().services; @@ -24,13 +29,13 @@ export function FeedbackButtons({ onClickFeedback }: FeedbackButtonsProps) { const handleClickPositive = () => { onClickFeedback('positive'); setHasBeenClicked(true); - notifications.toasts.addSuccess('Thanks for your feedback!'); + notifications.toasts.addSuccess(THANK_YOU_MESSAGE); }; const handleClickNegative = () => { onClickFeedback('negative'); setHasBeenClicked(true); - notifications.toasts.addSuccess('Thanks for your feedback!'); + notifications.toasts.addSuccess(THANK_YOU_MESSAGE); }; return (