Skip to content

Commit

Permalink
[MD]Update copy on index patten config DS step
Browse files Browse the repository at this point in the history
Signed-off-by: Kristen Tian <[email protected]>
  • Loading branch information
kristenTian committed Oct 6, 2022
1 parent 0e742b9 commit bf93919
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ export class IndexPattern implements IIndexPattern {
return this.dataSourceRef
? [
{
...this.dataSourceRef,
id: this.dataSourceRef.id,
type: this.dataSourceRef.type,
name: DATA_SOURCE_REFERNECE_NAME,
},
]
Expand Down

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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import React from 'react';
import { Header } from '../header';
import { shallow } from 'enzyme';
import { shallowWithIntl } from 'test_utils/enzyme_helpers';

jest.mock('../../../../../../../../../plugins/opensearch_dashboards_react/public', () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/

import React, { Fragment, useState } from 'react';
import './header.scss';

import {
EuiButton,
Expand Down Expand Up @@ -111,7 +110,7 @@ export const Header: React.FC<HeaderProps> = (props: HeaderProps) => {
<EuiText>
<FormattedMessage
id="indexPatternManagement.createIndexPattern.stepDataSourceLabel"
defaultMessage="Please pick the data source -- within which to configure index patterns."
defaultMessage="Pick a data source within which to configure index patterns."
/>
</EuiText>
<EuiSpacer size="m" />
Expand All @@ -121,49 +120,37 @@ export const Header: React.FC<HeaderProps> = (props: HeaderProps) => {
label={
<FormattedMessage
id="indexPatternManagement.createIndexPattern.stepDataSource.useDefaultLabel"
defaultMessage="Use default"
defaultMessage="Use default data source"
/>
}
checked={defaultChecked}
onChange={(e) => onChangeDefaultChecked(e)}
compressed
/>
<EuiText size="s" className="dataSourceRadioHelperText">
<FormattedMessage
id="indexPatternManagement.createIndexPattern.stepDataSource.useDefault.helperText"
defaultMessage="Uses the default data source configured by the OpenSearch Dashboards administrator."
/>
</EuiText>
<EuiSpacer size="l" />
<EuiSpacer size="m" />
<EuiRadio
data-test-subj="createIndexPatternStepDataSourceUseDataSourceRadio"
id={'useDataSource'}
label={
<FormattedMessage
id="indexPatternManagement.createIndexPattern.stepDataSource.useDataSourceLabel"
defaultMessage="Choose data source"
defaultMessage="User external data source connection"
/>
}
checked={dataSourceChecked}
onChange={(e) => onChangeDataSourceChecked(e)}
compressed
/>
<EuiText size="s" className="dataSourceRadioHelperText">
<FormattedMessage
id="indexPatternManagement.createIndexPattern.stepDataSource.useDataSource.helperText"
defaultMessage="Connect to an existing external data source."
/>
</EuiText>
{dataSourceChecked && (
<EuiFlexItem grow={false}>
<EuiSpacer size="m" />
<EuiSelectable
aria-label={
<FormattedMessage
id="indexPatternManagement.createIndexPattern.stepDataSource.searchLabel"
defaultMessage="Search data sources"
/>
}
aria-label={i18n.translate(
'indexPatternManagement.createIndexPattern.stepDataSource.searchlabel',
{
defaultMessage: 'Search data sources',
}
)}
searchable
searchProps={{
'data-test-subj': 'selectDataSources',
Expand Down

0 comments on commit bf93919

Please sign in to comment.