diff --git a/.i18nrc.json b/.i18nrc.json
index 5760f0b36bb0f..fc517369780dd 100644
--- a/.i18nrc.json
+++ b/.i18nrc.json
@@ -10,7 +10,8 @@
"statusPage": "src/core_plugins/status_page",
"tagCloud": "src/core_plugins/tagcloud",
"xpack.idxMgmt": "x-pack/plugins/index_management",
- "xpack.watcher": "x-pack/plugins/watcher"
+ "xpack.watcher": "x-pack/plugins/watcher",
+ "xpack.rollupJobs": "x-pack/plugins/rollup"
},
"exclude": [
"src/ui/ui_render/bootstrap/app_bootstrap.js",
diff --git a/src/core_plugins/kibana/public/management/sections/indices/index.js b/src/core_plugins/kibana/public/management/sections/indices/index.js
index fbe715c6f0f07..e08b52fa1f2e2 100644
--- a/src/core_plugins/kibana/public/management/sections/indices/index.js
+++ b/src/core_plugins/kibana/public/management/sections/indices/index.js
@@ -28,6 +28,7 @@ import indexTemplate from './index.html';
import { SavedObjectsClientProvider } from 'ui/saved_objects';
import { FeatureCatalogueRegistryProvider, FeatureCatalogueCategory } from 'ui/registry/feature_catalogue';
import { i18n } from '@kbn/i18n';
+import { I18nProvider } from '@kbn/i18n/react';
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
@@ -47,11 +48,13 @@ export function updateIndexPatternList(
}
render(
- ,
+
+
+ ,
node,
);
}
diff --git a/src/core_plugins/kibana/public/management/sections/indices/index_pattern_list/components/list/list.js b/src/core_plugins/kibana/public/management/sections/indices/index_pattern_list/components/list/list.js
index 07dd4efbfbcb6..f5ebd8ca70f08 100644
--- a/src/core_plugins/kibana/public/management/sections/indices/index_pattern_list/components/list/list.js
+++ b/src/core_plugins/kibana/public/management/sections/indices/index_pattern_list/components/list/list.js
@@ -19,6 +19,7 @@
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
+import { injectI18n, FormattedMessage } from '@kbn/i18n/react';
import {
EuiButtonEmpty,
@@ -27,35 +28,77 @@ import {
EuiSpacer,
} from '@elastic/eui';
-export class List extends Component {
+class ListUi extends Component {
static propTypes = {
indexPatterns: PropTypes.array,
defaultIndex: PropTypes.string,
}
renderList() {
- const { indexPatterns } = this.props;
- return indexPatterns && indexPatterns.length ? (
-
- {
- indexPatterns.map(pattern => {
- return (
-
-
- {pattern.default ? : ''}
- {pattern.active ? {pattern.title} : pattern.title} {pattern.tag ? (
-
- {{pattern.tag.name} }
-
- ) : null}
-
-
-
- );
- })
- }
-
- ) : null;
+ const { indexPatterns, intl } = this.props;
+
+ if (indexPatterns && indexPatterns.length) {
+ return (
+
+ {
+ indexPatterns.map(pattern => {
+ const { id, default: isDefault, active, url, title, tag } = pattern;
+
+ let icon;
+
+ if (isDefault) {
+ icon = (
+
+
+ {' '}
+
+ );
+ }
+
+ let titleElement;
+
+ if (active) {
+ titleElement =
{title};
+ } else {
+ titleElement = title;
+ }
+
+ let tagElement;
+
+ if (tag) {
+ const { key, color, name } = tag;
+
+ tagElement = (
+
+ {' '}
+ {name}
+
+ );
+ }
+
+ return (
+
+
+ {icon}
+ {titleElement}
+ {tagElement}
+
+
+
+ );
+ })
+ }
+
+ );
+ }
+
+ return null;
}
renderNoDefaultMessage() {
@@ -66,7 +109,12 @@ export class List extends Component {
color="warning"
size="s"
iconType="alert"
- title="No default index pattern. You must select or create one to continue."
+ title={(
+
+ )}
/>
) : null;
@@ -81,3 +129,5 @@ export class List extends Component {
);
}
}
+
+export const List = injectI18n(ListUi);
diff --git a/src/ui/public/management/index_pattern_creation/index_pattern_creation_config.js b/src/ui/public/management/index_pattern_creation/index_pattern_creation_config.js
index a367e18fea654..6f4877b13bddc 100644
--- a/src/ui/public/management/index_pattern_creation/index_pattern_creation_config.js
+++ b/src/ui/public/management/index_pattern_creation/index_pattern_creation_config.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+
import { i18n } from '@kbn/i18n';
const indexPatternTypeName = i18n.translate('common.ui.management.editIndexPattern.createIndex.defaultTypeName',
diff --git a/src/ui/public/utils/parse_es_interval/invalid_es_calendar_interval_error.ts b/src/ui/public/utils/parse_es_interval/invalid_es_calendar_interval_error.ts
index ae4ceb62fbd84..cf4844944e5df 100644
--- a/src/ui/public/utils/parse_es_interval/invalid_es_calendar_interval_error.ts
+++ b/src/ui/public/utils/parse_es_interval/invalid_es_calendar_interval_error.ts
@@ -18,6 +18,7 @@
*/
import { Unit } from '@kbn/datemath';
+import { i18n } from '@kbn/i18n';
export class InvalidEsCalendarIntervalError extends Error {
constructor(
@@ -26,7 +27,12 @@ export class InvalidEsCalendarIntervalError extends Error {
public readonly unit: Unit,
public readonly type: string
) {
- super(`Invalid calendar interval: ${interval}, value must be 1`);
+ super(
+ i18n.translate('common.ui.parseEsInterval.invalidEsCalendarIntervalErrorMessage', {
+ defaultMessage: 'Invalid calendar interval: {interval}, value must be 1',
+ values: { interval },
+ })
+ );
this.name = 'InvalidEsCalendarIntervalError';
this.value = value;
diff --git a/src/ui/public/utils/parse_es_interval/invalid_es_interval_format_error.ts b/src/ui/public/utils/parse_es_interval/invalid_es_interval_format_error.ts
index b13004592e271..ac6b85f447b29 100644
--- a/src/ui/public/utils/parse_es_interval/invalid_es_interval_format_error.ts
+++ b/src/ui/public/utils/parse_es_interval/invalid_es_interval_format_error.ts
@@ -17,9 +17,17 @@
* under the License.
*/
+import { i18n } from '@kbn/i18n';
+
export class InvalidEsIntervalFormatError extends Error {
constructor(public readonly interval: string) {
- super(`Invalid interval format: ${interval}`);
+ super(
+ i18n.translate('common.ui.parseEsInterval.invalidEsIntervalFormatErrorMessage', {
+ defaultMessage: 'Invalid interval format: {interval}',
+ values: { interval },
+ })
+ );
+
this.name = 'InvalidEsIntervalFormatError';
// captureStackTrace is only available in the V8 engine, so any browser using
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/components/index.js b/x-pack/plugins/rollup/public/crud_app/sections/components/index.js
index 7caf2ba79631e..2dd9533a23817 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/components/index.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/components/index.js
@@ -15,6 +15,7 @@ export {
JOB_DETAILS_TAB_HISTOGRAM,
JOB_DETAILS_TAB_METRICS,
JOB_DETAILS_TAB_JSON,
+ tabToHumanizedMap,
} from './job_details';
export { JobStatus } from './job_status';
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/components/job_action_menu/confirm_delete_modal/confirm_delete_modal.js b/x-pack/plugins/rollup/public/crud_app/sections/components/job_action_menu/confirm_delete_modal/confirm_delete_modal.js
index 4e97adf063109..ea810eedcfd38 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/components/job_action_menu/confirm_delete_modal/confirm_delete_modal.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/components/job_action_menu/confirm_delete_modal/confirm_delete_modal.js
@@ -16,7 +16,6 @@ import {
class ConfirmDeleteModalUi extends Component {
static propTypes = {
isSingleSelection: PropTypes.bool.isRequired,
- entity: PropTypes.string.isRequired,
jobs: PropTypes.array.isRequired,
onCancel: PropTypes.func.isRequired,
onConfirm: PropTypes.func.isRequired,
@@ -39,7 +38,6 @@ class ConfirmDeleteModalUi extends Component {
render() {
const {
isSingleSelection,
- entity,
jobs,
onCancel,
onConfirm,
@@ -52,7 +50,7 @@ class ConfirmDeleteModalUi extends Component {
if (isSingleSelection) {
const { id, status } = jobs[0];
title = intl.formatMessage({
- id: 'xpack.rollupJobs.jobActionMenu.deleteJob.confirmModal.modalTitleSingle',
+ id: 'xpack.rollupJobs.jobActionMenu.deleteJob.confirmModal.deleteSingleJobTitle',
defaultMessage: 'Delete rollup job \'{id}\'?',
}, { id });
@@ -60,7 +58,7 @@ class ConfirmDeleteModalUi extends Component {
content = (
@@ -68,7 +66,7 @@ class ConfirmDeleteModalUi extends Component {
}
} else {
title = intl.formatMessage({
- id: 'xpack.rollupJobs.jobActionMenu.deleteJob.confirmModal.modalTitleMultiple',
+ id: 'xpack.rollupJobs.jobActionMenu.deleteJob.confirmModal.multipleDeletionTitle',
defaultMessage: 'Delete {count} rollup jobs?',
}, { count: jobs.length });
@@ -76,12 +74,10 @@ class ConfirmDeleteModalUi extends Component {
- {' '}
- {entity}:
{this.renderJobs()}
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/components/job_action_menu/job_action_menu.js b/x-pack/plugins/rollup/public/crud_app/sections/components/job_action_menu/job_action_menu.js
index b4e3597d007c6..6e7a7de948d3d 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/components/job_action_menu/job_action_menu.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/components/job_action_menu/job_action_menu.js
@@ -53,8 +53,7 @@ class JobActionMenuUi extends Component {
intl,
} = this.props;
- const isSingleSelection = this.isSingleSelection();
- const entity = this.getEntity(isSingleSelection);
+ const isSingleSelection = this.isSingleSelection() ? 1 : 0;
const items = [];
@@ -62,8 +61,10 @@ class JobActionMenuUi extends Component {
items.push({
name: intl.formatMessage({
id: 'xpack.rollupJobs.jobActionMenu.startJobLabel',
- defaultMessage: 'Start {entity}',
- }, { entity }),
+ defaultMessage: 'Start {isSingleSelection, plural, one {job} other {jobs}}',
+ }, {
+ isSingleSelection,
+ }),
icon: ,
onClick: () => {
this.closePopover();
@@ -76,8 +77,10 @@ class JobActionMenuUi extends Component {
items.push({
name: intl.formatMessage({
id: 'xpack.rollupJobs.jobActionMenu.stopJobLabel',
- defaultMessage: 'Stop {entity}',
- }, { entity }),
+ defaultMessage: 'Stop {isSingleSelection, plural, one {job} other {jobs}}',
+ }, {
+ isSingleSelection,
+ }),
icon: ,
onClick: () => {
this.closePopover();
@@ -89,8 +92,10 @@ class JobActionMenuUi extends Component {
items.push({
name: intl.formatMessage({
id: 'xpack.rollupJobs.jobActionMenu.deleteJobLabel',
- defaultMessage: 'Delete {entity}',
- }, { entity }),
+ defaultMessage: 'Delete {isSingleSelection, plural, one {job} other {jobs}}',
+ }, {
+ isSingleSelection,
+ }),
icon: ,
onClick: () => {
this.closePopover();
@@ -98,13 +103,12 @@ class JobActionMenuUi extends Component {
},
});
- const upperCasedEntity = `${entity[0].toUpperCase()}${entity.slice(1)}`;
const panelTree = {
id: 0,
title: intl.formatMessage({
id: 'xpack.rollupJobs.jobActionMenu.panelTitle',
- defaultMessage: '{upperCasedEntity} options',
- }, { upperCasedEntity }),
+ defaultMessage: 'Job options',
+ }),
items,
};
@@ -159,12 +163,10 @@ class JobActionMenuUi extends Component {
};
const isSingleSelection = this.isSingleSelection();
- const entity = this.getEntity(isSingleSelection);
return (
{
- return isSingleSelection ? 'job' : 'jobs';
- };
-
render() {
const { intl } = this.props;
const jobCount = this.props.jobs.length;
@@ -195,12 +193,12 @@ class JobActionMenuUi extends Component {
} = this.props;
const panels = this.panels();
- const isSingleSelection = this.isSingleSelection();
- const entity = this.getEntity(isSingleSelection);
+
const actionsAriaLabel = intl.formatMessage({
id: 'xpack.rollupJobs.jobActionMenu.jobActionMenuButtonAriaLabel',
- defaultMessage: '{entity} options',
- }, { entity });
+ defaultMessage: 'Job options',
+ });
+
const button = (
{this.confirmDeleteModal()}
+ ),
+ [JOB_DETAILS_TAB_TERMS]: (
+
+ ),
+ [JOB_DETAILS_TAB_HISTOGRAM]: (
+
+ ),
+ [JOB_DETAILS_TAB_METRICS]: (
+
+ ),
+ [JOB_DETAILS_TAB_JSON]: (
+
+ ),
+};
const JOB_DETAILS_TABS = [
JOB_DETAILS_TAB_SUMMARY,
@@ -43,22 +77,22 @@ export const JobDetails = ({
} = job;
const tabToContentMap = {
- Summary: (
+ [JOB_DETAILS_TAB_SUMMARY]: (
),
- Terms: (
+ [JOB_DETAILS_TAB_TERMS]: (
),
- Histogram: (
+ [JOB_DETAILS_TAB_HISTOGRAM]: (
),
- Metrics: (
+ [JOB_DETAILS_TAB_METRICS]: (
),
- JSON: (
+ [JOB_DETAILS_TAB_JSON]: (
),
};
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_histogram.js b/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_histogram.js
index 224a27ccf6b07..f2005d60d1ad0 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_histogram.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_histogram.js
@@ -5,7 +5,7 @@
*/
import React, { Fragment } from 'react';
-import { injectI18n, FormattedMessage } from '@kbn/i18n/react';
+import { FormattedMessage } from '@kbn/i18n/react';
import { i18n } from '@kbn/i18n';
import {
@@ -25,7 +25,7 @@ const columns = [{
sortable: true,
}];
-export const TabHistogramUi = ({ histogram, histogramInterval }) => (
+export const TabHistogram = ({ histogram, histogramInterval }) => (
@@ -48,5 +48,3 @@ export const TabHistogramUi = ({ histogram, histogramInterval }) => (
/>
);
-
-export const TabHistogram = injectI18n(TabHistogramUi);
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_summary.js b/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_summary.js
index 3279916252320..16d65f295d9d5 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_summary.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_summary.js
@@ -6,7 +6,7 @@
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
-import { injectI18n, FormattedMessage } from '@kbn/i18n/react';
+import { FormattedMessage } from '@kbn/i18n/react';
import {
EuiDescriptionList,
@@ -21,7 +21,7 @@ import {
import { JobStatus } from '../../job_status';
-export class TabSummaryUi extends Component {
+export class TabSummary extends Component {
static propTypes = {
job: PropTypes.object.isRequired,
stats: PropTypes.object,
@@ -292,5 +292,3 @@ export class TabSummaryUi extends Component {
);
}
}
-
-export const TabSummary = injectI18n(TabSummaryUi);
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_terms.js b/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_terms.js
index 82fd0c2ca1824..2f7af57c62976 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_terms.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/components/job_details/tabs/tab_terms.js
@@ -5,7 +5,6 @@
*/
import React from 'react';
-import { injectI18n } from '@kbn/i18n/react';
import { FieldList } from '../../field_list';
@@ -16,11 +15,9 @@ const columns = [{
sortable: true,
}];
-export const TabTermsUi = ({ terms }) => (
+export const TabTerms = ({ terms }) => (
);
-
-export const TabTerms = injectI18n(TabTermsUi);
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/components/job_status/job_status.js b/x-pack/plugins/rollup/public/crud_app/sections/components/job_status/job_status.js
index 1bd9c4821c54c..2e830bd02e05c 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/components/job_status/job_status.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/components/job_status/job_status.js
@@ -5,6 +5,7 @@
*/
import React from 'react';
+import { FormattedMessage } from '@kbn/i18n/react';
import {
EuiHealth,
@@ -13,22 +14,34 @@ import {
const statusToHealthMap = {
stopped: (
- Stopped
+
),
started: (
- Started
+
),
indexing: (
- Indexing
+
),
abort: (
- Aborting
+
),
};
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/job_create/job_create.js b/x-pack/plugins/rollup/public/crud_app/sections/job_create/job_create.js
index 446e968b9eb19..57ba9681c2d62 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/job_create/job_create.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/job_create/job_create.js
@@ -56,22 +56,22 @@ import {
} from './steps_config';
const stepIdToTitleMap = {
- [STEP_LOGISTICS]: i18n.translate('xpack.rollupJobs.create.stepLogisticsTitle', {
+ [STEP_LOGISTICS]: i18n.translate('xpack.rollupJobs.create.steps.stepLogisticsTitle', {
defaultMessage: 'Logistics',
}),
- [STEP_DATE_HISTOGRAM]: i18n.translate('xpack.rollupJobs.create.stepDateHistogramTitle', {
+ [STEP_DATE_HISTOGRAM]: i18n.translate('xpack.rollupJobs.create.steps.stepDateHistogramTitle', {
defaultMessage: 'Date histogram',
}),
- [STEP_TERMS]: i18n.translate('xpack.rollupJobs.create.stepTermsTitle', {
+ [STEP_TERMS]: i18n.translate('xpack.rollupJobs.create.steps.stepTermsTitle', {
defaultMessage: 'Terms',
}),
- [STEP_HISTOGRAM]: i18n.translate('xpack.rollupJobs.create.stepHistogramTitle', {
+ [STEP_HISTOGRAM]: i18n.translate('xpack.rollupJobs.create.steps.stepHistogramTitle', {
defaultMessage: 'Histogram',
}),
- [STEP_METRICS]: i18n.translate('xpack.rollupJobs.create.stepMetricsTitle', {
+ [STEP_METRICS]: i18n.translate('xpack.rollupJobs.create.steps.stepMetricsTitle', {
defaultMessage: 'Metrics',
}),
- [STEP_REVIEW]: i18n.translate('xpack.rollupJobs.create.stepReviewTitle', {
+ [STEP_REVIEW]: i18n.translate('xpack.rollupJobs.create.steps.stepReviewTitle', {
defaultMessage: 'Review and save',
}),
};
@@ -416,7 +416,7 @@ export class JobCreateUi extends Component {
const breadcrumbs = [{
text: (
),
@@ -424,7 +424,7 @@ export class JobCreateUi extends Component {
}, {
text: (
),
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_date_histogram.js b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_date_histogram.js
index 2ef947c4444ce..9d5e04f175768 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_date_histogram.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_date_histogram.js
@@ -235,7 +235,7 @@ export class StepDateHistogramUi extends Component {
link: (
@@ -247,9 +247,7 @@ export class StepDateHistogramUi extends Component {
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_histogram.js b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_histogram.js
index edcd8109ec5d3..8197da2709bc7 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_histogram.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_histogram.js
@@ -96,10 +96,8 @@ export class StepHistogramUi extends Component {
@@ -190,12 +188,10 @@ export class StepHistogramUi extends Component {
description={(
)}
fullWidth
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_logistics.js b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_logistics.js
index 8cc55499e0923..a72791b513e54 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_logistics.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_logistics.js
@@ -157,22 +157,14 @@ export class StepLogisticsUi extends Component {
error={errorRollupCron}
isInvalid={Boolean(areStepErrorsVisible && errorRollupCron)}
helpText={(
-
-
+
+
-
-
- ) }}
+ id="xpack.rollupJobs.create.stepLogistics.fieldCron.helpReferenceLinkLabel"
+ defaultMessage="Learn more about cron expressions"
/>
-
-
+
+
)}
fullWidth
>
@@ -187,7 +179,7 @@ export class StepLogisticsUi extends Component {
@@ -270,7 +262,7 @@ export class StepLogisticsUi extends Component {
@@ -416,9 +408,7 @@ export class StepLogisticsUi extends Component {
description={(
)}
fullWidth
@@ -440,10 +430,7 @@ export class StepLogisticsUi extends Component {
description={(
)}
fullWidth
@@ -474,7 +461,7 @@ export class StepLogisticsUi extends Component {
@@ -483,11 +470,9 @@ export class StepLogisticsUi extends Component {
description={(
)}
fullWidth
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_metrics.js b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_metrics.js
index 5dae20b2e889e..944c605d1fa70 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_metrics.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_metrics.js
@@ -189,10 +189,8 @@ export class StepMetricsUi extends Component {
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_review.js b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_review.js
index 390ae10a7714b..bccc20f8b555b 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_review.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_review.js
@@ -9,6 +9,7 @@ import PropTypes from 'prop-types';
import { injectI18n, FormattedMessage } from '@kbn/i18n/react';
import {
+ EuiErrorBoundary,
EuiSpacer,
EuiTab,
EuiTabs,
@@ -24,6 +25,7 @@ import {
JOB_DETAILS_TAB_HISTOGRAM,
JOB_DETAILS_TAB_METRICS,
JOB_DETAILS_TAB_JSON,
+ tabToHumanizedMap,
} from '../../components';
const JOB_DETAILS_TABS = [
@@ -81,7 +83,7 @@ export class StepReviewUi extends Component {
data-test-subj={`stepReviewTab${isSelected ? 'Selected' : ''}`}
key={index}
>
- {tab}
+ {tabToHumanizedMap[tab]}
);
});
@@ -119,11 +121,13 @@ export class StepReviewUi extends Component {
{this.renderTabs()}
-
+
+
+
);
}
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_terms.js b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_terms.js
index 07673aea04056..a5568b987d837 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_terms.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps/step_terms.js
@@ -96,11 +96,9 @@ export class StepTermsUi extends Component {
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps_config/validate_rollup_index.js b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps_config/validate_rollup_index.js
index a5e6271e87182..487f70c55428a 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps_config/validate_rollup_index.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/job_create/steps_config/validate_rollup_index.js
@@ -67,7 +67,7 @@ export function validateRollupIndex(rollupIndex, indexPattern) {
if (rollupIndex[0] === '.') {
return [(
)];
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/job_list/detail_panel/detail_panel.js b/x-pack/plugins/rollup/public/crud_app/sections/job_list/detail_panel/detail_panel.js
index 42be5ccf9e857..cfb6903fcb6d2 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/job_list/detail_panel/detail_panel.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/job_list/detail_panel/detail_panel.js
@@ -9,6 +9,7 @@ import PropTypes from 'prop-types';
import { injectI18n, FormattedMessage } from '@kbn/i18n/react';
import {
+ EuiErrorBoundary,
EuiFlexGroup,
EuiFlexItem,
EuiFlyout,
@@ -33,6 +34,7 @@ import {
JOB_DETAILS_TAB_HISTOGRAM,
JOB_DETAILS_TAB_METRICS,
JOB_DETAILS_TAB_JSON,
+ tabToHumanizedMap,
} from '../../components';
const JOB_DETAILS_TABS = [
@@ -98,7 +100,7 @@ export class DetailPanelUi extends Component {
data-test-subj={`detailPanelTab${isSelected ? 'Selected' : ''}`}
key={index}
>
- {tab}
+ {tabToHumanizedMap[tab]}
);
});
@@ -136,12 +138,14 @@ export class DetailPanelUi extends Component {
return (
-
+
+
+
diff --git a/x-pack/plugins/rollup/public/crud_app/sections/job_list/job_list.js b/x-pack/plugins/rollup/public/crud_app/sections/job_list/job_list.js
index 207e7b701350d..7c292181e76da 100644
--- a/x-pack/plugins/rollup/public/crud_app/sections/job_list/job_list.js
+++ b/x-pack/plugins/rollup/public/crud_app/sections/job_list/job_list.js
@@ -141,9 +141,8 @@ export class JobListUi extends Component {