Skip to content

Commit

Permalink
[ML] Moves custom URL editor Add button and form to top of flyout (#2…
Browse files Browse the repository at this point in the history
…3326) (#23352)

* [ML] Moves custom URL editor Add button and form to top of flyout

* [ML] Edits to custom URL editor class name
  • Loading branch information
peteharverson authored Sep 20, 2018
1 parent 802a4fa commit bee1f84
Show file tree
Hide file tree
Showing 9 changed files with 1,547 additions and 17 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,387 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`CustomUrlList renders a list of custom URLs 1`] = `
<React.Fragment>
<EuiFlexGroup
alignItems="stretch"
component="div"
direction="row"
gutterSize="l"
justifyContent="flexStart"
key="url_0"
responsive={true}
wrap={false}
>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
error={Array []}
fullWidth={false}
hasEmptyLabelSpace={false}
isInvalid={false}
label="Label"
>
<EuiFieldText
compressed={false}
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
value="Show data"
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={true}
>
<EuiFormRow
describedByIds={Array []}
fullWidth={false}
hasEmptyLabelSpace={false}
label="URL"
>
<EuiFieldText
compressed={false}
fullWidth={false}
isLoading={false}
onChange={[Function]}
value="kibana#/discover?_g=(time:(from:'$earliest$',mode:absolute,to:'$latest$'))&_a=(index:e532ba80-b76f-11e8-a9dc-37914a458883,query:(language:lucene,query:'airline:\\"$airline$\\"'))"
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
error={Array []}
fullWidth={false}
hasEmptyLabelSpace={false}
isInvalid={false}
label="Time range"
>
<EuiFieldText
compressed={false}
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="auto"
value="auto"
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
fullWidth={false}
hasEmptyLabelSpace={true}
>
<EuiToolTip
content="Test custom URL"
delay="regular"
position="top"
>
<EuiButtonIcon
aria-label="Test custom URL"
color="primary"
iconSize="m"
iconType="popout"
onClick={[Function]}
size="s"
type="button"
/>
</EuiToolTip>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
fullWidth={false}
hasEmptyLabelSpace={true}
>
<EuiToolTip
content="Delete custom URL"
delay="regular"
position="top"
>
<EuiButtonIcon
aria-label="Delete custom URL"
color="danger"
iconSize="m"
iconType="trash"
onClick={[Function]}
size="s"
type="button"
/>
</EuiToolTip>
</EuiFormRow>
</EuiFlexItem>
</EuiFlexGroup>
<EuiFlexGroup
alignItems="stretch"
component="div"
direction="row"
gutterSize="l"
justifyContent="flexStart"
key="url_1"
responsive={true}
wrap={false}
>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
error={Array []}
fullWidth={false}
hasEmptyLabelSpace={false}
isInvalid={false}
label="Label"
>
<EuiFieldText
compressed={false}
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
value="Show dashboard"
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={true}
>
<EuiFormRow
describedByIds={Array []}
fullWidth={false}
hasEmptyLabelSpace={false}
label="URL"
>
<EuiFieldText
compressed={false}
fullWidth={false}
isLoading={false}
onChange={[Function]}
value="kibana#/dashboard/52ea8840-bbef-11e8-a04d-b1701b2b977e?_g=(time:(from:'$earliest$',mode:absolute,to:'$latest$'))&_a=(filters:!(),query:(language:lucene,query:'airline:\\"$airline$\\"'))"
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
error={Array []}
fullWidth={false}
hasEmptyLabelSpace={false}
isInvalid={false}
label="Time range"
>
<EuiFieldText
compressed={false}
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="auto"
value="1h"
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
fullWidth={false}
hasEmptyLabelSpace={true}
>
<EuiToolTip
content="Test custom URL"
delay="regular"
position="top"
>
<EuiButtonIcon
aria-label="Test custom URL"
color="primary"
iconSize="m"
iconType="popout"
onClick={[Function]}
size="s"
type="button"
/>
</EuiToolTip>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
fullWidth={false}
hasEmptyLabelSpace={true}
>
<EuiToolTip
content="Delete custom URL"
delay="regular"
position="top"
>
<EuiButtonIcon
aria-label="Delete custom URL"
color="danger"
iconSize="m"
iconType="trash"
onClick={[Function]}
size="s"
type="button"
/>
</EuiToolTip>
</EuiFormRow>
</EuiFlexItem>
</EuiFlexGroup>
<EuiFlexGroup
alignItems="stretch"
component="div"
direction="row"
gutterSize="l"
justifyContent="flexStart"
key="url_2"
responsive={true}
wrap={false}
>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
error={Array []}
fullWidth={false}
hasEmptyLabelSpace={false}
isInvalid={false}
label="Label"
>
<EuiFieldText
compressed={false}
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
value="Show airline"
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={true}
>
<EuiFormRow
describedByIds={Array []}
fullWidth={false}
hasEmptyLabelSpace={false}
label="URL"
>
<EuiFieldText
compressed={false}
fullWidth={false}
isLoading={false}
onChange={[Function]}
value="http://airlinecodes.info/airline-code-$airline$"
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
error={Array []}
fullWidth={false}
hasEmptyLabelSpace={false}
isInvalid={false}
label="Time range"
>
<EuiFieldText
compressed={false}
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="auto"
value="auto"
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
fullWidth={false}
hasEmptyLabelSpace={true}
>
<EuiToolTip
content="Test custom URL"
delay="regular"
position="top"
>
<EuiButtonIcon
aria-label="Test custom URL"
color="primary"
iconSize="m"
iconType="popout"
onClick={[Function]}
size="s"
type="button"
/>
</EuiToolTip>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiFormRow
describedByIds={Array []}
fullWidth={false}
hasEmptyLabelSpace={true}
>
<EuiToolTip
content="Delete custom URL"
delay="regular"
position="top"
>
<EuiButtonIcon
aria-label="Delete custom URL"
color="danger"
iconSize="m"
iconType="trash"
onClick={[Function]}
size="s"
type="button"
/>
</EuiToolTip>
</EuiFormRow>
</EuiFlexItem>
</EuiFlexGroup>
</React.Fragment>
`;
Loading

0 comments on commit bee1f84

Please sign in to comment.