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 @@ -271,6 +271,9 @@ export const VariablesEditor = (props: Props) => {
noItemsMessage={i18n.translate('console.variablesPage.table.noItemsMessage', {
defaultMessage: 'No variables have been added yet',
})}
tableCaption={i18n.translate('console.variablesPage.variablesTable.caption', {
defaultMessage: 'Defined Variables',
})}
/>

{isAddingVariable && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,12 @@ export class AutoFollowPatternTable extends PureComponent {
'data-test-subj': `cell_${column.field}`,
})}
data-test-subj="autoFollowPatternListTable"
tableCaption={i18n.translate(
'xpack.crossClusterReplication.autoFollowPatternList.tableCaption',
{
defaultMessage: 'List of auto-follow patterns',
}
)}
/>
{this.renderLoading()}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,12 @@ export class FollowerIndicesTable extends PureComponent {
return (
<>
<EuiInMemoryTable
tableCaption={i18n.translate(
'xpack.crossClusterReplication.followerIndexList.table.tableCaption',
{
defaultMessage: 'List of follower indices',
}
)}
items={filteredIndices}
itemId="name"
columns={this.getTableColumns(actionHandlers)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ export const IndexTemplatesFlyout: FunctionComponent<Props> = ({
</EuiFlyoutHeader>
<EuiFlyoutBody>
<EuiInMemoryTable
tableCaption={i18n.translate(
'xpack.indexLifecycleMgmt.policyTable.indexTemplatesTable.caption',
{
defaultMessage: 'Index templates',
}
)}
pagination={true}
// @ts-expect-error - EuiInMemoryTable wants an array of objects, but will accept strings if coerced
items={indexTemplates ?? []}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export const NodeAttrsDetails: React.FunctionComponent<Props> = ({ close, select
]}
pagination={true}
sorting={true}
tableCaption={i18n.translate('xpack.indexLifecycleMgmt.nodeAttrDetails.tableCaption', {
defaultMessage: 'Nodes that contain the attribute {selectedNodeAttrs}',
values: { selectedNodeAttrs },
})}
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ export class RemoteClusterTable extends Component {
sorting={sorting}
selection={selection}
data-test-subj="remoteClusterListTable"
tableCaption={i18n.translate('xpack.remoteClusters.remoteClusterList.tableCaption', {
defaultMessage: 'Remote clusters list',
})}
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import { i18n } from '@kbn/i18n';
import { EuiInMemoryTable, EuiEmptyPrompt } from '@elastic/eui';

export const FieldList = ({
Expand Down Expand Up @@ -69,6 +70,9 @@ export const FieldList = ({
sorting={true}
noItemsMessage={message}
data-test-subj={dataTestSubj}
tableCaption={i18n.translate('xpack.rollupJobs.fieldList.tableCaption', {
defaultMessage: 'Available fields',
})}
/>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { i18n } from '@kbn/i18n';

import {
EuiBasicTable,
Expand Down Expand Up @@ -128,6 +129,9 @@ export class FieldChooser extends Component {
rowProps={getRowProps}
responsive={false}
data-test-subj={`${dataTestSubj}-table`}
tableCaption={i18n.translate('xpack.rollupJobs.fieldChooser.tableCaption', {
defaultMessage: 'Available rollup job fields',
})}
/>
</EuiFlyoutBody>
</EuiFlyout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ export const PolicyTable: React.FunctionComponent<Props> = ({
cellProps={() => ({
'data-test-subj': 'cell',
})}
tableCaption={i18n.translate('xpack.snapshotRestore.policyList.table.caption', {
defaultMessage: 'Snapshot lifecycle policies',
})}
data-test-subj="policyTable"
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ export const RepositoryTable: React.FunctionComponent<Props> = ({
cellProps={(item, field) => ({
'data-test-subj': `${field.name}_cell`,
})}
tableCaption={i18n.translate('xpack.snapshotRestore.repositoryList.table.tableCaption', {
defaultMessage: 'Registered repositories',
})}
data-test-subj="repositoryTable"
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ export const RestoreTable: React.FunctionComponent<Props> = React.memo(({ restor

return (
<EuiBasicTable
tableCaption={i18n.translate('xpack.snapshotRestore.restoreList.table.caption', {
defaultMessage: 'Snapshot restore list',
})}
items={getRestores()}
itemId="index"
itemIdToExpandedRowMap={itemIdToExpandedRowMap}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ export const ShardsTable: React.FunctionComponent<Props> = ({ shards }) => {
<EuiBasicTable
css={styles.shardsTable}
compressed={true}
tableCaption={i18n.translate('xpack.snapshotRestore.restoreList.shardTable.caption', {
defaultMessage: 'Snapshot restore shard details',
})}
// @ts-ignore `shards` is a Partial<> but this component treats a number of fields as required
items={shards}
columns={columns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ export const SnapshotTable: React.FunctionComponent<Props> = (props: Props) => {
},
};

const snapshotTableCaption = i18n.translate('xpack.snapshotRestore.snapshotList.table.caption', {
defaultMessage: 'List of snapshots',
});

return (
<>
<SnapshotSearchBar
Expand Down Expand Up @@ -336,6 +340,7 @@ export const SnapshotTable: React.FunctionComponent<Props> = (props: Props) => {
'data-test-subj': 'cell',
})}
data-test-subj="snapshotTable"
tableCaption={snapshotTableCaption}
/>
)}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ export const ExpandedRowHealthPane: FC<ExpandedRowHealthPaneProps> = ({ health }
compressed={true}
pagination={issues.length > 10}
sorting={sorting}
tableCaption={i18n.translate(
'xpack.transform.transformList.transformDetails.healthPane.issuesTableCaption',
{
defaultMessage: 'Transform health issues',
}
)}
/>
</>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ export const ExpandedRowMessagesPane: FC<ExpandedRowMessagesPaneProps> = ({ tran
pagination={pagination}
onChange={onChange}
sorting={sorting}
tableCaption={i18n.translate(
'xpack.transform.transformList.transformDetails.messagesPane.tableCaption',
{
defaultMessage: 'Transform audit messages',
}
)}
/>
</EuiPanel>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ export const TransformList: FC<TransformListProps> = ({
selection={selection}
sorting={sorting}
search={search}
tableCaption={i18n.translate('xpack.transform.list.tableCaption', {
defaultMessage: 'Transform list',
})}
data-test-subj={`transformListTable ${
isLoading || transformsLoading ? 'loading' : 'loaded'
}`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ const i18nTexts = {
defaultMessage: 'Filter',
}
),
tableCaption: i18n.translate('xpack.upgradeAssistant.kibanaDeprecations.table.tableCaption', {
defaultMessage: 'List of Kibana deprecations',
}),
};

interface Props {
Expand Down Expand Up @@ -269,6 +272,7 @@ export const KibanaDeprecationsTable: React.FunctionComponent<Props> = ({
})}
data-test-subj="kibanaDeprecationsTable"
tableLayout="auto"
tableCaption={i18nTexts.tableCaption}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ const i18nTexts = {
defaultMessage: 'Status',
}
),
tableCaption: i18n.translate(
'xpack.upgradeAssistant.overview.systemIndices.featuresTableCaption',
{
defaultMessage: 'System indices migration status',
}
),
errorTooltipLabel: i18n.translate(
'xpack.upgradeAssistant.overview.systemIndices.errorTooltipLabel',
{
Expand Down Expand Up @@ -279,6 +285,7 @@ export const SystemIndicesFlyout = ({
itemIdToExpandedRowMap={expandedRows}
pagination={true}
sorting={true}
tableCaption={i18nTexts.tableCaption}
/>
</>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ export const JsonWatchEditSimulate = ({
<EuiBasicTable
items={watchActions}
itemId="simulateExecutionActionModesTable"
tableCaption={i18n.translate(
'xpack.watcher.sections.watchEdit.simulate.actionModesTableCaption',
{
defaultMessage: 'Action modes for watch execution',
}
)}
columns={columns}
/>
</EuiFormRow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ export const SimulateWatchResultsFlyout = ({
</EuiText>
<EuiSpacer size="m" />
<EuiBasicTable
tableCaption={i18n.translate(
'xpack.watcher.sections.watchEdit.simulateResults.actionsTableCaption',
{
defaultMessage: 'Simulation action results',
}
)}
columns={columns}
items={actionsTableData}
data-test-subj="simulateResultsTable"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ export const WatchListPage = () => {
content = (
<div data-test-subj="watchesTableContainer">
<EuiInMemoryTable
tableCaption={i18n.translate('xpack.watcher.sections.watchList.watchTable.caption', {
defaultMessage: 'List of watches and their status',
})}
onTableChange={({ page: { index, size } }: CriteriaWithPagination<never>) =>
setPagination({ pageIndex: index, pageSize: size })
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ export const ActionStatusesPanel = () => {
pagination={PAGINATION}
sorting={true}
data-test-subj="watchActionStatusTable"
tableCaption={i18n.translate(
'xpack.watcher.sections.watchDetail.watchActionStatusesTable.caption',
{
defaultMessage: 'Action statuses',
}
)}
noItemsMessage={
<FormattedMessage
id="xpack.watcher.sections.watchDetail.watchTable.noWatchesMessage"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,13 @@ export const ExecutionHistoryPanel = () => {
</h4>
</EuiTitle>
<EuiInMemoryTable
tableCaption={i18n.translate(
'xpack.watcher.sections.watchHistory.watchHistoryDetail.actionsTableCaption',
{
defaultMessage: 'Action statuses for execution on {date}',
values: { date: watchHistoryDetails.startTime?.format() },
}
)}
items={(watchHistoryDetails.watchStatus as any).actionStatuses}
itemId="id"
columns={detailColumns}
Expand Down Expand Up @@ -379,6 +386,9 @@ export const ExecutionHistoryPanel = () => {
<EuiSpacer size="s" />

<EuiInMemoryTable
tableCaption={i18n.translate('xpack.watcher.sections.watchHistory.watchTable.caption', {
defaultMessage: 'Watch execution history',
})}
items={history || []}
columns={columns}
pagination={PAGINATION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ export const ComponentTable: FunctionComponent<Props> = ({

const tableProps: EuiInMemoryTableProps<ComponentTemplateListItem> = {
tableLayout: 'auto',
tableCaption: i18n.translate('xpack.idxMgmt.componentTemplatesList.table.tableCaption', {
defaultMessage: 'Component templates list',
}),
itemId: 'name',
'data-test-subj': 'componentTemplatesTable',
sorting,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ export const RelationsParameter = () => {
items={items}
itemId="id"
columns={columns}
tableCaption={i18n.translate(
'xpack.idxMgmt.mappingsEditor.joinType.relationshipTable.caption',
{
defaultMessage: 'Defined relationships',
}
)}
noItemsMessage={i18n.translate(
'xpack.idxMgmt.mappingsEditor.joinType.relationshipTable.emptyTableMessage',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@ export const DataStreamTable: React.FunctionComponent<Props> = ({
'data-test-subj': 'cell',
})}
data-test-subj="dataStreamTable"
tableCaption={i18n.translate('xpack.idxMgmt.dataStreamList.table.caption', {
defaultMessage: 'Data streams',
})}
noItemsMessage={
<FormattedMessage
id="xpack.idxMgmt.dataStreamList.table.noDataStreamsMessage"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ export const PoliciesTable: FunctionComponent<Props> = ({
pagination={pagination}
sorting={sorting}
onTableChange={onTableChange}
tableCaption={i18n.translate('xpack.idxMgmt.enrichPolicies.table.caption', {
defaultMessage: 'Enrich policies',
})}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ export const LegacyTemplateTable: React.FunctionComponent<Props> = ({
'data-test-subj': 'cell',
})}
data-test-subj="legacyTemplateTable"
tableCaption={i18n.translate('xpack.idxMgmt.templateList.legacyTable.tableCaption', {
defaultMessage: 'Legacy index templates',
})}
noItemsMessage={
<FormattedMessage
id="xpack.idxMgmt.templateList.legacyTable.noLegacyIndexTemplatesMessage"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,12 @@ export const TemplateTable: React.FunctionComponent<Props> = ({
'data-test-subj': 'cell',
})}
data-test-subj="templateTable"
tableCaption={i18n.translate(
'xpack.idxMgmt.templateList.table.indexTemplatesTableCaption',
{
defaultMessage: 'Index templates list',
}
)}
noItemsMessage={
<FormattedMessage
id="xpack.idxMgmt.templateList.table.noIndexTemplatesMessage"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ export const GeoipList: React.FunctionComponent = () => {
);
const tableProps: EuiInMemoryTableProps<GeoipDatabase> = {
'data-test-subj': 'geoipDatabaseList',
tableCaption: i18n.translate('xpack.ingestPipelines.manageProcessors.geoip.list.tableCaption', {
defaultMessage: 'List of geoIP databases',
}),
rowProps: () => ({
'data-test-subj': 'geoipDatabaseListRow',
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ export const PipelineTable: FunctionComponent<Props> = ({
const tableProps: EuiInMemoryTableProps<Pipeline> = {
itemId: 'name',
'data-test-subj': 'pipelinesTable',
tableCaption: i18n.translate('xpack.ingestPipelines.list.table.tableCaption', {
defaultMessage: 'List of ingest pipelines',
}),
sorting,
selection: {
onSelectionChange: setSelection,
Expand Down
Loading
Loading