Skip to content

Commit

Permalink
Added redirect option after Entity CSV upload (elastic#197937)
Browse files Browse the repository at this point in the history
## 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 <[email protected]>
  • Loading branch information
jaredburgettelastic and elasticmachine authored Oct 28, 2024
1 parent e65a08c commit be6708b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import {
EuiButtonEmpty,
EuiButton,
EuiCallOut,
EuiCodeBlock,
EuiFlexGroup,
Expand All @@ -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';

Expand Down Expand Up @@ -61,17 +63,26 @@ 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"
/>
}
color="success"
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 />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
}
);

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

0 comments on commit be6708b

Please sign in to comment.