diff --git a/x-pack/platform/packages/shared/file-upload/src/file_upload_component/new/file_status/docs_preview.tsx b/x-pack/platform/packages/shared/file-upload/src/file_upload_component/new/file_status/docs_preview.tsx index 4e55bdd148355..75de43a2cdf0a 100644 --- a/x-pack/platform/packages/shared/file-upload/src/file_upload_component/new/file_status/docs_preview.tsx +++ b/x-pack/platform/packages/shared/file-upload/src/file_upload_component/new/file_status/docs_preview.tsx @@ -11,6 +11,7 @@ import { type DataTableRecord } from '@kbn/discover-utils'; import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiBasicTable, EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; import type { MappingTypeMapping } from '@elastic/elasticsearch/lib/api/types'; +import { i18n } from '@kbn/i18n'; import { FieldTypeIcon } from '../field_type_icon'; interface ResultsPreviewProps { @@ -57,6 +58,9 @@ export const ResultsPreview: FC = ({ sampleDocs, mappings, = ({ return ( + tableCaption={i18n.translate('xpack.aiops.changePointDetection.resultsTableCaption', { + defaultMessage: 'Change point detection results', + })} itemId="id" selection={selectionValue} loading={isLoading} diff --git a/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/category_table/category_table.tsx b/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/category_table/category_table.tsx index 7fdb71e41d9b8..7635b4a70f295 100644 --- a/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/category_table/category_table.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/category_table/category_table.tsx @@ -298,6 +298,9 @@ export const CategoryTable: FC = ({ } : undefined; }} + tableCaption={i18n.translate('xpack.aiops.logCategorization.categoryTable.tableCaption', { + defaultMessage: 'Log pattern categories', + })} /> ); diff --git a/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis_results_table/log_rate_analysis_results_table.tsx b/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis_results_table/log_rate_analysis_results_table.tsx index 609c7c25ec894..20b0925827532 100644 --- a/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis_results_table/log_rate_analysis_results_table.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis_results_table/log_rate_analysis_results_table.tsx @@ -10,6 +10,8 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { orderBy, isEqual } from 'lodash'; import type { estypes } from '@elastic/elasticsearch'; +import { i18n } from '@kbn/i18n'; + import type { Criteria, EuiTableSortingType } from '@elastic/eui'; import { useEuiTheme, useEuiBackgroundColor, EuiBasicTable } from '@elastic/eui'; @@ -246,6 +248,9 @@ export const LogRateAnalysisResultsTable: FC = pagination.pageSize ? pagination : undefined} diff --git a/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis_results_table/log_rate_analysis_results_table_groups.tsx b/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis_results_table/log_rate_analysis_results_table_groups.tsx index 92770d7452477..76d4d5e2a7037 100644 --- a/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis_results_table/log_rate_analysis_results_table_groups.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis_results_table/log_rate_analysis_results_table_groups.tsx @@ -410,6 +410,9 @@ export const LogRateAnalysisResultsGroupsTable: FC ); }; diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/annotations/annotations_table/annotations_table.js b/x-pack/platform/plugins/shared/ml/public/application/components/annotations/annotations_table/annotations_table.js index ec27e9b0ccad8..fa6b5a87ca9e9 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/annotations/annotations_table/annotations_table.js +++ b/x-pack/platform/plugins/shared/ml/public/application/components/annotations/annotations_table/annotations_table.js @@ -728,6 +728,9 @@ class AnnotationsTableUI extends Component { = React.memo( rowProps={getRowProps} data-test-subj="mlAnomaliesTable" onTableChange={onTableChange} + tableCaption={i18n.translate('xpack.ml.anomaliesTable.tableCaption', { + defaultMessage: 'Anomalies detected for the selected jobs', + })} /> ); diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/job_messages/job_messages.tsx b/x-pack/platform/plugins/shared/ml/public/application/components/job_messages/job_messages.tsx index c61a29c25239b..0292f5db04a37 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/job_messages/job_messages.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/components/job_messages/job_messages.tsx @@ -154,6 +154,9 @@ export const JobMessages: FC = ({ initialPageSize: 25, }} data-test-subj={'mlAnalyticsDetailsJobMessagesTable'} + tableCaption={i18n.translate('xpack.ml.jobMessages.tableCaption', { + defaultMessage: 'Job messages', + })} /> ); diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/model_snapshots/model_snapshots_table.tsx b/x-pack/platform/plugins/shared/ml/public/application/components/model_snapshots/model_snapshots_table.tsx index 81a3e4a8de285..d5de657394bb6 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/model_snapshots/model_snapshots_table.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/components/model_snapshots/model_snapshots_table.tsx @@ -231,6 +231,9 @@ export const ModelSnapshotTable: FC = ({ job, refreshJobList }) => { + tableCaption={i18n.translate( + 'xpack.ml.dataframe.analytics.classificationExploration.evaluateSectionRecallAndAccuracyTableCaption', + { defaultMessage: 'Per class recall and accuracy metrics' } + )} items={evaluationMetricsItems} columns={columns} pagination diff --git a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/analytics_list.tsx b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/analytics_list.tsx index a3e51823f080e..ac80327a42111 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/analytics_list.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/analytics_list.tsx @@ -262,6 +262,9 @@ export const DataFrameAnalyticsList: FC = ({
+ tableCaption={i18n.translate('xpack.ml.dataFrame.analyticsList.tableCaption', { + defaultMessage: 'Data frame analytics jobs table', + })} rowHeader={DataFrameAnalyticsListColumn.id} allowNeutralSort={false} columns={columns} diff --git a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/components/analytics_selector/analytics_id_selector.tsx b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/components/analytics_selector/analytics_id_selector.tsx index f83ff175ee8fe..f8ebe12bd1d83 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/components/analytics_selector/analytics_id_selector.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/components/analytics_selector/analytics_id_selector.tsx @@ -243,6 +243,9 @@ export function AnalyticsIdSelector({ pagination={pagination} sorting={true} selection={selectionValue} + tableCaption={i18n.translate('xpack.ml.analyticsSelector.jobsTableCaption', { + defaultMessage: 'Analytics jobs available for selection', + })} /> ), }, @@ -263,6 +266,9 @@ export function AnalyticsIdSelector({ pagination={pagination} sorting={true} selection={selectionValue} + tableCaption={i18n.translate('xpack.ml.analyticsSelector.modelsTableCaption', { + defaultMessage: 'Trained models available for selection', + })} /> ), }); diff --git a/x-pack/platform/plugins/shared/ml/public/application/datavisualizer/data_drift/data_view_editor.tsx b/x-pack/platform/plugins/shared/ml/public/application/datavisualizer/data_drift/data_view_editor.tsx index 9a0e487a959ff..af62ad8bb538e 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/datavisualizer/data_drift/data_view_editor.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/datavisualizer/data_drift/data_view_editor.tsx @@ -43,6 +43,13 @@ const mustMatchError = i18n.translate( } ); +const matchedIndicesTableCaption = i18n.translate( + 'xpack.ml.dataDrift.indexPatternsEditor.matchedIndicesTableCaption', + { + defaultMessage: 'Matched indices for the selected index pattern', + } +); + export function DataViewEditor({ id, label, @@ -187,6 +194,7 @@ export function DataViewEditor({ columns={columns} pagination={pagination} onChange={onTableChange} + tableCaption={matchedIndicesTableCaption} data-test-subject={`mlDataDriftIndexPatternTable-${id ?? ''}`} rowProps={(item) => { return { diff --git a/x-pack/platform/plugins/shared/ml/public/application/explorer/alerts/swim_lane_wrapper.tsx b/x-pack/platform/plugins/shared/ml/public/application/explorer/alerts/swim_lane_wrapper.tsx index 9bff4bebdee91..dcf351f12a7e9 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/explorer/alerts/swim_lane_wrapper.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/explorer/alerts/swim_lane_wrapper.tsx @@ -266,6 +266,9 @@ export const MiniAlertTable: FC = ({ data }) => { return ( { /> } /> - + )} diff --git a/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/categorization_view/field_examples.tsx b/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/categorization_view/field_examples.tsx index 801c05c71d822..802d712262eff 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/categorization_view/field_examples.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/categorization_view/field_examples.tsx @@ -69,6 +69,12 @@ export const FieldExamples: FC = ({ fieldExamples }) => { columns={columns} items={items} data-test-subj="mlJobWizardCategorizationExamplesTable" + tableCaption={i18n.translate( + 'xpack.ml.newJob.wizard.pickFieldsStep.categorizationFieldExamples.tableCaption', + { + defaultMessage: 'Categorization field examples', + } + )} /> ); }; diff --git a/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/categorization_view/top_categories.tsx b/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/categorization_view/top_categories.tsx index f69ba6f1ee9f0..05348e89f75d3 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/categorization_view/top_categories.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/categorization_view/top_categories.tsx @@ -8,6 +8,7 @@ import type { FC } from 'react'; import React, { useContext, useEffect, useState } from 'react'; import { EuiBasicTable, EuiText } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { extractErrorProperties } from '@kbn/ml-error-utils'; import { useMlApi } from '../../../../../../../contexts/kibana'; @@ -97,7 +98,16 @@ export const TopCategories: FC = () => { values={{ totalCategories }} />
- + )} diff --git a/x-pack/platform/plugins/shared/ml/public/application/management/jobs_list/components/jobs_list_page/space_management/space_management.tsx b/x-pack/platform/plugins/shared/ml/public/application/management/jobs_list/components/jobs_list_page/space_management/space_management.tsx index 2e2ae3f06a96d..17edd4ac52e12 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/management/jobs_list/components/jobs_list_page/space_management/space_management.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/management/jobs_list/components/jobs_list_page/space_management/space_management.tsx @@ -185,6 +185,9 @@ export const SpaceManagement: FC = ({ spacesApi, onTabChange, onReload }) data-test-subj={`mlSpacesManagementTable-${currentTabId} ${ isLoading ? 'loading' : 'loaded' }`} + tableCaption={i18n.translate('xpack.ml.management.spaceManagement.tableCaption', { + defaultMessage: 'Machine learning spaces management', + })} items={items} columns={columns} search={{ diff --git a/x-pack/platform/plugins/shared/ml/public/application/memory_usage/nodes_overview/allocated_models.tsx b/x-pack/platform/plugins/shared/ml/public/application/memory_usage/nodes_overview/allocated_models.tsx index 2ba3b07242504..dfbfb41e4ff47 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/memory_usage/nodes_overview/allocated_models.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/memory_usage/nodes_overview/allocated_models.tsx @@ -308,6 +308,12 @@ export const AllocatedModels: FC = ({ })} onTableChange={() => {}} data-test-subj={'mlNodesAllocatedModels'} + tableCaption={i18n.translate( + 'xpack.ml.trainedModels.nodesList.modelsList.allocatedModelsTableCaption', + { + defaultMessage: 'Allocated machine learning models', + } + )} /> ); }; diff --git a/x-pack/platform/plugins/shared/ml/public/application/memory_usage/nodes_overview/nodes_list.tsx b/x-pack/platform/plugins/shared/ml/public/application/memory_usage/nodes_overview/nodes_list.tsx index b9893f92c83b4..accc54f8005db 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/memory_usage/nodes_overview/nodes_list.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/memory_usage/nodes_overview/nodes_list.tsx @@ -219,6 +219,12 @@ export const NodesList: FC = ({ compactView = false }) => {
+ tableCaption={i18n.translate( + 'xpack.ml.trainedModels.nodesList.nodesOverviewTableCaption', + { + defaultMessage: 'Machine learning nodes overview', + } + )} allowNeutralSort={false} columns={columns} itemIdToExpandedRowMap={itemIdToExpandedRowMap} diff --git a/x-pack/platform/plugins/shared/ml/public/application/model_management/pipelines/expanded_row.tsx b/x-pack/platform/plugins/shared/ml/public/application/model_management/pipelines/expanded_row.tsx index 904fe5bcbe09c..4be1141ee4e30 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/model_management/pipelines/expanded_row.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/model_management/pipelines/expanded_row.tsx @@ -176,6 +176,12 @@ export const ProcessorsStats: FC = ({ stats }) => { 'data-test-subj': `mlProcessorStatsTableRow row-${item.id}`, })} onTableChange={() => {}} + tableCaption={i18n.translate( + 'xpack.ml.trainedModels.modelsList.pipelines.processorStats.tableCaption', + { + defaultMessage: 'Pipeline processor statistics', + } + )} data-test-subj={'mlProcessorStatsTable'} /> ); diff --git a/x-pack/platform/plugins/shared/ml/public/application/notifications/components/notifications_list.tsx b/x-pack/platform/plugins/shared/ml/public/application/notifications/components/notifications_list.tsx index a2266d73a3f21..24d7e09bc2c38 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/notifications/components/notifications_list.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/notifications/components/notifications_list.tsx @@ -401,6 +401,9 @@ export const NotificationsList: FC = () => { ) : null} + tableCaption={i18n.translate('xpack.ml.notifications.tableCaption', { + defaultMessage: 'Machine learning notifications', + })} columns={columns} rowHeader="timestamp" items={itemsPerPage} diff --git a/x-pack/platform/plugins/shared/ml/public/application/overview/components/analytics_panel/table.tsx b/x-pack/platform/plugins/shared/ml/public/application/overview/components/analytics_panel/table.tsx index e37357930a9b3..db2bc153cce4e 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/overview/components/analytics_panel/table.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/overview/components/analytics_panel/table.tsx @@ -117,6 +117,9 @@ export const AnalyticsTable: FC = ({ items }) => { pagination={pagination} sorting={sorting} data-test-subj="mlOverviewTableAnalytics" + tableCaption={i18n.translate('xpack.ml.overview.analyticsList.caption', { + defaultMessage: 'Analytics jobs overview', + })} /> ); }; diff --git a/x-pack/platform/plugins/shared/ml/public/application/overview/components/anomaly_detection_panel/table.tsx b/x-pack/platform/plugins/shared/ml/public/application/overview/components/anomaly_detection_panel/table.tsx index f167dc067c972..7c3268429d389 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/overview/components/anomaly_detection_panel/table.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/overview/components/anomaly_detection_panel/table.tsx @@ -186,6 +186,9 @@ export const AnomalyDetectionTable: FC = ({ items, chartsService }) => { onTableChange={onTableChange} pagination={pagination} sorting={sorting} + tableCaption={i18n.translate('xpack.ml.overview.anomalyDetection.tableCaption', { + defaultMessage: 'Anomaly detection groups', + })} data-test-subj="mlOverviewTableAnomalyDetection" /> ); diff --git a/x-pack/platform/plugins/shared/ml/public/application/settings/calendars/edit/events_table/__snapshots__/events_table.test.js.snap b/x-pack/platform/plugins/shared/ml/public/application/settings/calendars/edit/events_table/__snapshots__/events_table.test.js.snap index 62ed303933386..df4b760b96869 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/settings/calendars/edit/events_table/__snapshots__/events_table.test.js.snap +++ b/x-pack/platform/plugins/shared/ml/public/application/settings/calendars/edit/events_table/__snapshots__/events_table.test.js.snap @@ -244,7 +244,7 @@ exports[`EventsTable Renders events table with no search bar 1`] = ` class="euiFlexItem emotion-euiFlexItem-growZero" >