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 @@ -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 {
Expand Down Expand Up @@ -57,6 +58,9 @@ export const ResultsPreview: FC<ResultsPreviewProps> = ({ sampleDocs, mappings,
<EuiBasicTable
data-test-subj={`dataVisualizerFilePreviewPanel-${index}`}
tableLayout="auto"
tableCaption={i18n.translate('xpack.fileUpload.docsPreview.tableCaption', {
defaultMessage: 'Sample documents preview',
})}
columns={columns}
items={items}
css={{ overflow: 'auto' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ export const ChangePointsTable: FC<ChangePointsTableProps> = ({

return (
<EuiInMemoryTable<ChangePointAnnotation>
tableCaption={i18n.translate('xpack.aiops.changePointDetection.resultsTableCaption', {
defaultMessage: 'Change point detection results',
})}
itemId="id"
selection={selectionValue}
loading={isLoading}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ export const CategoryTable: FC<Props> = ({
}
: undefined;
}}
tableCaption={i18n.translate('xpack.aiops.logCategorization.categoryTable.tableCaption', {
defaultMessage: 'Log pattern categories',
})}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -246,6 +248,9 @@ export const LogRateAnalysisResultsTable: FC<LogRateAnalysisResultsTableProps> =
<EuiBasicTable
data-test-subj="aiopsLogRateAnalysisResultsTable"
compressed
tableCaption={i18n.translate('xpack.aiops.logRateAnalysisResultsTable.tableCaption', {
defaultMessage: 'Log rate analysis results',
})}
items={pageOfItems}
columns={columns}
pagination={pagination.totalItemCount > pagination.pageSize ? pagination : undefined}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ export const LogRateAnalysisResultsGroupsTable: FC<LogRateAnalysisResultsTablePr
style: getRowStyle(group),
};
}}
tableCaption={i18n.translate('xpack.aiops.logRateAnalysis.resultsTableGroups.tableCaption', {
defaultMessage: 'Log rate analysis results groups',
})}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,9 @@ class AnnotationsTableUI extends Component {
<Fragment>
<EuiInMemoryTable
data-test-subj={'mlAnnotationsTable'}
tableCaption={i18n.translate('xpack.ml.annotationsTable.annotation.tableCaption', {
defaultMessage: 'Annotations',
})}
error={searchError}
className="eui-textBreakWord"
compressed={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import React, { useState, type FC, useEffect, useMemo, useCallback, useRef } fro
import { usePageUrlState } from '@kbn/ml-url-state';
import type { MlAnomaliesTableRecordExtended } from '@kbn/ml-anomaly-utils';
import { get, isEqual } from 'lodash';
import { i18n } from '@kbn/i18n';
import type { CriteriaWithPagination, EuiBasicTableColumn } from '@elastic/eui';
import { EuiFlexGroup, EuiFlexItem, EuiInMemoryTable, EuiText } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n-react';
Expand Down Expand Up @@ -354,6 +355,9 @@ export const AnomaliesTable: FC<AnomaliesTableProps> = React.memo(
rowProps={getRowProps}
data-test-subj="mlAnomaliesTable"
onTableChange={onTableChange}
tableCaption={i18n.translate('xpack.ml.anomaliesTable.tableCaption', {
defaultMessage: 'Anomalies detected for the selected jobs',
})}
/>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ export const JobMessages: FC<JobMessagesProps> = ({
initialPageSize: 25,
}}
data-test-subj={'mlAnalyticsDetailsJobMessagesTable'}
tableCaption={i18n.translate('xpack.ml.jobMessages.tableCaption', {
defaultMessage: 'Job messages',
})}
/>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ export const ModelSnapshotTable: FC<Props> = ({ job, refreshJobList }) => {
<EuiInMemoryTable
className="eui-textBreakWord"
compressed={true}
tableCaption={i18n.translate('xpack.ml.modelSnapshotTable.tableCaption', {
defaultMessage: 'Model snapshots for the job',
})}
items={snapshots}
columns={columns}
pagination={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export const EvaluationQualityMetricsTable: FC<{
>
<EuiPanel>
<EuiInMemoryTable<ClassificationMetricItem>
tableCaption={i18n.translate(
'xpack.ml.dataframe.analytics.classificationExploration.evaluateSectionRecallAndAccuracyTableCaption',
{ defaultMessage: 'Per class recall and accuracy metrics' }
)}
items={evaluationMetricsItems}
columns={columns}
pagination
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ export const DataFrameAnalyticsList: FC<Props> = ({
<EuiSpacer size="m" />
<div data-test-subj="mlAnalyticsTableContainer">
<EuiInMemoryTable<DataFrameAnalyticsListRow>
tableCaption={i18n.translate('xpack.ml.dataFrame.analyticsList.tableCaption', {
defaultMessage: 'Data frame analytics jobs table',
})}
rowHeader={DataFrameAnalyticsListColumn.id}
allowNeutralSort={false}
columns={columns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})}
/>
),
},
Expand All @@ -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',
})}
/>
),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -187,6 +194,7 @@ export function DataViewEditor({
columns={columns}
pagination={pagination}
onChange={onTableChange}
tableCaption={matchedIndicesTableCaption}
data-test-subject={`mlDataDriftIndexPatternTable-${id ?? ''}`}
rowProps={(item) => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ export const MiniAlertTable: FC<MiniAlertTableProps> = ({ data }) => {

return (
<EuiInMemoryTable
tableCaption={i18n.translate('xpack.ml.explorer.cellSelectionPopover.alertsTableCaption', {
defaultMessage: 'Alerts for the selected swim lane cell',
})}
css={{ width: '510px' }}
compressed
columns={columns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ export class ForecastsTable extends Component {
compressed={true}
items={forecasts}
columns={columns}
tableCaption={i18n.translate('xpack.ml.jobsList.jobDetails.forecastsTable.tableCaption', {
defaultMessage: 'Forecasts run on this job',
})}
pagination={{
pageSizeOptions: [5, 10, 25],
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ export class JobsListUI extends Component {
<>
<EuiBasicTable
data-test-subj={loading ? 'mlJobListTable loading' : 'mlJobListTable loaded'}
tableCaption={i18n.translate('xpack.ml.jobsList.tableCaption', {
defaultMessage: 'List of anomaly detection jobs',
})}
loading={loading === true}
noItemsMessage={
loading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,16 @@ export const CategoryStoppedPartitions: FC = () => {
/>
}
/>
<EuiBasicTable columns={columns} items={tableRow} />
<EuiBasicTable
columns={columns}
items={tableRow}
tableCaption={i18n.translate(
'xpack.ml.newJob.wizard.pickFieldsStep.stoppedPartitions.tableCaption',
{
defaultMessage: 'Stopped partitions',
}
)}
/>
</>
)}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ export const FieldExamples: FC<Props> = ({ fieldExamples }) => {
columns={columns}
items={items}
data-test-subj="mlJobWizardCategorizationExamplesTable"
tableCaption={i18n.translate(
'xpack.ml.newJob.wizard.pickFieldsStep.categorizationFieldExamples.tableCaption',
{
defaultMessage: 'Categorization field examples',
}
)}
/>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -97,7 +98,16 @@ export const TopCategories: FC = () => {
values={{ totalCategories }}
/>
</div>
<EuiBasicTable columns={columns} items={tableRow} />
<EuiBasicTable
columns={columns}
items={tableRow}
tableCaption={i18n.translate(
'xpack.ml.newJob.wizard.pickFieldsStep.topCategoriesTableCaption',
{
defaultMessage: 'Top categories examples',
}
)}
/>
</>
)}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ export const SpaceManagement: FC<Props> = ({ 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={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@ export const AllocatedModels: FC<AllocatedModelsProps> = ({
})}
onTableChange={() => {}}
data-test-subj={'mlNodesAllocatedModels'}
tableCaption={i18n.translate(
'xpack.ml.trainedModels.nodesList.modelsList.allocatedModelsTableCaption',
{
defaultMessage: 'Allocated machine learning models',
}
)}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ export const NodesList: FC<NodesListProps> = ({ compactView = false }) => {

<div data-test-subj="mlNodesTableContainer">
<EuiInMemoryTable<NodeItem>
tableCaption={i18n.translate(
'xpack.ml.trainedModels.nodesList.nodesOverviewTableCaption',
{
defaultMessage: 'Machine learning nodes overview',
}
)}
allowNeutralSort={false}
columns={columns}
itemIdToExpandedRowMap={itemIdToExpandedRowMap}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ export const ProcessorsStats: FC<ProcessorsStatsProps> = ({ 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'}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ export const NotificationsList: FC = () => {
) : null}

<EuiBasicTable<NotificationItem>
tableCaption={i18n.translate('xpack.ml.notifications.tableCaption', {
defaultMessage: 'Machine learning notifications',
})}
columns={columns}
rowHeader="timestamp"
items={itemsPerPage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ export const AnalyticsTable: FC<Props> = ({ items }) => {
pagination={pagination}
sorting={sorting}
data-test-subj="mlOverviewTableAnalytics"
tableCaption={i18n.translate('xpack.ml.overview.analyticsList.caption', {
defaultMessage: 'Analytics jobs overview',
})}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ export const AnomalyDetectionTable: FC<Props> = ({ items, chartsService }) => {
onTableChange={onTableChange}
pagination={pagination}
sorting={sorting}
tableCaption={i18n.translate('xpack.ml.overview.anomalyDetection.tableCaption', {
defaultMessage: 'Anomaly detection groups',
})}
data-test-subj="mlOverviewTableAnomalyDetection"
/>
);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ export const EventsTable: FC<Props> = ({
},
}}
search={showSearchBar ? search : undefined}
tableCaption={i18n.translate('xpack.ml.calendarsEdit.eventsTable.tableCaption', {
defaultMessage: 'Calendar events',
})}
data-test-subj="mlCalendarEventsTable"
rowProps={(item) => ({
'data-test-subj': `mlCalendarEventListRow row-${item.description}`,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ export const CalendarsListTable = ({
sorting={sorting}
loading={loading}
selection={tableSelection}
tableCaption={i18n.translate('xpack.ml.calendarsList.tableCaption', {
defaultMessage: 'Calendars',
})}
data-test-subj={loading ? 'mlCalendarTable loading' : 'mlCalendarTable loaded'}
rowProps={(item) => ({
'data-test-subj': `mlCalendarListRow row-${item.calendar_id}`,
Expand Down
Loading