diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/about_panel/about_panel.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/about_panel/about_panel.tsx index c8592179e18e3..e4f59c492fa1c 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/about_panel/about_panel.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/about_panel/about_panel.tsx @@ -43,7 +43,7 @@ export const AboutPanel: FC = ({ onFilePickerChange }) => { {

diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/about_panel/welcome_content.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/about_panel/welcome_content.tsx index 94e27caa20fe0..8df5557fa1c2f 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/about_panel/welcome_content.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/about_panel/welcome_content.tsx @@ -25,7 +25,7 @@ import { getMaxBytesFormatted } from '../../../../../file_upload/public'; export const WelcomeContent: FC = () => { const toolTipContent = i18n.translate( - 'xpack.fileUpload.welcomeContent.experimentalFeatureTooltip', + 'xpack.fileDataVisualizer.welcomeContent.experimentalFeatureTooltip', { defaultMessage: "Experimental feature. We'd love to hear your feedback.", } @@ -42,7 +42,7 @@ export const WelcomeContent: FC = () => {

, @@ -54,7 +54,7 @@ export const WelcomeContent: FC = () => {

@@ -64,7 +64,7 @@ export const WelcomeContent: FC = () => {

@@ -78,7 +78,7 @@ export const WelcomeContent: FC = () => {

@@ -94,7 +94,7 @@ export const WelcomeContent: FC = () => {

@@ -110,7 +110,7 @@ export const WelcomeContent: FC = () => {

@@ -121,7 +121,7 @@ export const WelcomeContent: FC = () => {

@@ -131,7 +131,7 @@ export const WelcomeContent: FC = () => {

= ({ re

@@ -37,7 +37,7 @@ function createDisplayItems(results: FindFileStructureResponse) { { title: ( ), @@ -53,7 +53,7 @@ function createDisplayItems(results: FindFileStructureResponse) { items.push({ title: ( ), @@ -64,7 +64,7 @@ function createDisplayItems(results: FindFileStructureResponse) { items.push({ title: ( ), @@ -74,7 +74,7 @@ function createDisplayItems(results: FindFileStructureResponse) { items.push({ title: ( ), @@ -87,7 +87,7 @@ function createDisplayItems(results: FindFileStructureResponse) { items.push({ title: ( ), @@ -99,7 +99,7 @@ function createDisplayItems(results: FindFileStructureResponse) { items.push({ title: ( ), @@ -111,7 +111,7 @@ function createDisplayItems(results: FindFileStructureResponse) { items.push({ title: ( = ({ mode, onChangeMode, onCancel, di content={ disableImport ? ( ) : null @@ -52,7 +52,7 @@ export const BottomBar: FC = ({ mode, onChangeMode, onCancel, di data-test-subj="mlFileDataVisOpenImportPageButton" > @@ -61,7 +61,7 @@ export const BottomBar: FC = ({ mode, onChangeMode, onCancel, di onCancel()}> @@ -76,7 +76,7 @@ export const BottomBar: FC = ({ mode, onChangeMode, onCancel, di onChangeMode(DATAVISUALIZER_MODE.READ)}> @@ -84,7 +84,7 @@ export const BottomBar: FC = ({ mode, onChangeMode, onCancel, di onCancel()}> diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/combined_fields_form.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/combined_fields_form.tsx index b16f3ec79323a..aef6bcfced3ff 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/combined_fields_form.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/combined_fields_form.tsx @@ -114,7 +114,7 @@ export class CombinedFieldsForm extends Component { return JSON.parse(this.props.mappingsString); } catch (error) { throw new Error( - i18n.translate('xpack.fileUpload.combinedFieldsForm.mappingsParseError', { + i18n.translate('xpack.fileDataVisualizer.combinedFieldsForm.mappingsParseError', { defaultMessage: 'Error parsing mappings: {error}', values: { error: error.message }, }) @@ -127,7 +127,7 @@ export class CombinedFieldsForm extends Component { return JSON.parse(this.props.pipelineString); } catch (error) { throw new Error( - i18n.translate('xpack.fileUpload.combinedFieldsForm.pipelineParseError', { + i18n.translate('xpack.fileDataVisualizer.combinedFieldsForm.pipelineParseError', { defaultMessage: 'Error parsing pipeline: {error}', values: { error: error.message }, }) @@ -153,7 +153,7 @@ export class CombinedFieldsForm extends Component { }; render() { - const geoPointLabel = i18n.translate('xpack.fileUpload.geoPointCombinedFieldLabel', { + const geoPointLabel = i18n.translate('xpack.fileDataVisualizer.geoPointCombinedFieldLabel', { defaultMessage: 'Add geo point field', }); const panels = [ @@ -180,7 +180,7 @@ export class CombinedFieldsForm extends Component { ]; return ( @@ -196,12 +196,15 @@ export class CombinedFieldsForm extends Component { iconType="trash" color="danger" onClick={this.removeCombinedField.bind(null, idx)} - title={i18n.translate('xpack.fileUpload.removeCombinedFieldsLabel', { - defaultMessage: 'Remove combined field', - })} - aria-label={i18n.translate('xpack.fileUpload.removeCombinedFieldsLabel', { + title={i18n.translate('xpack.fileDataVisualizer.removeCombinedFieldsLabel', { defaultMessage: 'Remove combined field', })} + aria-label={i18n.translate( + 'xpack.fileDataVisualizer.removeCombinedFieldsLabel', + { + defaultMessage: 'Remove combined field', + } + )} /> )} @@ -217,7 +220,7 @@ export class CombinedFieldsForm extends Component { isDisabled={this.props.isDisabled} > diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/combined_fields_read_only_form.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/combined_fields_read_only_form.tsx index 630ad746720fc..978383f8e5e10 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/combined_fields_read_only_form.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/combined_fields_read_only_form.tsx @@ -20,10 +20,10 @@ export function CombinedFieldsReadOnlyForm({ }) { return combinedFields.length ? ( diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/geo_point.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/geo_point.tsx index 1b8f2de644d5f..e2cf9916d6665 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/geo_point.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/geo_point.tsx @@ -119,7 +119,7 @@ export class GeoPointForm extends Component { return ( @@ -131,7 +131,7 @@ export class GeoPointForm extends Component { @@ -143,7 +143,7 @@ export class GeoPointForm extends Component { { value={this.state.geoPointField} onChange={this.onGeoPointFieldChange} isInvalid={this.state.geoPointFieldError !== ''} - aria-label={i18n.translate('xpack.fileUpload.geoPointForm.geoPointFieldAriaLabel', { - defaultMessage: 'Geo point field, required field', - })} + aria-label={i18n.translate( + 'xpack.fileDataVisualizer.geoPointForm.geoPointFieldAriaLabel', + { + defaultMessage: 'Geo point field, required field', + } + )} /> @@ -176,7 +179,7 @@ export class GeoPointForm extends Component { onClick={this.onSubmit} > diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/utils.ts b/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/utils.ts index 0527af9a8b225..1537521bb84a6 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/utils.ts +++ b/x-pack/plugins/file_data_visualizer/public/application/components/combined_fields/utils.ts @@ -123,7 +123,7 @@ export function createGeoPointCombinedField( } export function getNameCollisionMsg(name: string) { - return i18n.translate('xpack.fileUpload.nameCollisionMsg', { + return i18n.translate('xpack.fileDataVisualizer.nameCollisionMsg', { defaultMessage: '"{name}" already exists, please provide a unique name', values: { name }, }); diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/__snapshots__/overrides.test.js.snap b/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/__snapshots__/overrides.test.js.snap index 18e63c7d6af05..00dd652457daf 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/__snapshots__/overrides.test.js.snap +++ b/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/__snapshots__/overrides.test.js.snap @@ -13,7 +13,7 @@ exports[`Overrides render overrides 1`] = ` label={ } @@ -33,7 +33,7 @@ exports[`Overrides render overrides 1`] = ` label={ } @@ -94,7 +94,7 @@ exports[`Overrides render overrides 1`] = ` label={ } @@ -335,7 +335,7 @@ exports[`Overrides render overrides 1`] = ` label={ } diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/edit_flyout.js b/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/edit_flyout.js index 41a784c91a261..7cdee6f823bd6 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/edit_flyout.js +++ b/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/edit_flyout.js @@ -69,7 +69,7 @@ export class EditFlyout extends Component {

@@ -96,7 +96,7 @@ export class EditFlyout extends Component { @@ -108,7 +108,7 @@ export class EditFlyout extends Component { fill > diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/overrides.js b/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/overrides.js index 3a820bf5b9778..cb0839b335a97 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/overrides.js +++ b/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/overrides.js @@ -52,7 +52,7 @@ class OverridesUI extends Component { } linesToSampleErrors = i18n.translate( - 'xpack.fileUpload.editFlyout.overrides.linesToSampleErrorMessage', + 'xpack.fileDataVisualizer.editFlyout.overrides.linesToSampleErrorMessage', { defaultMessage: 'Value must be greater than {min} and less than or equal to {max}', values: { @@ -63,7 +63,7 @@ class OverridesUI extends Component { ); customTimestampFormatErrors = i18n.translate( - 'xpack.fileUpload.editFlyout.overrides.customTimestampFormatErrorMessage', + 'xpack.fileDataVisualizer.editFlyout.overrides.customTimestampFormatErrorMessage', { defaultMessage: `Timestamp format must be a combination of these Java date/time formats: yy, yyyy, M, MM, MMM, MMMM, d, dd, EEE, EEEE, H, HH, h, mm, ss, S through SSSSSSSSS, a, XX, XXX, zzz`, @@ -274,7 +274,7 @@ class OverridesUI extends Component { const timestampFormatHelp = ( - {i18n.translate('xpack.fileUpload.editFlyout.overrides.timestampFormatHelpText', { + {i18n.translate('xpack.fileDataVisualizer.editFlyout.overrides.timestampFormatHelpText', { defaultMessage: 'See more on accepted formats', })} @@ -288,7 +288,7 @@ class OverridesUI extends Component { isInvalid={linesToSampleValid === false} label={ } @@ -303,7 +303,7 @@ class OverridesUI extends Component { } @@ -321,7 +321,7 @@ class OverridesUI extends Component { } @@ -338,7 +338,7 @@ class OverridesUI extends Component { } @@ -350,7 +350,7 @@ class OverridesUI extends Component { } @@ -369,7 +369,7 @@ class OverridesUI extends Component { id={'hasHeaderRow'} label={ } @@ -383,7 +383,7 @@ class OverridesUI extends Component { id={'shouldTrimFields'} label={ } @@ -398,7 +398,7 @@ class OverridesUI extends Component { } @@ -415,7 +415,7 @@ class OverridesUI extends Component { helpText={timestampFormatHelp} label={ } @@ -434,7 +434,7 @@ class OverridesUI extends Component { isInvalid={timestampFormatValid === false} label={ } @@ -450,7 +450,7 @@ class OverridesUI extends Component { } @@ -480,7 +480,7 @@ class OverridesUI extends Component {

diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/overrides_validation.js b/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/overrides_validation.js index 1356f7dccf6a9..c833d55351b6d 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/overrides_validation.js +++ b/x-pack/plugins/file_data_visualizer/public/application/components/edit_flyout/overrides_validation.js @@ -41,7 +41,7 @@ export function isTimestampFormatValid(timestampFormat) { if (timestampFormat.indexOf('?') >= 0) { result.isValid = false; result.errorMessage = i18n.translate( - 'xpack.fileUpload.editFlyout.overrides.timestampQuestionMarkValidationErrorMessage', + 'xpack.fileDataVisualizer.editFlyout.overrides.timestampQuestionMarkValidationErrorMessage', { defaultMessage: 'Timestamp format {timestampFormat} not supported because it contains a question mark character ({fieldPlaceholder})', @@ -86,7 +86,7 @@ export function isTimestampFormatValid(timestampFormat) { result.isValid = false; result.errorMessage = i18n.translate( - 'xpack.fileUpload.editFlyout.overrides.timestampLetterValidationErrorMessage', + 'xpack.fileDataVisualizer.editFlyout.overrides.timestampLetterValidationErrorMessage', { defaultMessage: 'Letter { length, plural, one { {lg} } other { group {lg} } } in {format} is not supported', @@ -101,7 +101,7 @@ export function isTimestampFormatValid(timestampFormat) { if (curChar === 'S') { // disable exceeds maximum line length error so i18n check passes result.errorMessage = i18n.translate( - 'xpack.fileUpload.editFlyout.overrides.timestampLetterSValidationErrorMessage', + 'xpack.fileDataVisualizer.editFlyout.overrides.timestampLetterSValidationErrorMessage', { defaultMessage: 'Letter { length, plural, one { {lg} } other { group {lg} } } in {format} is not supported because it is not preceded by ss and a separator from {sep}', // eslint-disable-line @@ -128,7 +128,7 @@ export function isTimestampFormatValid(timestampFormat) { if (prevLetterGroup == null) { result.isValid = false; result.errorMessage = i18n.translate( - 'xpack.fileUpload.editFlyout.overrides.timestampEmptyValidationErrorMessage', + 'xpack.fileDataVisualizer.editFlyout.overrides.timestampEmptyValidationErrorMessage', { defaultMessage: 'No time format letter groups in timestamp format {timestampFormat}', values: { diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/examples_list/examples_list.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/examples_list/examples_list.tsx index f02e853779b29..202562a3fa80d 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/examples_list/examples_list.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/examples_list/examples_list.tsx @@ -23,7 +23,7 @@ export const ExamplesList: FC = ({ examples }) => { if (examples.length === 0) { examplesContent = ( ); @@ -44,7 +44,7 @@ export const ExamplesList: FC = ({ examples }) => {
= ({ tooltipConte className="ml-experimental-badge" label={ } diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/explanation_flyout/explanation_flyout.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/explanation_flyout/explanation_flyout.tsx index 4c89307d286d1..a7f6e86293966 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/explanation_flyout/explanation_flyout.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/explanation_flyout/explanation_flyout.tsx @@ -34,7 +34,7 @@ export const ExplanationFlyout: FC = ({ results, closeFlyout }) => {

@@ -48,7 +48,7 @@ export const ExplanationFlyout: FC = ({ results, closeFlyout }) => { @@ -63,7 +63,7 @@ const Content: FC<{ explanation: string[] }> = ({ explanation }) => ( <> diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/field_data_row/number_content_preview.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/field_data_row/number_content_preview.tsx index fb097de7c2f1d..c02976cdb3853 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/field_data_row/number_content_preview.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/field_data_row/number_content_preview.tsx @@ -24,20 +24,26 @@ export const FileBasedNumberContentPreview = ({ config }: { config: FileBasedFie - + - + diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/field_names_filter/field_names_filter.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/field_names_filter/field_names_filter.tsx index eb5b0fa48fe90..466722adc7179 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/field_names_filter/field_names_filter.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/field_names_filter/field_names_filter.tsx @@ -26,7 +26,7 @@ export const DataVisualizerFieldNamesFilter: FC = ({ }) => { const fieldNameTitle = useMemo( () => - i18n.translate('xpack.fileUpload.fieldNameSelect', { + i18n.translate('xpack.fileDataVisualizer.fieldNameSelect', { defaultMessage: 'Field name', }), [] diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/field_type_icon/field_type_icon.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/field_type_icon/field_type_icon.tsx index 3d066a121c693..9c7d32ccf45e6 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/field_type_icon/field_type_icon.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/field_type_icon/field_type_icon.tsx @@ -91,7 +91,7 @@ export const FieldTypeIcon: FC = ({ return ( = ({ }) => { const fieldNameTitle = useMemo( () => - i18n.translate('xpack.fileUpload.fieldTypeSelect', { + i18n.translate('xpack.fileDataVisualizer.fieldTypeSelect', { defaultMessage: 'Field type', }), [] diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/file_contents/file_contents.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/file_contents/file_contents.tsx index 46bab8c44df46..4b9ade182aa67 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/file_contents/file_contents.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/file_contents/file_contents.tsx @@ -31,7 +31,7 @@ export const FileContents: FC = ({ data, format, numberOfLines }) => {

@@ -39,7 +39,7 @@ export const FileContents: FC = ({ data, format, numberOfLines }) => {
), diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/file_datavisualizer_view/file_error_callouts.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/file_datavisualizer_view/file_error_callouts.tsx index c77805a3c0c60..732a8fa91b52c 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/file_datavisualizer_view/file_error_callouts.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/file_datavisualizer_view/file_error_callouts.tsx @@ -30,7 +30,7 @@ export const FileTooLarge: FC = ({ fileSize, maxFileSize }) = errorText = (

= ({ fileSize, maxFileSize }) = errorText = (

= ({ fileSize, maxFileSize }) = } @@ -91,7 +91,7 @@ export const FileCouldNotBeRead: FC = ({ } @@ -102,13 +102,13 @@ export const FileCouldNotBeRead: FC = ({ {loaded === false && ( <>
@@ -121,7 +121,7 @@ export const FileCouldNotBeRead: FC = ({ <> diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/filebeat_config_flyout/filebeat_config.ts b/x-pack/plugins/file_data_visualizer/public/application/components/filebeat_config_flyout/filebeat_config.ts index f21138df10ac7..035ea592f7f7f 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/filebeat_config_flyout/filebeat_config.ts +++ b/x-pack/plugins/file_data_visualizer/public/application/components/filebeat_config_flyout/filebeat_config.ts @@ -36,7 +36,7 @@ export function createFilebeatConfig( } function getPaths() { - const txt = i18n.translate('xpack.fileUpload.fileBeatConfig.paths', { + const txt = i18n.translate('xpack.fileDataVisualizer.fileBeatConfig.paths', { defaultMessage: 'add path to your files here', }); return [' paths:', ` - '<${txt}>'`]; diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/filebeat_config_flyout/filebeat_config_flyout.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/filebeat_config_flyout/filebeat_config_flyout.tsx index 41e5667b025ea..d7c0c160d7bd9 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/filebeat_config_flyout/filebeat_config_flyout.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/filebeat_config_flyout/filebeat_config_flyout.tsx @@ -75,7 +75,7 @@ export const FilebeatConfigFlyout: FC = ({ @@ -85,7 +85,7 @@ export const FilebeatConfigFlyout: FC = ({ {(copy) => ( @@ -108,7 +108,7 @@ const Contents: FC<{

@@ -116,14 +116,14 @@ const Contents: FC<{

{index} }} />

filebeat.yml }} /> @@ -137,7 +137,7 @@ const Contents: FC<{

{username === null ? ( {''}, @@ -145,7 +145,7 @@ const Contents: FC<{ /> ) : ( {username}, diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/import_errors/errors.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/import_errors/errors.tsx index 719fcc8ba8001..5a6f78a1a3068 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/import_errors/errors.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/import_errors/errors.tsx @@ -38,56 +38,56 @@ function title(statuses: Statuses) { case statuses.readStatus: return ( ); case statuses.parseJSONStatus: return ( ); case statuses.indexCreatedStatus: return ( ); case statuses.ingestPipelineCreatedStatus: return ( ); case statuses.uploadStatus: return ( ); case statuses.indexPatternCreatedStatus: return ( ); case statuses.permissionCheckStatus: return ( ); default: return ( ); @@ -105,7 +105,7 @@ const ImportError: FC<{ error: any }> = ({ error }) => { id="more" buttonContent={ } @@ -151,7 +151,7 @@ function toString(error: any): ImportError { } return { - msg: i18n.translate('xpack.fileUpload.importErrors.unknownErrorMessage', { + msg: i18n.translate('xpack.fileDataVisualizer.importErrors.unknownErrorMessage', { defaultMessage: 'Unknown error', }), }; diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/import_progress/import_progress.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/import_progress/import_progress.tsx index 44d3584e1262d..8296a4885bf2c 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/import_progress/import_progress.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/import_progress/import_progress.tsx @@ -79,23 +79,32 @@ export const ImportProgress: FC<{ statuses: Statuses }> = ({ statuses }) => { completedStep = 5; } - let processFileTitle = i18n.translate('xpack.fileUpload.importProgress.processFileTitle', { - defaultMessage: 'Process file', - }); - let createIndexTitle = i18n.translate('xpack.fileUpload.importProgress.createIndexTitle', { - defaultMessage: 'Create index', - }); + let processFileTitle = i18n.translate( + 'xpack.fileDataVisualizer.importProgress.processFileTitle', + { + defaultMessage: 'Process file', + } + ); + let createIndexTitle = i18n.translate( + 'xpack.fileDataVisualizer.importProgress.createIndexTitle', + { + defaultMessage: 'Create index', + } + ); let createIngestPipelineTitle = i18n.translate( - 'xpack.fileUpload.importProgress.createIngestPipelineTitle', + 'xpack.fileDataVisualizer.importProgress.createIngestPipelineTitle', { defaultMessage: 'Create ingest pipeline', } ); - let uploadingDataTitle = i18n.translate('xpack.fileUpload.importProgress.uploadDataTitle', { - defaultMessage: 'Upload data', - }); + let uploadingDataTitle = i18n.translate( + 'xpack.fileDataVisualizer.importProgress.uploadDataTitle', + { + defaultMessage: 'Upload data', + } + ); let createIndexPatternTitle = i18n.translate( - 'xpack.fileUpload.importProgress.createIndexPatternTitle', + 'xpack.fileDataVisualizer.importProgress.createIndexPatternTitle', { defaultMessage: 'Create index pattern', } @@ -104,7 +113,7 @@ export const ImportProgress: FC<{ statuses: Statuses }> = ({ statuses }) => { const creatingIndexStatus = (

@@ -113,41 +122,50 @@ export const ImportProgress: FC<{ statuses: Statuses }> = ({ statuses }) => { const creatingIndexAndIngestPipelineStatus = (

); if (completedStep >= 0) { - processFileTitle = i18n.translate('xpack.fileUpload.importProgress.processingFileTitle', { - defaultMessage: 'Processing file', - }); + processFileTitle = i18n.translate( + 'xpack.fileDataVisualizer.importProgress.processingFileTitle', + { + defaultMessage: 'Processing file', + } + ); statusInfo = (

); } if (completedStep >= 1) { - processFileTitle = i18n.translate('xpack.fileUpload.importProgress.fileProcessedTitle', { - defaultMessage: 'File processed', - }); - createIndexTitle = i18n.translate('xpack.fileUpload.importProgress.creatingIndexTitle', { - defaultMessage: 'Creating index', - }); + processFileTitle = i18n.translate( + 'xpack.fileDataVisualizer.importProgress.fileProcessedTitle', + { + defaultMessage: 'File processed', + } + ); + createIndexTitle = i18n.translate( + 'xpack.fileDataVisualizer.importProgress.creatingIndexTitle', + { + defaultMessage: 'Creating index', + } + ); statusInfo = createPipeline === true ? creatingIndexAndIngestPipelineStatus : creatingIndexStatus; } if (completedStep >= 2) { - createIndexTitle = i18n.translate('xpack.fileUpload.importProgress.indexCreatedTitle', { + createIndexTitle = i18n.translate('xpack.fileDataVisualizer.importProgress.indexCreatedTitle', { defaultMessage: 'Index created', }); createIngestPipelineTitle = i18n.translate( - 'xpack.fileUpload.importProgress.creatingIngestPipelineTitle', + 'xpack.fileDataVisualizer.importProgress.creatingIngestPipelineTitle', { defaultMessage: 'Creating ingest pipeline', } @@ -157,23 +175,29 @@ export const ImportProgress: FC<{ statuses: Statuses }> = ({ statuses }) => { } if (completedStep >= 3) { createIngestPipelineTitle = i18n.translate( - 'xpack.fileUpload.importProgress.ingestPipelineCreatedTitle', + 'xpack.fileDataVisualizer.importProgress.ingestPipelineCreatedTitle', { defaultMessage: 'Ingest pipeline created', } ); - uploadingDataTitle = i18n.translate('xpack.fileUpload.importProgress.uploadingDataTitle', { - defaultMessage: 'Uploading data', - }); + uploadingDataTitle = i18n.translate( + 'xpack.fileDataVisualizer.importProgress.uploadingDataTitle', + { + defaultMessage: 'Uploading data', + } + ); statusInfo = ; } if (completedStep >= 4) { - uploadingDataTitle = i18n.translate('xpack.fileUpload.importProgress.dataUploadedTitle', { - defaultMessage: 'Data uploaded', - }); + uploadingDataTitle = i18n.translate( + 'xpack.fileDataVisualizer.importProgress.dataUploadedTitle', + { + defaultMessage: 'Data uploaded', + } + ); if (createIndexPattern === true) { createIndexPatternTitle = i18n.translate( - 'xpack.fileUpload.importProgress.creatingIndexPatternTitle', + 'xpack.fileDataVisualizer.importProgress.creatingIndexPatternTitle', { defaultMessage: 'Creating index pattern', } @@ -181,7 +205,7 @@ export const ImportProgress: FC<{ statuses: Statuses }> = ({ statuses }) => { statusInfo = (

@@ -192,7 +216,7 @@ export const ImportProgress: FC<{ statuses: Statuses }> = ({ statuses }) => { } if (completedStep >= 5) { createIndexPatternTitle = i18n.translate( - 'xpack.fileUpload.importProgress.indexPatternCreatedTitle', + 'xpack.fileDataVisualizer.importProgress.indexPatternCreatedTitle', { defaultMessage: 'Index pattern created', } @@ -266,7 +290,7 @@ const UploadFunctionProgress: FC<{ progress: number }> = ({ progress }) => {

diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/advanced.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/advanced.tsx index b3671f8856095..fe0ce9e5fe9b9 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/advanced.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/advanced.tsx @@ -69,7 +69,7 @@ export const AdvancedSettings: FC = ({ } @@ -78,7 +78,7 @@ export const AdvancedSettings: FC = ({ > = ({ disabled={initialized === true} onChange={onIndexChange} isInvalid={indexNameError !== ''} - aria-label={i18n.translate('xpack.fileUpload.advancedImportSettings.indexNameAriaLabel', { - defaultMessage: 'Index name, required field', - })} + aria-label={i18n.translate( + 'xpack.fileDataVisualizer.advancedImportSettings.indexNameAriaLabel', + { + defaultMessage: 'Index name, required field', + } + )} /> @@ -99,7 +102,7 @@ export const AdvancedSettings: FC = ({ id="createIndexPattern" label={ } @@ -113,7 +116,7 @@ export const AdvancedSettings: FC = ({ } @@ -181,7 +184,7 @@ const IndexSettings: FC = ({ initialized, data, onChange }) => } @@ -206,7 +209,7 @@ const Mappings: FC = ({ initialized, data, onChange }) => { } @@ -231,7 +234,7 @@ const IngestPipeline: FC = ({ initialized, data, onChange }) => } diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/import_settings.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/import_settings.tsx index 7544ed962d02e..6e1398de20407 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/import_settings.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/import_settings.tsx @@ -59,7 +59,7 @@ export const ImportSettings: FC = ({ const tabs = [ { id: 'simple-settings', - name: i18n.translate('xpack.fileUpload.importSettings.simpleTabName', { + name: i18n.translate('xpack.fileDataVisualizer.importSettings.simpleTabName', { defaultMessage: 'Simple', }), content: ( @@ -80,7 +80,7 @@ export const ImportSettings: FC = ({ }, { id: 'advanced-settings', - name: i18n.translate('xpack.fileUpload.importSettings.advancedTabName', { + name: i18n.translate('xpack.fileDataVisualizer.importSettings.advancedTabName', { defaultMessage: 'Advanced', }), content: ( diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/simple.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/simple.tsx index 1014820775e3c..2751b37cd3256 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/simple.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/import_settings/simple.tsx @@ -36,7 +36,7 @@ export const SimpleSettings: FC = ({ } @@ -45,7 +45,7 @@ export const SimpleSettings: FC = ({ > = ({ disabled={initialized === true} onChange={onIndexChange} isInvalid={indexNameError !== ''} - aria-label={i18n.translate('xpack.fileUpload.simpleImportSettings.indexNameAriaLabel', { - defaultMessage: 'Index name, required field', - })} + aria-label={i18n.translate( + 'xpack.fileDataVisualizer.simpleImportSettings.indexNameAriaLabel', + { + defaultMessage: 'Index name, required field', + } + )} data-test-subj="mlFileDataVisIndexNameInput" /> @@ -67,7 +70,7 @@ export const SimpleSettings: FC = ({ id="createIndexPattern" label={ } diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/import_summary/failures.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/import_summary/failures.tsx index 41c1afa89f711..c8f62021b7bae 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/import_summary/failures.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/import_summary/failures.tsx @@ -51,7 +51,7 @@ export class Failures extends Component { id="failureList" buttonContent={ } diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/import_summary/import_summary.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/import_summary/import_summary.tsx index 04dd657c833cd..f981b1fdf9f23 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/import_summary/import_summary.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/import_summary/import_summary.tsx @@ -45,7 +45,7 @@ export const ImportSummary: FC = ({ } @@ -62,7 +62,7 @@ export const ImportSummary: FC = ({ } @@ -71,7 +71,7 @@ export const ImportSummary: FC = ({ >

+ ), description: index, }, { title: ( ), @@ -120,7 +123,7 @@ function createDisplayItems( items.splice(1, 0, { title: ( ), @@ -132,7 +135,7 @@ function createDisplayItems( items.splice(1, 0, { title: ( ), @@ -144,7 +147,7 @@ function createDisplayItems( items.push({ title: ( ), diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/import_view/import_view.js b/x-pack/plugins/file_data_visualizer/public/application/components/import_view/import_view.js index 41fd054298c0e..d93756e6d03c4 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/import_view/import_view.js +++ b/x-pack/plugins/file_data_visualizer/public/application/components/import_view/import_view.js @@ -129,7 +129,7 @@ export class ImportView extends Component { })) === false ) { errors.push( - i18n.translate('xpack.fileUpload.importView.importPermissionError', { + i18n.translate('xpack.fileDataVisualizer.importView.importPermissionError', { defaultMessage: 'You do not have permission to create or import data into index {index}.', values: { @@ -169,7 +169,7 @@ export class ImportView extends Component { } catch (error) { success = false; const parseError = i18n.translate( - 'xpack.fileUpload.importView.parseSettingsError', + 'xpack.fileDataVisualizer.importView.parseSettingsError', { defaultMessage: 'Error parsing settings:', } @@ -182,7 +182,7 @@ export class ImportView extends Component { } catch (error) { success = false; const parseError = i18n.translate( - 'xpack.fileUpload.importView.parseMappingsError', + 'xpack.fileDataVisualizer.importView.parseMappingsError', { defaultMessage: 'Error parsing mappings:', } @@ -197,7 +197,7 @@ export class ImportView extends Component { } catch (error) { success = false; const parseError = i18n.translate( - 'xpack.fileUpload.importView.parsePipelineError', + 'xpack.fileDataVisualizer.importView.parsePipelineError', { defaultMessage: 'Error parsing ingest pipeline:', } @@ -354,7 +354,7 @@ export class ImportView extends Component { const { exists } = await this.props.fileUpload.checkIndexExists(index); const indexNameError = exists ? ( ) : ( @@ -507,14 +507,14 @@ export class ImportView extends Component {

  } @@ -555,7 +555,7 @@ export class ImportView extends Component { data-test-subj="mlFileDataVisImportButton" > @@ -564,7 +564,7 @@ export class ImportView extends Component { {initialized === true && importing === false && ( @@ -696,7 +696,7 @@ function isIndexNameValid(name) { ) { return ( ); @@ -713,7 +713,7 @@ function isIndexPatternNameValid(name, indexPatternNames, index) { if (indexPatternNames.find((i) => i === name)) { return ( ); @@ -729,7 +729,7 @@ function isIndexPatternNameValid(name, indexPatternNames, index) { // name should match index return ( ); diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/multi_select_picker/multi_select_picker.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/multi_select_picker/multi_select_picker.tsx index 7fe7fc88cd9d7..2093b61a7ef4d 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/multi_select_picker/multi_select_picker.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/multi_select_picker/multi_select_picker.tsx @@ -32,7 +32,7 @@ const NoFilterItems = () => {

diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/results_links/results_links.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/results_links/results_links.tsx index ba0173b0e5063..57932cafec061 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/results_links/results_links.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/results_links/results_links.tsx @@ -179,7 +179,7 @@ export const ResultsLinks: FC = ({ icon={} title={ } @@ -195,7 +195,7 @@ export const ResultsLinks: FC = ({ icon={} title={ } @@ -211,7 +211,7 @@ export const ResultsLinks: FC = ({ icon={} title={ } @@ -225,7 +225,7 @@ export const ResultsLinks: FC = ({ icon={} title={ } diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/results_view/results_view.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/results_view/results_view.tsx index 40363b0225d90..907f9ae638a84 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/results_view/results_view.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/results_view/results_view.tsx @@ -72,7 +72,7 @@ export const ResultsView: FC = ({ showEditFlyout()} disabled={disableButtons}> @@ -80,7 +80,7 @@ export const ResultsView: FC = ({ showExplanationFlyout()} disabled={disableButtons}> @@ -94,7 +94,7 @@ export const ResultsView: FC = ({

diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_count_stats/metric_fields_count.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_count_stats/metric_fields_count.tsx index 14b564b5272ca..436063ce3007c 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_count_stats/metric_fields_count.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_count_stats/metric_fields_count.tsx @@ -37,7 +37,7 @@ export const MetricFieldsCount: FC = ({ metricsStats })
@@ -55,7 +55,7 @@ export const MetricFieldsCount: FC = ({ metricsStats }) diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_count_stats/total_fields_count.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_count_stats/total_fields_count.tsx index 20e742e9a3c2f..cc27cda69eda7 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_count_stats/total_fields_count.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_count_stats/total_fields_count.tsx @@ -37,7 +37,7 @@ export const TotalFieldsCount: FC = ({ fieldsCountStats }
@@ -56,7 +56,7 @@ export const TotalFieldsCount: FC = ({ fieldsCountStats } diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/boolean_content.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/boolean_content.tsx index 2624d750ede6e..3f7ebb9d55849 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/boolean_content.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/boolean_content.tsx @@ -49,7 +49,7 @@ export const BooleanContent: FC = ({ config }) => { function: 'true', display: ( ), @@ -59,7 +59,7 @@ export const BooleanContent: FC = ({ config }) => { function: 'false', display: ( ), @@ -80,7 +80,7 @@ export const BooleanContent: FC = ({ config }) => { ]; const summaryTableTitle = i18n.translate( - 'xpack.fileUpload.fieldDataCardExpandedRow.booleanContent.summaryTableTitle', + 'xpack.fileDataVisualizer.fieldDataCardExpandedRow.booleanContent.summaryTableTitle', { defaultMessage: 'Summary', } @@ -104,7 +104,7 @@ export const BooleanContent: FC = ({ config }) => { diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/date_content.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/date_content.tsx index 2274d8189b1c0..b0e5af05cd95d 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/date_content.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/date_content.tsx @@ -30,7 +30,7 @@ export const DateContent: FC = ({ config }) => { const { earliest, latest } = stats; const summaryTableTitle = i18n.translate( - 'xpack.fileUpload.fieldDataCard.cardDate.summaryTableTitle', + 'xpack.fileDataVisualizer.fieldDataCard.cardDate.summaryTableTitle', { defaultMessage: 'Summary', } @@ -40,7 +40,7 @@ export const DateContent: FC = ({ config }) => { function: 'earliest', display: ( ), @@ -50,7 +50,7 @@ export const DateContent: FC = ({ config }) => { function: 'latest', display: ( ), diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/document_stats.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/document_stats.tsx index b8436eac79eb3..f0ebe741df6f7 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/document_stats.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/document_stats.tsx @@ -27,7 +27,7 @@ const metaTableColumns = [ ]; const metaTableTitle = i18n.translate( - 'xpack.fileUpload.fieldDataCardExpandedRow.documentStatsTable.metaTableTitle', + 'xpack.fileDataVisualizer.fieldDataCardExpandedRow.documentStatsTable.metaTableTitle', { defaultMessage: 'Documents stats', } @@ -47,7 +47,7 @@ export const DocumentStatsTable: FC = ({ config }) => { function: 'count', display: ( ), @@ -57,7 +57,7 @@ export const DocumentStatsTable: FC = ({ config }) => { function: 'percentage', display: ( ), @@ -67,7 +67,7 @@ export const DocumentStatsTable: FC = ({ config }) => { function: 'distinctValues', display: ( ), diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/number_content.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/number_content.tsx index ec9ffa53a4769..facba323a844e 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/number_content.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_expanded_row/number_content.tsx @@ -52,7 +52,7 @@ export const NumberContent: FC = ({ config }) => { function: 'min', display: ( ), @@ -62,7 +62,7 @@ export const NumberContent: FC = ({ config }) => { function: 'median', display: ( ), @@ -72,7 +72,7 @@ export const NumberContent: FC = ({ config }) => { function: 'max', display: ( ), @@ -93,7 +93,7 @@ export const NumberContent: FC = ({ config }) => { ]; const summaryTableTitle = i18n.translate( - 'xpack.fileUpload.fieldDataCardExpandedRow.numberContent.summaryTableTitle', + 'xpack.fileDataVisualizer.fieldDataCardExpandedRow.numberContent.summaryTableTitle', { defaultMessage: 'Summary', } @@ -121,7 +121,7 @@ export const NumberContent: FC = ({ config }) => { @@ -138,7 +138,7 @@ export const NumberContent: FC = ({ config }) => { = ({ config }) => { = ({ config }) => { iconType="alert" > _source, @@ -51,7 +51,7 @@ export const TextContent: FC = ({ config }) => { copy_to, diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_row/use_column_chart.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_row/use_column_chart.tsx index dd73fdb5ea4c9..436f740bee41f 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_row/use_column_chart.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/field_data_row/use_column_chart.tsx @@ -81,13 +81,13 @@ export const getLegendText = ( maxChartColumns = MAX_CHART_COLUMNS ): LegendText => { if (chartData.type === 'unsupported') { - return i18n.translate('xpack.fileUpload.dataGridChart.histogramNotAvailable', { + return i18n.translate('xpack.fileDataVisualizer.dataGridChart.histogramNotAvailable', { defaultMessage: 'Chart not supported.', }); } if (chartData.data.length === 0) { - return i18n.translate('xpack.fileUpload.dataGridChart.notEnoughData', { + return i18n.translate('xpack.fileDataVisualizer.dataGridChart.notEnoughData', { defaultMessage: `0 documents contain field.`, }); } @@ -106,14 +106,14 @@ export const getLegendText = ( } if (isOrdinalChartData(chartData) && chartData.cardinality <= maxChartColumns) { - return i18n.translate('xpack.fileUpload.dataGridChart.singleCategoryLegend', { + return i18n.translate('xpack.fileDataVisualizer.dataGridChart.singleCategoryLegend', { defaultMessage: `{cardinality, plural, one {# category} other {# categories}}`, values: { cardinality: chartData.cardinality }, }); } if (isOrdinalChartData(chartData) && chartData.cardinality > maxChartColumns) { - return i18n.translate('xpack.fileUpload.dataGridChart.topCategoriesLegend', { + return i18n.translate('xpack.fileDataVisualizer.dataGridChart.topCategoriesLegend', { defaultMessage: `top {maxChartColumns} of {cardinality} categories`, values: { cardinality: chartData.cardinality, maxChartColumns }, }); diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/metric_distribution_chart/metric_distribution_chart.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/metric_distribution_chart/metric_distribution_chart.tsx index 3394d7de95a63..caa560488d499 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/metric_distribution_chart/metric_distribution_chart.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/metric_distribution_chart/metric_distribution_chart.tsx @@ -58,7 +58,7 @@ export const MetricDistributionChart: FC = ({ // Ideally we wouldn't show these values at all in the tooltip, // but this is not yet possible with Elastic charts. const seriesName = i18n.translate( - 'xpack.fileUpload.fieldDataCard.metricDistributionChart.seriesName', + 'xpack.fileDataVisualizer.fieldDataCard.metricDistributionChart.seriesName', { defaultMessage: 'distribution', } diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/metric_distribution_chart/metric_distribution_chart_tooltip_header.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/metric_distribution_chart/metric_distribution_chart_tooltip_header.tsx index 2259e31f9e370..9fd613ac96b8e 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/metric_distribution_chart/metric_distribution_chart_tooltip_header.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/components/metric_distribution_chart/metric_distribution_chart_tooltip_header.tsx @@ -31,7 +31,7 @@ export const MetricDistributionChartTooltipHeader: FC = ({
{chartPoint.dataMax > chartPoint.dataMin ? ( = ({ /> ) : ( ({ aria-label={ !expandAll ? i18n.translate( - 'xpack.fileUpload.datavisualizer.dataGrid.expandDetailsForAllAriaLabel', + 'xpack.fileDataVisualizer.datavisualizer.dataGrid.expandDetailsForAllAriaLabel', { defaultMessage: 'Expand details for all fields', } ) : i18n.translate( - 'xpack.fileUpload.datavisualizer.dataGrid.collapseDetailsForAllAriaLabel', + 'xpack.fileDataVisualizer.datavisualizer.dataGrid.collapseDetailsForAllAriaLabel', { defaultMessage: 'Collapse details for all fields', } @@ -123,11 +123,11 @@ export const DataVisualizerTable = ({ onClick={() => toggleDetails(item)} aria-label={ expandedRowItemIds.includes(item.fieldName) - ? i18n.translate('xpack.fileUpload.datavisualizer.dataGrid.rowCollapse', { + ? i18n.translate('xpack.fileDataVisualizer.datavisualizer.dataGrid.rowCollapse', { defaultMessage: 'Hide details for {fieldName}', values: { fieldName: item.fieldName }, }) - : i18n.translate('xpack.fileUpload.datavisualizer.dataGrid.rowExpand', { + : i18n.translate('xpack.fileDataVisualizer.datavisualizer.dataGrid.rowExpand', { defaultMessage: 'Show details for {fieldName}', values: { fieldName: item.fieldName }, }) @@ -143,7 +143,7 @@ export const DataVisualizerTable = ({ expanderColumn, { field: 'type', - name: i18n.translate('xpack.fileUpload.datavisualizer.dataGrid.typeColumnName', { + name: i18n.translate('xpack.fileDataVisualizer.datavisualizer.dataGrid.typeColumnName', { defaultMessage: 'Type', }), render: (fieldType: MlJobFieldType) => { @@ -156,7 +156,7 @@ export const DataVisualizerTable = ({ }, { field: 'fieldName', - name: i18n.translate('xpack.fileUpload.datavisualizer.dataGrid.nameColumnName', { + name: i18n.translate('xpack.fileDataVisualizer.datavisualizer.dataGrid.nameColumnName', { defaultMessage: 'Name', }), sortable: true, @@ -171,9 +171,12 @@ export const DataVisualizerTable = ({ }, { field: 'docCount', - name: i18n.translate('xpack.fileUpload.datavisualizer.dataGrid.documentsCountColumnName', { - defaultMessage: 'Documents (%)', - }), + name: i18n.translate( + 'xpack.fileDataVisualizer.datavisualizer.dataGrid.documentsCountColumnName', + { + defaultMessage: 'Documents (%)', + } + ), render: (value: number | undefined, item: DataVisualizerTableItem) => ( ), @@ -183,9 +186,12 @@ export const DataVisualizerTable = ({ }, { field: 'stats.cardinality', - name: i18n.translate('xpack.fileUpload.datavisualizer.dataGrid.distinctValuesColumnName', { - defaultMessage: 'Distinct values', - }), + name: i18n.translate( + 'xpack.fileDataVisualizer.datavisualizer.dataGrid.distinctValuesColumnName', + { + defaultMessage: 'Distinct values', + } + ), render: (cardinality?: number) => , sortable: true, align: LEFT_ALIGNMENT as HorizontalAlignment, @@ -195,16 +201,19 @@ export const DataVisualizerTable = ({ name: (
- {i18n.translate('xpack.fileUpload.datavisualizer.dataGrid.distributionsColumnName', { - defaultMessage: 'Distributions', - })} + {i18n.translate( + 'xpack.fileDataVisualizer.datavisualizer.dataGrid.distributionsColumnName', + { + defaultMessage: 'Distributions', + } + )} toggleShowDistribution()} aria-label={i18n.translate( - 'xpack.fileUpload.datavisualizer.dataGrid.showDistributionsAriaLabel', + 'xpack.fileDataVisualizer.datavisualizer.dataGrid.showDistributionsAriaLabel', { defaultMessage: 'Show distributions', } diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/hooks/use_color_range.ts b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/hooks/use_color_range.ts index e1ada072b00b3..e24134507e3a9 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/hooks/use_color_range.ts +++ b/x-pack/plugins/file_data_visualizer/public/application/components/stats_table/hooks/use_color_range.ts @@ -51,19 +51,22 @@ export enum COLOR_RANGE_SCALE { export const colorRangeScaleOptions = [ { value: COLOR_RANGE_SCALE.LINEAR, - text: i18n.translate('xpack.fileUpload.components.colorRangeLegend.linearScaleLabel', { + text: i18n.translate('xpack.fileDataVisualizer.components.colorRangeLegend.linearScaleLabel', { defaultMessage: 'Linear', }), }, { value: COLOR_RANGE_SCALE.INFLUENCER, - text: i18n.translate('xpack.fileUpload.components.colorRangeLegend.influencerScaleLabel', { - defaultMessage: 'Influencer custom scale', - }), + text: i18n.translate( + 'xpack.fileDataVisualizer.components.colorRangeLegend.influencerScaleLabel', + { + defaultMessage: 'Influencer custom scale', + } + ), }, { value: COLOR_RANGE_SCALE.SQRT, - text: i18n.translate('xpack.fileUpload.components.colorRangeLegend.sqrtScaleLabel', { + text: i18n.translate('xpack.fileDataVisualizer.components.colorRangeLegend.sqrtScaleLabel', { defaultMessage: 'Sqrt', }), }, @@ -83,32 +86,44 @@ export enum COLOR_RANGE { export const colorRangeOptions = [ { value: COLOR_RANGE.BLUE, - text: i18n.translate('xpack.fileUpload.components.colorRangeLegend.blueColorRangeLabel', { - defaultMessage: 'Blue', - }), + text: i18n.translate( + 'xpack.fileDataVisualizer.components.colorRangeLegend.blueColorRangeLabel', + { + defaultMessage: 'Blue', + } + ), }, { value: COLOR_RANGE.RED, - text: i18n.translate('xpack.fileUpload.components.colorRangeLegend.redColorRangeLabel', { - defaultMessage: 'Red', - }), + text: i18n.translate( + 'xpack.fileDataVisualizer.components.colorRangeLegend.redColorRangeLabel', + { + defaultMessage: 'Red', + } + ), }, { value: COLOR_RANGE.RED_GREEN, - text: i18n.translate('xpack.fileUpload.components.colorRangeLegend.redGreenColorRangeLabel', { - defaultMessage: 'Red - Green', - }), + text: i18n.translate( + 'xpack.fileDataVisualizer.components.colorRangeLegend.redGreenColorRangeLabel', + { + defaultMessage: 'Red - Green', + } + ), }, { value: COLOR_RANGE.GREEN_RED, - text: i18n.translate('xpack.fileUpload.components.colorRangeLegend.greenRedColorRangeLabel', { - defaultMessage: 'Green - Red', - }), + text: i18n.translate( + 'xpack.fileDataVisualizer.components.colorRangeLegend.greenRedColorRangeLabel', + { + defaultMessage: 'Green - Red', + } + ), }, { value: COLOR_RANGE.YELLOW_GREEN_BLUE, text: i18n.translate( - 'xpack.fileUpload.components.colorRangeLegend.yellowGreenBlueColorRangeLabel', + 'xpack.fileDataVisualizer.components.colorRangeLegend.yellowGreenBlueColorRangeLabel', { defaultMessage: 'Yellow - Green - Blue', } diff --git a/x-pack/plugins/file_data_visualizer/public/application/components/top_values/top_values.tsx b/x-pack/plugins/file_data_visualizer/public/application/components/top_values/top_values.tsx index 8b98dc250e125..6b7323146f479 100644 --- a/x-pack/plugins/file_data_visualizer/public/application/components/top_values/top_values.tsx +++ b/x-pack/plugins/file_data_visualizer/public/application/components/top_values/top_values.tsx @@ -52,7 +52,7 @@ export const TopValues: FC = ({ stats, fieldFormat, barColor, compressed @@ -100,7 +100,7 @@ export const TopValues: FC = ({ stats, fieldFormat, barColor, compressed