Skip to content

Commit

Permalink
[ML] Add tooltip help text for Transform filter query control (#108720)…
Browse files Browse the repository at this point in the history
… (#109195)

* [ML] Add tooltip help text

* [ML] Remove unused import

* [ML] Update tooltip content to be clearer

Co-authored-by: Lisa Cawley <[email protected]>

Co-authored-by: Lisa Cawley <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Quynh Nguyen <[email protected]>
Co-authored-by: Lisa Cawley <[email protected]>
  • Loading branch information
3 people authored Aug 19, 2021
1 parent 35f9af3 commit 3ae3975
Showing 1 changed file with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React, { useContext, useMemo } from 'react';
import { EuiFormRow, EuiSelect } from '@elastic/eui';
import { EuiFormRow, EuiIcon, EuiSelect, EuiToolTip } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import useUpdateEffect from 'react-use/lib/useUpdateEffect';
import { CreateTransformWizardContext } from '../../../../wizard/wizard';
Expand Down Expand Up @@ -72,10 +72,22 @@ export const FilterAggForm: PivotAggsConfigFilter['AggFormComponent'] = ({
<>
<EuiFormRow
label={
<FormattedMessage
id="xpack.transform.agg.popoverForm.filerAggLabel"
defaultMessage="Filter query"
/>
<>
<FormattedMessage
id="xpack.transform.agg.popoverForm.filerAggLabel"
defaultMessage="Filter query"
/>
<EuiToolTip
content={
<FormattedMessage
id="xpack.transform.agg.popoverForm.filerQueryAdvancedSuggestionTooltip"
defaultMessage="To add other filter query aggregations, edit the JSON config."
/>
}
>
<EuiIcon size="s" color="subdued" type="questionInCircle" className="eui-alignTop" />
</EuiToolTip>
</>
}
>
<EuiSelect
Expand Down

0 comments on commit 3ae3975

Please sign in to comment.