+
Time Range
+
-
diff --git a/src/ui/public/timepicker/timepicker.less b/src/ui/public/timepicker/timepicker.less
index ae93e301a24d..d6ab2804a43f 100644
--- a/src/ui/public/timepicker/timepicker.less
+++ b/src/ui/public/timepicker/timepicker.less
@@ -75,17 +75,6 @@
display: flex;
align-items: center;
}
- .kbn-timerpicker-nav-button {
- padding: 3px 10px;
- font-size: 14px;
- border-radius: 4px;
- display: block;
-
- &.active {
- color: @globalColorWhite;
- background-color: @globalColorBlue;
- }
- }
/**
* Avoid last nav overlaping collapse button
*/
diff --git a/src/ui/ui_render/views/chrome.jade b/src/ui/ui_render/views/chrome.jade
index 90123c7f17fc..fde8ab04a6d8 100644
--- a/src/ui/ui_render/views/chrome.jade
+++ b/src/ui/ui_render/views/chrome.jade
@@ -105,6 +105,11 @@ html(lang='en')
}
block head
+
+ //- Load EUI component styles here. Kibana's styles are loaded afterwards by webpack, which is
+ //- good because we may use them to override EUI styles.
+ style#themeCss
+
body(kbn-chrome, id='#{appName}-body')
kbn-initial-state(data=JSON.stringify(kibanaPayload))
block content
diff --git a/tasks/config/licenses.js b/tasks/config/licenses.js
index dab0411ac4b7..8365ea32934c 100644
--- a/tasks/config/licenses.js
+++ b/tasks/config/licenses.js
@@ -8,6 +8,7 @@ module.exports = function () {
'(MIT AND CC-BY-3.0)',
'(MIT AND Zlib)',
'(MIT OR Apache-2.0)',
+ '(WTFPL OR MIT)',
'AFLv2.1',
'Apache 2.0',
'Apache License, v2.0',
@@ -15,6 +16,7 @@ module.exports = function () {
'Apache*',
'Apache, Version 2.0',
'Apache-2.0',
+ 'BSD 3-Clause',
'BSD New',
'BSD',
'BSD*',
@@ -22,11 +24,11 @@ module.exports = function () {
'BSD-3-Clause AND MIT',
'BSD-3-Clause OR MIT',
'BSD-3-Clause',
- 'BSD 3-Clause',
'BSD-like',
'CC-BY',
'CC-BY-4.0',
'ISC',
+ 'MIT OR GPL-2.0',
'MIT',
'MIT*',
'MIT/X11',
@@ -35,7 +37,6 @@ module.exports = function () {
'Public domain',
'Unlicense',
'WTFPL OR ISC',
- 'MIT OR GPL-2.0',
'WTFPL',
],
overrides: {
diff --git a/test/functional/apps/dashboard/_view_edit.js b/test/functional/apps/dashboard/_view_edit.js
index 68d7c0afcd8c..51847899c35c 100644
--- a/test/functional/apps/dashboard/_view_edit.js
+++ b/test/functional/apps/dashboard/_view_edit.js
@@ -57,27 +57,6 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.dashboard.gotoDashboardEditMode(dashboardName);
});
- it('when time changed is stored with dashboard', async function () {
- const originalFromTime = '2015-09-19 06:31:44.000';
- const originalToTime = '2015-09-19 06:31:44.000';
- await PageObjects.header.setAbsoluteRange(originalFromTime, originalToTime);
- await PageObjects.dashboard.saveDashboard(dashboardName, { storeTimeWithDashboard: true });
- await PageObjects.header.clickToastOK();
-
- await PageObjects.dashboard.clickEdit();
- await PageObjects.header.setAbsoluteRange('2013-09-19 06:31:44.000', '2013-09-19 06:31:44.000');
- await PageObjects.dashboard.clickCancelOutOfEditMode();
-
- // confirm lose changes
- await PageObjects.common.clickConfirmOnModal();
-
- const newFromTime = await PageObjects.header.getFromTime();
- const newToTime = await PageObjects.header.getToTime();
-
- expect(newFromTime).to.equal(originalFromTime);
- expect(newToTime).to.equal(originalToTime);
- });
-
it('when the query is edited and applied', async function () {
const originalQuery = await PageObjects.dashboard.getQuery();
await PageObjects.dashboard.setQuery(`${originalQuery} and extra stuff`);
@@ -156,32 +135,6 @@ export default function ({ getService, getPageObjects }) {
expect(panelCount).to.eql(visualizations.length);
});
});
-
- describe('and preserves edits on cancel', function () {
- it('when time changed is stored with dashboard', async function () {
- await PageObjects.dashboard.gotoDashboardEditMode(dashboardName);
- const newFromTime = '2015-09-19 06:31:44.000';
- const newToTime = '2015-09-19 06:31:44.000';
- await PageObjects.header.setAbsoluteRange('2013-09-19 06:31:44.000', '2013-09-19 06:31:44.000');
- await PageObjects.dashboard.saveDashboard(dashboardName, true);
- await PageObjects.header.clickToastOK();
- await PageObjects.dashboard.clickEdit();
- await PageObjects.header.setAbsoluteRange(newToTime, newToTime);
- await PageObjects.dashboard.clickCancelOutOfEditMode();
-
- await PageObjects.common.clickCancelOnModal();
- await PageObjects.dashboard.saveDashboard(dashboardName, { storeTimeWithDashboard: true });
- await PageObjects.header.clickToastOK();
-
- await PageObjects.dashboard.loadSavedDashboard(dashboardName);
-
- const fromTime = await PageObjects.header.getFromTime();
- const toTime = await PageObjects.header.getToTime();
-
- expect(fromTime).to.equal(newFromTime);
- expect(toTime).to.equal(newToTime);
- });
- });
});
describe('Does not show lose changes warning', async function () {
diff --git a/test/functional/apps/visualize/_gauge_chart.js b/test/functional/apps/visualize/_gauge_chart.js
index e9081bf15002..9444cb03b1c6 100644
--- a/test/functional/apps/visualize/_gauge_chart.js
+++ b/test/functional/apps/visualize/_gauge_chart.js
@@ -44,57 +44,6 @@ export default function ({ getService, getPageObjects }) {
});
});
- it('should show Split Gauges', function () {
- const expectedTexts = [ 'win 8', 'win xp', 'win 7', 'ios', 'osx' ];
- return PageObjects.visualize.clickMetricEditor()
- .then(function clickBucket() {
- log.debug('Bucket = Split Group');
- return PageObjects.visualize.clickBucket('Split Group');
- })
- .then(function selectAggregation() {
- log.debug('Aggregation = Terms');
- return PageObjects.visualize.selectAggregation('Terms');
- })
- .then(function selectField() {
- log.debug('Field = machine.os.raw');
- return PageObjects.visualize.selectField('machine.os.raw');
- })
- .then(function clickGo() {
- return PageObjects.visualize.clickGo();
- })
- .then(function () {
- return retry.try(function tryingForTime() {
- return PageObjects.visualize.getGaugeValue()
- .then(function (metricValue) {
- expect(expectedTexts).to.eql(metricValue);
- });
- });
- });
- });
-
- it('should show correct values for fields with fieldFormatters', async function () {
- const expectedTexts = [ '2,904\nwin 8: Count', '5.528KB' ];
-
-
- await PageObjects.visualize.clickMetricEditor();
- await PageObjects.visualize.clickBucket('Split Group');
- await PageObjects.visualize.selectAggregation('Terms');
- await PageObjects.visualize.selectField('machine.os.raw');
- await PageObjects.visualize.setSize('1');
- await PageObjects.visualize.clickAddMetric();
- await PageObjects.visualize.clickBucket('Metric');
- await PageObjects.visualize.selectAggregation('Average', 'metrics');
- await PageObjects.visualize.selectField('bytes', 'metrics');
- await PageObjects.visualize.clickGo();
-
- return retry.try(function tryingForTime() {
- return PageObjects.visualize.getGaugeValue()
- .then(function (metricValue) {
- expect(expectedTexts).to.eql(metricValue);
- });
- });
- });
-
});
});
}
diff --git a/test/functional/page_objects/header_page.js b/test/functional/page_objects/header_page.js
index 1ae30d2bdceb..edce1bb8435d 100644
--- a/test/functional/page_objects/header_page.js
+++ b/test/functional/page_objects/header_page.js
@@ -49,7 +49,7 @@ export function HeaderPageProvider({ getService, getPageObjects }) {
async clickQuickButton() {
await retry.try(async () => {
remote.setFindTimeout(defaultFindTimeout);
- await remote.findByLinkText('Quick').click();
+ await testSubjects.click('timepicker-quick-button');
});
}
@@ -68,8 +68,7 @@ export function HeaderPageProvider({ getService, getPageObjects }) {
if (!isAbsoluteSectionShowing) {
await retry.try(async () => {
await remote.setFindTimeout(defaultFindTimeout);
- const absoluteButton = await remote.findByLinkText('Absolute');
- await absoluteButton.click();
+ await testSubjects.click('timepicker-absolute-button');
// Check to make sure one of the elements on the absolute section is showing.
await this.getFromTime();
});
diff --git a/test/functional/services/test_subjects.js b/test/functional/services/test_subjects.js
index 145e9d4835ae..91e0a215c1ad 100644
--- a/test/functional/services/test_subjects.js
+++ b/test/functional/services/test_subjects.js
@@ -41,7 +41,7 @@ export function TestSubjectsProvider({ getService }) {
async find(selector, timeout = defaultFindTimeout) {
log.debug(`TestSubjects.find(${selector})`);
- return await find.displayedByCssSelector(testSubjSelector(selector), timeout);
+ return await find.byCssSelector(testSubjSelector(selector), timeout);
}
async findAll(selector) {
diff --git a/ui_framework/dist/ui_framework.css b/ui_framework/dist/ui_framework.css
index c6dd59c482a8..5f557d9bdf2c 100644
--- a/ui_framework/dist/ui_framework.css
+++ b/ui_framework/dist/ui_framework.css
@@ -54,11 +54,6 @@
* 4. Fix an IE bug which causes the last child to overflow the container.
* 5. Fixing this bug means we now need to align the children to the right.
*/
-* {
- box-sizing: border-box; }
- *:before, *:after {
- box-sizing: border-box; }
-
:focus {
z-index: 1;
/* 1 */
@@ -67,9 +62,6 @@
box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px #0079a5;
/* 3 */ }
-body {
- font-family: "Open Sans", Helvetica, Arial, sans-serif; }
-
/**
* 1. Required for IE11.
*/
@@ -77,11 +69,6 @@ main {
display: block;
/* 1 */ }
-button,
-input[type="submit"],
-input[type="button"] {
- border-radius: 0; }
-
.kuiScreenReaderOnly {
position: absolute;
left: -10000px;
diff --git a/ui_framework/src/global_styling/reset/_reset.scss b/ui_framework/src/global_styling/reset/_reset.scss
index c4275c73826a..51fc3932e294 100644
--- a/ui_framework/src/global_styling/reset/_reset.scss
+++ b/ui_framework/src/global_styling/reset/_reset.scss
@@ -1,30 +1,11 @@
-* {
- box-sizing: border-box;
-
- &:before,
- &:after {
- box-sizing: border-box;
- }
-}
-
// Removes outline, but still provides a two color box shadow that works anywhere.
:focus {
@include focus;
}
-body {
- font-family: $kuiFontFamily;
-}
-
/**
* 1. Required for IE11.
*/
main {
display: block; /* 1 */
}
-
-button,
-input[type="submit"],
-input[type="button"] {
- border-radius: 0;
-}