Added redirect option after Entity CSV upload (#197937)

## Summary

Added a redirect button to view Entities after a successful Asset
Criticality CSV file upload process

Additionally, made some small changes to the copy for the Entity Store
management workflows

<img width="1490" alt="Screenshot 2024-10-27 at 9 49 17 PM"
src="https://github.com/user-attachments/assets/77b587b7-8300-40ae-adc2-5119aa5f39ab">

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Jared Burgett 2024-10-28 16:00:06 -05:00 committed by GitHub
parent e65a08cc91
commit be6708bffc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 6 deletions

View file

@ -7,6 +7,7 @@
import {
EuiButtonEmpty,
EuiButton,
EuiCallOut,
EuiCodeBlock,
EuiFlexGroup,
@ -17,7 +18,8 @@ import {
import React from 'react';
import { FormattedMessage } from '@kbn/i18n-react';
import { css } from '@emotion/react';
import type { BulkUpsertAssetCriticalityRecordsResponse } from '../../../../../common/entity_analytics/asset_criticality/types';
import { SecurityPageName } from '@kbn/deeplinks-security';
import type { BulkUpsertAssetCriticalityRecordsResponse } from '../../../../../common/api/entity_analytics';
import { buildAnnotationsFromError } from '../helpers';
import { ScheduleRiskEngineCallout } from './schedule_risk_engine_callout';
@ -61,7 +63,7 @@ export const AssetCriticalityResultStep: React.FC<{
data-test-subj="asset-criticality-result-step-success"
title={
<FormattedMessage
defaultMessage="success"
defaultMessage="Success"
id="xpack.securitySolution.entityAnalytics.assetCriticalityResultStep.successTitle"
/>
}
@ -69,9 +71,18 @@ export const AssetCriticalityResultStep: React.FC<{
iconType="checkInCircleFilled"
>
<FormattedMessage
defaultMessage="Your asset criticality levels have been assigned."
defaultMessage="Your asset criticality levels have been assigned. Note that your assignments can take a few moments to populate."
id="xpack.securitySolution.entityAnalytics.assetCriticalityResultStep.successMessage"
/>
<EuiSpacer size="s" />
<EuiButton href={SecurityPageName.entityAnalytics} color="success" isDisabled={false}>
{
<FormattedMessage
defaultMessage="View asset criticality assignments."
id="xpack.securitySolution.entityAnalytics.assetCriticalityResultStep.viewAssetCriticalityAssignments"
/>
}
</EuiButton>
</EuiCallOut>
<EuiSpacer size="s" />
<ScheduleRiskEngineCallout />

View file

@ -51,7 +51,7 @@ export const ENABLEMENT_DESCRIPTION_RISK_ENGINE_ONLY = i18n.translate(
export const ENABLEMENT_DESCRIPTION_ENTITY_STORE_ONLY = i18n.translate(
'xpack.securitySolution.entityAnalytics.entityStore.enablement.description.store',
{
defaultMessage: "Allows comprehensive monitoring of your system's hosts and users.",
defaultMessage: 'Store host and user entities observed in events.',
}
);

View file

@ -290,7 +290,7 @@ export const EntityStoreManagementPage = () => {
<EuiText>
<FormattedMessage
id="xpack.securitySolution.entityAnalytics.entityStoreManagementPage.subTitle"
defaultMessage="Allows comprehensive monitoring of your system's hosts and users."
defaultMessage="Store host and user entities observed in events."
/>
</EuiText>
{isEntityStoreFeatureFlagDisabled && <EntityStoreFeatureFlagNotAvailableCallout />}

View file

@ -198,7 +198,7 @@ export const links: LinkItem = {
id: SecurityPageName.entityAnalyticsEntityStoreManagement,
title: ENTITY_STORE,
description: i18n.translate('xpack.securitySolution.appLinks.entityStoreDescription', {
defaultMessage: "Allows comprehensive monitoring of your system's hosts and users.",
defaultMessage: 'Store host and user entities observed in events.',
}),
landingIcon: IconAssetCriticality,
path: ENTITY_ANALYTICS_ENTITY_STORE_MANAGEMENT_PATH,