diff --git a/cypress/integration/1_detectors.spec.js b/cypress/integration/1_detectors.spec.js index 249c9a9a..01b9b25e 100644 --- a/cypress/integration/1_detectors.spec.js +++ b/cypress/integration/1_detectors.spec.js @@ -36,7 +36,7 @@ const validateAlertPanel = (alertName) => .eq(2) .within(() => cy.getElementByText('button', alertName)); -const dataSourceLabel = 'Select or input source indexes or index patterns'; +const dataSourceLabel = 'Select indexes/aliases'; const getDataSourceField = () => cy.getFieldByLabel(dataSourceLabel); diff --git a/public/pages/Alerts/containers/Alerts/__snapshots__/Alerts.test.tsx.snap b/public/pages/Alerts/containers/Alerts/__snapshots__/Alerts.test.tsx.snap index 9e306c5b..c34b0401 100644 --- a/public/pages/Alerts/containers/Alerts/__snapshots__/Alerts.test.tsx.snap +++ b/public/pages/Alerts/containers/Alerts/__snapshots__/Alerts.test.tsx.snap @@ -290,6 +290,7 @@ exports[` spec renders the component 1`] = ` }, ] } + compressed={false} dateFormat="MMM D, YYYY @ HH:mm:ss.SSS" end="now" isAutoRefreshOnly={false} @@ -330,6 +331,7 @@ exports[` spec renders the component 1`] = ` > spec renders the component 1`] = ` - + @@ -608,6 +612,7 @@ exports[` spec renders the component 1`] = ` className="euiFlexItem euiFlexItem--flexGrowZero" > spec renders the component 1`] = ` onBlur={[Function]} onClick={[Function]} onFocus={[Function]} + size="m" textProps={ Object { "className": "euiSuperUpdateButton__text", @@ -657,6 +663,7 @@ exports[` spec renders the component 1`] = ` onBlur={[Function]} onClick={[Function]} onFocus={[Function]} + size="m" textProps={ Object { "className": "euiSuperUpdateButton__text", diff --git a/public/pages/CreateDetector/components/DefineDetector/components/DetectorDataSource/DetectorDataSource.tsx b/public/pages/CreateDetector/components/DefineDetector/components/DetectorDataSource/DetectorDataSource.tsx index fcb2e7b0..719dd877 100644 --- a/public/pages/CreateDetector/components/DefineDetector/components/DetectorDataSource/DetectorDataSource.tsx +++ b/public/pages/CreateDetector/components/DefineDetector/components/DetectorDataSource/DetectorDataSource.tsx @@ -12,6 +12,7 @@ import { EuiCallOut, EuiTextColor, EuiTitle, + EuiLink, } from '@elastic/eui'; import { FormFieldHeader } from '../../../../../../components/FormFieldHeader/FormFieldHeader'; import { IndexOption } from '../../../../../Detectors/models/interfaces'; @@ -155,11 +156,17 @@ export default class DetectorDataSource extends Component< - } + label={} isInvalid={isInvalid} error={isInvalid && (errorMessage || 'Select an input source.')} + helpText={ + + + Aliases + {' '} + are recommended for optimal functioning of detectors. + + } > spec renders the component 1`] = ` fullWidth={false} hasChildLabel={true} hasEmptyLabelSpace={false} + helpText={ + + + Aliases + + + are recommended for optimal functioning of detectors. + + } isInvalid={false} label={ } labelType="label" @@ -739,7 +751,7 @@ exports[` spec renders the component 1`] = ` htmlFor="some_html_id" > spec renders the component 1`] = ` className="euiText euiText--small" > - Select or input source indexes or index patterns + Select indexes/aliases @@ -760,6 +772,7 @@ exports[` spec renders the component 1`] = ` className="euiFormRow__fieldWrapper" > spec renders the component 1`] = ` sortMatchesBy="none" >
spec renders the component 1`] = `
+ +
+ + + Aliases + + + are recommended for optimal functioning of detectors. + +
+