Skip to content
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 @@ -204,6 +204,7 @@ export const EntityAnalyticsAnomalies = () => {
loading={isSearchLoading}
id={TABLE_QUERY_ID}
sorting={TABLE_SORTING}
tableCaption={i18n.ANOMALIES_TITLE}
/>
</>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* 2.0.
*/

import { i18n } from '@kbn/i18n';
import type { EuiBasicTableColumn } from '@elastic/eui';
import { EuiSpacer, EuiInMemoryTable, EuiTitle, EuiCallOut } from '@elastic/eui';
import type { ReactNode } from 'react';
Expand Down Expand Up @@ -208,6 +209,12 @@ export const RiskInputsTab = <T extends EntityType>({
sorting
selection={euiTableSelectionProps}
itemId="_id"
tableCaption={i18n.translate(
'xpack.securitySolution.flyout.entityDetails.riskInputs.alertsTableCaption',
{
defaultMessage: 'Alerts contributing to the risk score',
}
)}
/>
<EuiSpacer size="s" />
<ExtraAlertsMessage<T> riskScore={riskScore} alerts={alerts} entityType={entityType} />
Expand Down Expand Up @@ -329,6 +336,12 @@ const ContextsSection = <T extends EntityType>({
data-test-subj="risk-input-contexts-table"
columns={contextColumns}
items={items}
tableCaption={i18n.translate(
'xpack.securitySolution.flyout.entityDetails.riskInputs.contextsTableCaption',
{
defaultMessage: 'Contextual contributions to the risk score',
}
)}
/>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ export const PrivilegedUsersTable: React.FC<{ spaceId: string }> = ({ spaceId })
<EuiHorizontalRule margin="none" css={{ height: 2 }} />
<EuiBasicTable
id={PRIVILEGED_USERS_TABLE_QUERY_ID}
tableCaption={i18n.translate(
'xpack.securitySolution.entityAnalytics.privilegedUserMonitoring.privilegedUsersTable.tableCaption',
{ defaultMessage: 'Privileged users list' }
)}
loading={isLoading}
items={visibleRecords || []}
columns={columns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ export const RiskLevelsPrivilegedUsersPanel: React.FC<{ spaceId: string }> = ({
items={severityTableData}
loading={isLoading}
id={RISK_LEVELS_PRIVILEGED_USERS_QUERY_ID}
tableCaption={i18n.translate(
'xpack.securitySolution.entityAnalytics.privilegedUserMonitoring.riskLevels.tableCaption',
{
defaultMessage: 'Privileged user risk level distribution',
}
)}
/>
</EuiFlexItem>
<EuiFlexItem grow={1}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ export const EsqlDashboardPanel = <TableItemType extends Record<string, string>>
},
}}
columns={columns}
tableCaption={i18n.translate(
'xpack.securitySolution.genericDashboard.tableCaption',
{
defaultMessage: 'Generic dashboard results table',
}
)}
/>
</div>
</InspectButtonContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export const RiskInformationFlyout = ({ handleOnClose }: { handleOnClose: () =>
columns={getCriticalityLevelTableColumns()}
items={criticalityLevelTableItems}
data-test-subj="criticality-level-information-table"
tableCaption={i18n.CRITICALITY_LEVEL_TABLE_CAPTION}
/>
<EuiSpacer size="s" />
</li>
Expand All @@ -255,6 +256,7 @@ export const RiskInformationFlyout = ({ handleOnClose }: { handleOnClose: () =>
columns={getRiskLevelTableColumns()}
items={riskLevelTableItems}
data-test-subj="risk-level-information-table"
tableCaption={i18n.ENTITY_RISK_LEVELS}
/>
<EuiSpacer size="s" />
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,17 @@ export const INFO_BUTTON_TEXT = i18n.translate(
defaultMessage: 'How is risk score calculated?',
}
);

export const CRITICALITY_LEVEL_TABLE_CAPTION = i18n.translate(
'xpack.securitySolution.riskInformation.criticalityLevelTableCaption',
{
defaultMessage: 'Asset criticality level modifiers',
}
);

export const ENTITY_RISK_LEVELS = i18n.translate(
'xpack.securitySolution.riskInformation.riskLevelTableCaption',
{
defaultMessage: 'Entity risk levels',
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import React from 'react';
import { EuiInMemoryTable } from '@elastic/eui';
import type { EuiBasicTableColumn } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
import type { EntityRiskScoreRecord } from '../../../../common/api/entity_analytics/common';
import type { RiskSeverity } from '../../../../common/search_strategy';
Expand Down Expand Up @@ -79,6 +80,9 @@ export const RiskScorePreviewTable = ({
responsiveBreakpoint={false}
items={items}
columns={columns}
tableCaption={i18n.translate('xpack.securitySolution.riskScore.previewTable.caption', {
defaultMessage: 'Entity risk score preview',
})}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,15 @@ const FlyoutRiskSummaryComponent = <T extends EntityType>({
/>
</div>
<EuiBasicTable
tableCaption={i18n.translate(
'xpack.securitySolution.flyout.entityDetails.riskSummaryTableCaption',
{
defaultMessage: 'Risk summary for {entity}',
values: {
entity: capitalize(entityType),
},
}
)}
data-test-subj="risk-summary-table"
responsiveBreakpoint={false}
columns={columnsArray}
Expand Down