Skip to content

Commit 508df9e

Browse files
authored
Update EUI to 0.0.53 (#20005) (#20042)
* Update to EUI 0.0.53 * Remove input vis specific styling * remove double close button in dashboard add panel flyout (#2) * Fix functional tests * fix x-pack snapshots * EUI 0.0.53 no longer closes combo box when clear btn is pressed (#3)
1 parent a04ace9 commit 508df9e

File tree

18 files changed

+123
-66
lines changed

18 files changed

+123
-66
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"url": "https://github.com/elastic/kibana.git"
7676
},
7777
"dependencies": {
78-
"@elastic/eui": "v0.0.52",
78+
"@elastic/eui": "0.0.53",
7979
"@elastic/filesaver": "1.1.2",
8080
"@elastic/numeral": "2.3.2",
8181
"@elastic/ui-ace": "0.2.3",

src/core_plugins/input_control_vis/public/components/editor/controls_tab.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* under the License.
1818
*/
1919

20-
import './controls_tab.less';
2120
import _ from 'lodash';
2221
import PropTypes from 'prop-types';
2322
import React, { Component } from 'react';

src/core_plugins/input_control_vis/public/components/editor/controls_tab.less

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/add_panel.test.js.snap

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ exports[`render 1`] = `
44
<EuiFlyout
55
className="addPanelFlyout"
66
data-test-subj="dashboardAddPanel"
7+
hideCloseButton={false}
78
onClose={[Function]}
89
ownFocus={true}
910
size="s"
@@ -30,19 +31,6 @@ exports[`render 1`] = `
3031
</h2>
3132
</EuiTitle>
3233
</EuiFlexItem>
33-
<EuiFlexItem
34-
component="div"
35-
grow={false}
36-
>
37-
<EuiButtonIcon
38-
aria-label="close add panel"
39-
color="primary"
40-
data-test-subj="closeAddPanelBtn"
41-
iconType="cross"
42-
onClick={[Function]}
43-
type="button"
44-
/>
45-
</EuiFlexItem>
4634
</EuiFlexGroup>
4735
<EuiTabs>
4836
<EuiTab

src/core_plugins/kibana/public/dashboard/top_nav/add_panel.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {
2929
EuiFlyout,
3030
EuiFlyoutBody,
3131
EuiButton,
32-
EuiButtonIcon,
3332
EuiTabs,
3433
EuiTab,
3534
EuiSpacer,
@@ -142,14 +141,6 @@ export class DashboardAddPanel extends React.Component {
142141
<h2>Add Panels</h2>
143142
</EuiTitle>
144143
</EuiFlexItem>
145-
<EuiFlexItem grow={false}>
146-
<EuiButtonIcon
147-
iconType="cross"
148-
onClick={this.props.onClose}
149-
aria-label="close add panel"
150-
data-test-subj="closeAddPanelBtn"
151-
/>
152-
</EuiFlexItem>
153144
</EuiFlexGroup>
154145

155146
<EuiTabs>

src/core_plugins/kibana/public/dashboard/top_nav/add_panel.test.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919

2020
import React from 'react';
2121
import sinon from 'sinon';
22-
import { mount, shallow } from 'enzyme';
23-
import {
24-
findTestSubject,
25-
} from '@elastic/eui/lib/test';
22+
import { shallow } from 'enzyme';
2623

2724
import {
2825
DashboardAddPanel,
@@ -49,14 +46,3 @@ test('render', () => {
4946
/>);
5047
expect(component).toMatchSnapshot();
5148
});
52-
53-
test('onClose', () => {
54-
const component = mount(<DashboardAddPanel
55-
onClose={onClose}
56-
find={() => {}}
57-
addNewPanel={() => {}}
58-
addNewVis={() => {}}
59-
/>);
60-
findTestSubject(component, 'closeAddPanelBtn', false).simulate('click');
61-
sinon.assert.calledOnce(onClose);
62-
});

src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/__tests__/__snapshots__/flyout.test.js.snap

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
exports[`Flyout conflicts should allow conflict resolution 1`] = `
44
<EuiFlyout
5+
hideCloseButton={false}
56
onClose={[MockFunction]}
7+
ownFocus={false}
68
size="m"
79
>
8-
<EuiFlyoutHeader>
10+
<EuiFlyoutHeader
11+
hasBorder={false}
12+
>
913
<EuiTitle
1014
size="m"
1115
>
@@ -157,10 +161,14 @@ exports[`Flyout conflicts should handle errors 1`] = `
157161

158162
exports[`Flyout should render import step 1`] = `
159163
<EuiFlyout
164+
hideCloseButton={false}
160165
onClose={[MockFunction]}
166+
ownFocus={false}
161167
size="m"
162168
>
163-
<EuiFlyoutHeader>
169+
<EuiFlyoutHeader
170+
hasBorder={false}
171+
>
164172
<EuiTitle
165173
size="m"
166174
>

src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/__tests__/__snapshots__/relationships.test.js.snap

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
exports[`Relationships should render dashboards normally 1`] = `
44
<EuiFlyout
5+
hideCloseButton={false}
56
onClose={[MockFunction]}
7+
ownFocus={false}
68
size="m"
79
>
8-
<EuiFlyoutHeader>
10+
<EuiFlyoutHeader
11+
hasBorder={false}
12+
>
913
<EuiTitle
1014
size="m"
1115
>
@@ -127,10 +131,14 @@ exports[`Relationships should render dashboards normally 1`] = `
127131

128132
exports[`Relationships should render errors 1`] = `
129133
<EuiFlyout
134+
hideCloseButton={false}
130135
onClose={[MockFunction]}
136+
ownFocus={false}
131137
size="m"
132138
>
133-
<EuiFlyoutHeader>
139+
<EuiFlyoutHeader
140+
hasBorder={false}
141+
>
134142
<EuiTitle
135143
size="m"
136144
>
@@ -190,10 +198,14 @@ exports[`Relationships should render errors 1`] = `
190198

191199
exports[`Relationships should render index patterns normally 1`] = `
192200
<EuiFlyout
201+
hideCloseButton={false}
193202
onClose={[MockFunction]}
203+
ownFocus={false}
194204
size="m"
195205
>
196-
<EuiFlyoutHeader>
206+
<EuiFlyoutHeader
207+
hasBorder={false}
208+
>
197209
<EuiTitle
198210
size="m"
199211
>
@@ -371,10 +383,14 @@ exports[`Relationships should render index patterns normally 1`] = `
371383

372384
exports[`Relationships should render searches normally 1`] = `
373385
<EuiFlyout
386+
hideCloseButton={false}
374387
onClose={[MockFunction]}
388+
ownFocus={false}
375389
size="m"
376390
>
377-
<EuiFlyoutHeader>
391+
<EuiFlyoutHeader
392+
hasBorder={false}
393+
>
378394
<EuiTitle
379395
size="m"
380396
>
@@ -550,10 +566,14 @@ exports[`Relationships should render searches normally 1`] = `
550566

551567
exports[`Relationships should render visualizations normally 1`] = `
552568
<EuiFlyout
569+
hideCloseButton={false}
553570
onClose={[MockFunction]}
571+
ownFocus={false}
554572
size="m"
555573
>
556-
<EuiFlyoutHeader>
574+
<EuiFlyoutHeader
575+
hasBorder={false}
576+
>
557577
<EuiTitle
558578
size="m"
559579
>

test/functional/apps/visualize/_input_control_vis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default function ({ getService, getPageObjects }) {
183183
});
184184
});
185185

186-
describe('nested controls', () => {
186+
describe('chained controls', () => {
187187

188188
before(async () => {
189189
await PageObjects.common.navigateToUrl('visualize', 'new');

test/functional/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import {
4848
VisualizeListingTableProvider,
4949
DashboardAddPanelProvider,
5050
DashboardPanelActionsProvider,
51+
FlyoutProvider,
5152
} from './services';
5253

5354
export default async function ({ readConfigFile }) {
@@ -101,6 +102,7 @@ export default async function ({ readConfigFile }) {
101102
visualizeListingTable: VisualizeListingTableProvider,
102103
dashboardAddPanel: DashboardAddPanelProvider,
103104
dashboardPanelActions: DashboardPanelActionsProvider,
105+
flyout: FlyoutProvider,
104106
},
105107
servers: commonConfig.get('servers'),
106108

0 commit comments

Comments
 (0)