Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.6] [Guided onboarding] Copy update for error handling and loading state (#145748) #145823

Merged
merged 1 commit into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const GuidePanel = ({ api, application, notifications }: GuidePanelProps)
} catch (error) {
notifications.toasts.addDanger({
title: i18n.translate('guidedOnboarding.dropdownPanel.stepHandlerError', {
defaultMessage: 'Unable to update the guide. Please try again later.',
defaultMessage: 'Unable to update the guide. Wait a moment and try again.',
}),
text: error.message,
});
Expand All @@ -138,7 +138,7 @@ export const GuidePanel = ({ api, application, notifications }: GuidePanelProps)
} catch (error) {
notifications.toasts.addDanger({
title: i18n.translate('guidedOnboarding.dropdownPanel.completeGuideError', {
defaultMessage: 'Unable to update the guide. Please try again later.',
defaultMessage: 'Unable to update the guide. Wait a moment and try again.',
}),
text: error.message,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const QuitGuideModal = ({
setIsLoading(false);
notifications.toasts.addDanger({
title: i18n.translate('guidedOnboarding.quitGuideModal.deactivateGuideError', {
defaultMessage: 'Unable to update the guide. Please try again later.',
defaultMessage: 'Unable to update the guide. Wait a moment and try again.',
}),
text: error.message,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const GettingStarted = () => {
} catch (err) {
getServices().toastNotifications.addDanger({
title: i18n.translate('home.guidedOnboarding.gettingStarted.activateGuide.errorMessage', {
defaultMessage: 'Unable to start the guide. Please try again later.',
defaultMessage: 'Unable to start the guide. Wait a moment and try again.',
}),
text: err.message,
});
Expand All @@ -134,7 +134,7 @@ export const GettingStarted = () => {
body={
<EuiText color="subdued">
{i18n.translate('home.guidedOnboarding.gettingStarted.loadingIndicator', {
defaultMessage: 'Loading setup guide state...',
defaultMessage: 'Loading the guide state...',
})}
</EuiText>
}
Expand All @@ -151,15 +151,15 @@ export const GettingStarted = () => {
title={
<h2>
{i18n.translate('home.guidedOnboarding.gettingStarted.errorSectionTitle', {
defaultMessage: 'Unable to load guide state',
defaultMessage: 'Unable to load the guide state',
})}
</h2>
}
body={
<>
<EuiText color="subdued">
{i18n.translate('home.guidedOnboarding.gettingStarted.errorSectionDescription', {
defaultMessage: 'There was an error loading the guide state. Try again later.',
defaultMessage: `The guide couldn't be loaded. Wait a moment and try again.`,
})}
</EuiText>
<EuiSpacer />
Expand Down