[Security solution] Guided onboarding, security tour copy changes (#146061)

This commit is contained in:
Steph Milovic 2022-11-29 10:24:26 -07:00 committed by GitHub
parent b150abca45
commit d1e3430dbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 52 additions and 54 deletions

View file

@ -37,7 +37,7 @@ exports[`guide card snapshots should render use case card component for search 1
exports[`guide card snapshots should render use case card component for security 1`] = `
<UseCaseCard
addBasePath={[MockFunction]}
description="Defend your environment against threats by unifying SIEM, endpoint security, and cloud security."
description="Investigate threats and get your SIEM up and running by installing the Elastic Defend integration."
footer={
<GuideCardFooter
activateGuide={[MockFunction]}

View file

@ -62,7 +62,7 @@ const constants: GuideCardConstants = {
'guidedOnboardingPackage.gettingStarted.guideCard.security.cardDescription',
{
defaultMessage:
'Defend your environment against threats by unifying SIEM, endpoint security, and cloud security.',
'Investigate threats and get your SIEM up and running by installing the Elastic Defend integration.',
}
),
},

View file

@ -43,7 +43,7 @@ const constants: UseCaseConstants = {
betaBadgeLabel: i18n.translate(
'guidedOnboardingPackage.gettingStarted.security.betaBadgeLabel',
{
defaultMessage: 'security',
defaultMessage: 'protect',
}
),
},

View file

@ -50,7 +50,9 @@ export const GuideButtonPopover = ({
</EuiTitle>
)}
<EuiSpacer />
<EuiText style={{ width: 300 }}>{description && <p>{description}</p>}</EuiText>
<EuiText size="s" style={{ width: 300 }}>
{description && <p>{description}</p>}
</EuiText>
</EuiPopover>
);
};

View file

@ -19,7 +19,7 @@ export const securityConfig: GuideConfig = {
path: '/dashboards',
},
description: i18n.translate('guidedOnboarding.securityGuide.description', {
defaultMessage: `We'll help you get set up quickly, using Elastic's out-of-the-box integrations.`,
defaultMessage: `We'll help you get set up quickly, using Elastic Defend.`,
}),
steps: [
{
@ -29,10 +29,10 @@ export const securityConfig: GuideConfig = {
}),
descriptionList: [
i18n.translate('guidedOnboarding.securityGuide.addDataStep.description1', {
defaultMessage: 'Select the Elastic Defend integration to add your data.',
defaultMessage: 'Use Elastic Defend to add your data.',
}),
i18n.translate('guidedOnboarding.securityGuide.addDataStep.description2', {
defaultMessage: 'Make sure your data looks good.',
defaultMessage: 'See data coming in to your SIEM.',
}),
],
integration: 'endpoint',
@ -48,10 +48,10 @@ export const securityConfig: GuideConfig = {
}),
descriptionList: [
i18n.translate('guidedOnboarding.securityGuide.rulesStep.description1', {
defaultMessage: 'Load the prebuilt rules.',
defaultMessage: 'Load the Elastic prebuilt rules.',
}),
i18n.translate('guidedOnboarding.securityGuide.rulesStep.description2', {
defaultMessage: 'Select the rules that you want.',
defaultMessage: 'Select and enable rules.',
}),
i18n.translate('guidedOnboarding.securityGuide.rulesStep.description3', {
defaultMessage: 'Enable rules to generate alerts.',
@ -59,12 +59,12 @@ export const securityConfig: GuideConfig = {
],
manualCompletion: {
title: i18n.translate('guidedOnboarding.securityGuide.rulesStep.manualCompletion.title', {
defaultMessage: 'Continue with the tour',
defaultMessage: 'Continue with the guide',
}),
description: i18n.translate(
'guidedOnboarding.securityGuide.rulesStep.manualCompletion.description',
{
defaultMessage: 'After youve enabled the rules you want, click here to continue.',
defaultMessage: 'After youve enabled the rules you need, continue.',
}
),
},
@ -92,12 +92,12 @@ export const securityConfig: GuideConfig = {
},
manualCompletion: {
title: i18n.translate('guidedOnboarding.securityGuide.alertsStep.manualCompletion.title', {
defaultMessage: 'Continue with the tour',
defaultMessage: 'Continue the guide',
}),
description: i18n.translate(
'guidedOnboarding.securityGuide.alertsStep.manualCompletion.description',
{
defaultMessage: `After you've explored the case you created, click here to continue.`,
defaultMessage: `After you've explored the case, continue.`,
}
),
},

View file

@ -20,7 +20,7 @@ const getTourConfig = (packageKey: string, tourType: TourType) => {
}),
description: i18n.translate('xpack.fleet.guidedOnboardingTour.endpointButton.description', {
defaultMessage:
'In just a few steps, configure your data with our recommended defaults. You can change this later.',
'In just a few steps, add your data with our recommended defaults. You can change this later.',
}),
};
}
@ -31,7 +31,7 @@ const getTourConfig = (packageKey: string, tourType: TourType) => {
defaultMessage: 'Select Elastic Defend',
}),
description: i18n.translate('xpack.fleet.guidedOnboardingTour.endpointCard.description', {
defaultMessage: 'The best way to get data quickly in to your SIEM.',
defaultMessage: 'The best way to get data quickly into your SIEM.',
}),
};
}
@ -45,7 +45,7 @@ const getTourConfig = (packageKey: string, tourType: TourType) => {
'xpack.fleet.guidedOnboardingTour.kubernetesButton.tourDescription',
{
defaultMessage:
'In just a few steps, configure your data with our recommended defaults. You can change this later.',
'In just a few steps, add your data with our recommended defaults. You can change this later.',
}
),
};
@ -97,7 +97,7 @@ export const WithGuidedOnboardingTour: FunctionComponent<{
footerAction={
<EuiButton onClick={() => setIsGuidedOnboardingTourOpen(false)} size="s" color="success">
{i18n.translate('xpack.fleet.guidedOnboardingTour.nextButtonLabel', {
defaultMessage: 'Got it',
defaultMessage: 'Continue',
})}
</EuiButton>
}

View file

@ -27,13 +27,13 @@ It was important that the `EuiTourStep` **anchor** is in the DOM when the tour s
...defaultConfig,
step: 1,
title: i18n.translate('xpack.securitySolution.guided_onboarding.tour.ruleNameStep.tourTitle', {
defaultMessage: 'Test alert for practice',
defaultMessage: 'Examine the Alerts Table',
}),
content: i18n.translate(
'xpack.securitySolution.guided_onboarding.tour.ruleNameStep.tourContent',
{
defaultMessage:
'To help you practice triaging alerts, we enabled a rule to create your first alert.',
'To help you practice triaging alerts, here is the alert from the rule that we enabled in the previous step.',
}
),
anchorPosition: 'downCenter',

View file

@ -64,13 +64,13 @@ const alertsCasesConfig: StepConfig[] = [
...defaultConfig,
step: AlertsCasesTourSteps.pointToAlertName,
title: i18n.translate('xpack.securitySolution.guided_onboarding.tour.ruleNameStep.tourTitle', {
defaultMessage: 'Test alert for practice',
defaultMessage: 'Examine the Alerts Table',
}),
content: i18n.translate(
'xpack.securitySolution.guided_onboarding.tour.ruleNameStep.tourContent',
{
defaultMessage:
'To help you practice triaging alerts, we enabled a rule to create your first alert.',
'To help you practice triaging alerts, here is the alert from the rule that we enabled in the previous step.',
}
),
anchorPosition: 'downCenter',
@ -105,8 +105,7 @@ const alertsCasesConfig: StepConfig[] = [
content: i18n.translate(
'xpack.securitySolution.guided_onboarding.tour.flyoutOverview.tourContent',
{
defaultMessage:
'Learn more about alerts by checking out all the information available on each tab.',
defaultMessage: 'Learn more about alerts by checking out all the information available.',
}
),
// needs to use anchor to properly place tour step
@ -128,7 +127,7 @@ const alertsCasesConfig: StepConfig[] = [
defaultMessage: 'Create a case',
}),
content: i18n.translate('xpack.securitySolution.guided_onboarding.tour.addToCase.tourContent', {
defaultMessage: 'From the Take action menu, add the alert to a new case.',
defaultMessage: 'From the Take action menu, select "Add to new case".',
}),
anchorPosition: 'upRight',
dataTestSubj: getTourAnchor(AlertsCasesTourSteps.addAlertToCase, SecurityStepId.alertsCases),
@ -137,12 +136,12 @@ const alertsCasesConfig: StepConfig[] = [
...defaultConfig,
step: AlertsCasesTourSteps.createCase,
title: i18n.translate('xpack.securitySolution.guided_onboarding.tour.createCase.tourTitle', {
defaultMessage: `Add details`,
defaultMessage: `Add Case details`,
}),
content: i18n.translate(
'xpack.securitySolution.guided_onboarding.tour.createCase.tourContent',
{
defaultMessage: `In addition to the alert, you can add any relevant information you need to the case.`,
defaultMessage: `Provide the relevant information to create the case. We have included sample text for you.`,
}
),
anchor: `[tour-step="create-case-flyout"] label`,
@ -155,12 +154,12 @@ const alertsCasesConfig: StepConfig[] = [
...defaultConfig,
step: AlertsCasesTourSteps.submitCase,
title: i18n.translate('xpack.securitySolution.guided_onboarding.tour.submitCase.tourTitle', {
defaultMessage: `Submit case`,
defaultMessage: `Create a case`,
}),
content: i18n.translate(
'xpack.securitySolution.guided_onboarding.tour.submitCase.tourContent',
{
defaultMessage: `Press Create case to advance the tour.`,
defaultMessage: `Press "Create case" to continue.`,
}
),
anchor: `[tour-step="create-case-flyout"] [tour-step="create-case-submit"]`,
@ -178,22 +177,22 @@ const alertsCasesConfig: StepConfig[] = [
defaultMessage: 'View the case',
}),
content: i18n.translate('xpack.securitySolution.guided_onboarding.tour.viewCase.tourContent', {
defaultMessage: 'From the Insights, click through to view the new case',
defaultMessage: 'Cases are shown under Insights, in the alert details.',
}),
anchorPosition: 'leftUp',
anchorPosition: 'rightUp',
dataTestSubj: getTourAnchor(AlertsCasesTourSteps.viewCase, SecurityStepId.alertsCases),
},
];
export const sampleCase = {
title: i18n.translate('xpack.securitySolution.guided_onboarding.tour.createCase.title', {
defaultMessage: `Demo signal detected`,
defaultMessage: `This is a test case`,
}),
description: i18n.translate(
'xpack.securitySolution.guided_onboarding.tour.createCase.description',
{
defaultMessage:
"This is where you'd document a malicious signal. You can include whatever information is relevant to the case and would be helpful for anyone else that needs to read up on it. `Markdown` **formatting** _is_ [supported](https://www.markdownguide.org/cheat-sheet/).",
'Add a description and other relevant information. The alert will be added to the case.',
}
),
};

View file

@ -33,6 +33,7 @@ export const SIEM_CTA = i18n.translate(
defaultMessage: 'Add security integrations',
}
);
export const ENDPOINT_TITLE = i18n.translate(
'xpack.securitySolution.overview.landingCards.box.endpoint.title',
{

View file

@ -143,7 +143,7 @@ export const RulesManagementTour = () => {
)}
{isSearchFirstRuleAnchorMounted && demoRule && (
<EuiTourStep
title={i18n.SEARCH_FIRST_RULE_TITLE(demoRule.name)}
title={i18n.SEARCH_FIRST_RULE_TITLE}
content={i18n.SEARCH_FIRST_RULE_CONTENT(demoRule.name)}
onFinish={noop}
step={2}
@ -152,7 +152,7 @@ export const RulesManagementTour = () => {
anchor={`#${SEARCH_FIRST_RULE_ANCHOR}`}
anchorPosition="upCenter"
footerAction={
<EuiButton size="s" color="success" fill onClick={findDemoRule}>
<EuiButton size="s" color="success" onClick={findDemoRule}>
{i18n.NEXT_BUTTON}
</EuiButton>
}
@ -160,7 +160,7 @@ export const RulesManagementTour = () => {
)}
{isActivateFirstRuleAnchorMounted && demoRule && (
<EuiTourStep
title={i18n.ENABLE_FIRST_RULE_TITLE(demoRule.name)}
title={i18n.ENABLE_FIRST_RULE_TITLE}
content={i18n.ENABLE_FIRST_RULE_CONTENT(demoRule.name)}
onFinish={noop}
step={3}
@ -169,7 +169,7 @@ export const RulesManagementTour = () => {
anchor={`#${ruleSwitchAnchor}`}
anchorPosition="upCenter"
footerAction={
<EuiButton size="s" color="success" fill onClick={enableDemoRule}>
<EuiButton size="s" color="success" onClick={enableDemoRule}>
{i18n.NEXT_BUTTON}
</EuiButton>
}

View file

@ -21,38 +21,34 @@ export const INSTALL_PREBUILT_RULES_CONTENT = i18n.translate(
}
);
export const SEARCH_FIRST_RULE_TITLE = (name: string) =>
i18n.translate(
'xpack.securitySolution.detectionEngine.rules.guidedOnboarding.searchFirstRule.title',
{
defaultMessage: 'Search for "{name}" rule',
values: { name },
}
);
export const SEARCH_FIRST_RULE_TITLE = i18n.translate(
'xpack.securitySolution.detectionEngine.rules.guidedOnboarding.searchFirstRule.title',
{
defaultMessage: 'Find your first rule',
}
);
export const SEARCH_FIRST_RULE_CONTENT = (name: string) =>
i18n.translate(
'xpack.securitySolution.detectionEngine.rules.guidedOnboarding.searchFirstRule.content',
{
defaultMessage: 'Find the "{name}" rule.',
defaultMessage: 'Search for "{name}" or click next.',
values: { name },
}
);
export const ENABLE_FIRST_RULE_TITLE = (name: string) =>
i18n.translate(
'xpack.securitySolution.detectionEngine.rules.guidedOnboarding.enableFirstRule.title',
{
defaultMessage: 'Enable "{name}" rule',
values: { name },
}
);
export const ENABLE_FIRST_RULE_TITLE = i18n.translate(
'xpack.securitySolution.detectionEngine.rules.guidedOnboarding.enableFirstRule.title',
{
defaultMessage: 'Enable the rule',
}
);
export const ENABLE_FIRST_RULE_CONTENT = (name: string) =>
i18n.translate(
'xpack.securitySolution.detectionEngine.rules.guidedOnboarding.enableFirstRule.content',
{
defaultMessage: 'Enable the "{name}" rule.',
defaultMessage: 'Enable "{name}" or click next.',
values: { name },
}
);