Skip to content

Commit

Permalink
Adjust wording in Set up KB message (elastic#173814)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoenWarmer authored Dec 21, 2023
1 parent 9922453 commit 85df7c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function WelcomeMessageKnowledgeBase({
<EuiText color="subdued" size="s">
{i18n.translate(
'xpack.observabilityAiAssistant.welcomeMessageKnowledgeBase.yourKnowledgeBaseIsNotSetUpCorrectlyLabel',
{ defaultMessage: 'Your Knowledge base is not set up correctly' }
{ defaultMessage: `Your Knowledge base hasn't been set up.` }
)}
</EuiText>

Expand All @@ -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',
}
)}
</EuiButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 (
Expand Down

0 comments on commit 85df7c9

Please sign in to comment.