-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Moves custom URL editor Add button and form to top of flyout (#2…
…3326) * [ML] Moves custom URL editor Add button and form to top of flyout * [ML] Edits to custom URL editor class name
- Loading branch information
1 parent
ab91dda
commit 91871c1
Showing
9 changed files
with
1,547 additions
and
17 deletions.
There are no files selected for viewing
883 changes: 883 additions & 0 deletions
883
x-pack/plugins/ml/public/jobs/components/custom_url_editor/__snapshots__/editor.test.js.snap
Large diffs are not rendered by default.
Oops, something went wrong.
387 changes: 387 additions & 0 deletions
387
x-pack/plugins/ml/public/jobs/components/custom_url_editor/__snapshots__/list.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
`; |
Oops, something went wrong.