Commit graph

15839 commits

Author SHA1 Message Date
Spencer
7e16d19249 [npm] move personal forks into elastic org (#13410) 2017-08-09 12:31:30 -07:00
Tim Roes
e66c1d2ac4 Create keyboard mode for ui-ace editor (#13339)
* Add kbn-ui-ace-keyboard-mode directive

* Implemented PR feedback

* Fix broken tests
2017-08-09 21:24:04 +02:00
Spencer
12142da71b [server/stats] add server.getKibanaStats() for programatic access (#13411) 2017-08-09 09:27:54 -07:00
Stacey Gammon
db4eb64aef Be case insensitive when sorting on the visualize and dashboard landing pages (#13397) 2017-08-09 12:20:59 -04:00
Lukas Olson
e545b12018 Truncate long field names in filter editor (#13379)
* Truncate long field names in filter editor

* Update filter editor styles
2017-08-09 08:43:55 -07:00
Matt Bargar
3b0c820f12 Make 'all filters' actions keyboard accessible (#13391)
* Make 'all filters' actions keyboard accessible
* Add extra aria props to actions toggle
2017-08-09 11:21:40 -04:00
Stacey Gammon
7199476c1f port k7 popover component over (#13322)
* port k7 popover component over

* Fix line height

* Clean up css
2017-08-09 10:37:40 -04:00
Stacey Gammon
fb203eaf2e Intentionally show spy pane in full screen mode, but not embed mode (#13395) 2017-08-09 09:41:09 -04:00
Spencer
8a64872ecb [fix/UiSettings] ignore certain errors (#13079)
* [SavedObjectClient] emit detectable errors

* [uiSettingsService] consume new SavedObjectsClient errors

* [SavedObjectsClient] expose errorTypeHelpers as such

* [elasticsearch/tests] recreate error for each test

* [http] wait for elasticsearch plugin to be ready

* [shortUrl/tests] ensure that create request responds with 200

* [shortUrl] use errorTypeHelpers to filter errors

* [uiSettings/savedObjectsClientStub] stub errorTypeHelpers

* [SavedObjectsClient/errors] expose error module so tests can make errors

* [shortUrl/tests] use actual SavedObjectsClient errors

* [uiSettings/savedObjectsClientStub] use actual errors lib

* [SavedObjectsClient] use decorate instead of "wrap"

* [server/routes/uiSettings] refactor routes to forward Boom errors from uiSettings

* [uiSettings] colocate routes and service

* [testUtils/esTestCluster] use more standard api style

* [testUtils/es] add createCallCluster util

* [testUtils/esTestCluster] add getters for client/callCluster

* [es/healthcheck] ensure that healtcheck stops when server is stopped

* [uiSettings/routes] add param/payload validation

* [uiSettings/routes] add tests that verify error behaviors
2017-08-08 17:55:36 -07:00
Spencer
924548864d [es/healthcheck] ensure that healthcheck stops when server is stopped (#13201) 2017-08-08 15:11:23 -07:00
Stacey Gammon
b5e13ff1d0 Fix dark theme issues with spy toggle and spy pane (#13345)
* Fix dark theme issues with spy toggle and spy pane

* Port dark theme portion of styling kuiIcon into uiFramework library
2017-08-08 15:21:00 -04:00
Matt Bargar
542d553fe2 Make filter pills keyboard accessible (#13331)
Fixes #12639

It's now possible to tab to each filter's actions and interact with them via the keyboard.

In order to get the actions to show/hide on both mouse hover and action focus I had to create a new filter-pill component that could manage a bit of state to track whether the user was interacting with a given pill or not.
2017-08-08 13:06:20 -04:00
Stacey Gammon
9aed822726 Use find service instead of remote (#13296)
* Use find service instead of remote which doesn't have built in safety checks for stale elements

* use data-test-subj instead of id

* add missing function and awaits

* Did not realize WebElements could find descendants

Added some extra functionality for this in find and testSubjects
service, and using in the one place it’s required.
2017-08-08 11:32:13 -04:00
Stacey Gammon
6e744521b3 Create the concept of embeddableHandlers (#12146)
* Move dashboard panel rendering logic to each registered type.

* Remove dashboard knowledge of click and brush handlers for visualizations

Move it to the VisualizeEmbeddableHandler.

* merge master with manual changes

* No need to use lodash

* Add EmbeddableHandler base class

* Use correct path to embeddable_handlers_registry

* clean up

* Set visualize scope uiState that is of type PersistedState, otherwise it won't actually be set.

* add retry to loading saved search data

* Fix handleError param and remove unnecessary private param

* Rename savePanelState updatePanel and return the new object rather than mutating the original

* Make ContainerAPI a base class and move the dashboard specific functionality into a new class

* Make api's async and clean up documentation

* Fix panel tests

* Fix bug which broke tests - need to pass container-api to dashboard-panel

* Address code comments

- Rename onFilter to addFilter
- Use angular promises instead of async/await
- fix jsdoc
- rename createChildUiState to getInitialState

* changed the wrong variable name

* no need for async or Promise.reject on interface

* add tests that will fail due to spy pane issue in this PR

* Fix logic with spy pane toggle

There is still a bit of a bug here as mentioned in
https://github.com/elastic/kibana/issues/13340 but it will be fixed
separately as it’s also an issue in master

* Fix failing test
2017-08-08 11:27:30 -04:00
Stacey Gammon
9f05b8d5b4 Show full screen option even when write controls are hidden (#13247) 2017-08-08 11:17:14 -04:00
Tim Roes
d71bea67df Move build-info to status page (#13341)
* Move build-info to status page
* Remove info property from management section
2017-08-08 12:11:26 +02:00
Lukas Olson
54622755f8 Remove highlight query (#13231)
* Change use of all_fields in highlight_query to default_field

* Remove highlight query and option

* Fix tests

* Remove unused setting

* Remove lingering references to all_fields
2017-08-07 13:34:11 -07:00
Stacey Gammon
ab8668aa3a Fix accessibility issues with saved object finder (#13152)
* Fix accessibility issues with saved object finder

and use new kui styles

* Dark theme-icy kuiTabs

* Refer to existing dark theme color variables.  Use dark theme hover link color.

* use button instead of div element so no need for kbn-accessible-click

* Add dark theme tab variety to ui framework site, lighten color of background tabs
2017-08-07 14:13:48 -04:00
Felix Stürmer
47db80d6f8 [docs] Add css style guide section on open/closed principle (#12276) 2017-08-07 18:04:25 +02:00
Søren Louv-Jansen
8cfbb82cfb Mock out static files when running in Jest (#13315) 2017-08-07 17:35:59 +02:00
Stacey Gammon
161b07ab4a Fix full screen toggle button when panel is expanded (#13320)
* Add failing tests

* Fix style issues with full screen toggle
2017-08-07 09:14:33 -04:00
Spencer
8ee85f8fed Add some testSubject helpers (#13305)
* [testSubjects] add getVisibleTextAll() helper

* [testSubjects] add isSelected() and isSelectedAll() helpers

* [testSubjects/setValue] support wrappers around inputs

* [testSubjects] add isEnabled() helper

* fix typo
2017-08-04 18:49:12 -07:00
Matt Bargar
a4b72f2ad7 Add documentation link to query bar when Kuery is selected (#13300)
* Add doc link to kuery bar
2017-08-04 14:54:16 -04:00
Matt Bargar
3dfcf5dc98 Remove simple_query_string hack now that multi_match supports * (#13285) 2017-08-04 14:45:21 -04:00
Peter Pisljar
3e3b0cb8ba resize was not detected correctly (#13239) 2017-08-04 08:10:32 +02:00
Lukas Olson
14c9b7e06a Use ui-select for agg selector (#13292)
* Use ui-select for agg selector

* Fix functional tests

* Fix functional tests

* Fix test

* Fix visualize page object

* Use sortPrefixFirst in agg selector

* Fix unit tests

* Fix unit test

* Use not(.ng-hide) rather than last-child
2017-08-03 13:46:18 -07:00
Thomas Neirynck
8a1cdf1983 fix typo 2017-08-03 14:52:34 -04:00
Thomas Neirynck
5fe682dfc2 Improve region map documentation (#13319) 2017-08-03 14:46:16 -04:00
Tim Sullivan
6648335d51 [Accessibilty] Make kbn_accessible_click part of autoload/all (#13299)
* [Accessibility] Ensure kbn-accessible-click is part of autoload/all

* remove unecessary kbn_accessible_click imports

* use an index.js file to expose inner directives
2017-08-03 10:00:16 -07:00
Jonathan Budzenski
7e28e984bd [visualize spy] Pull index title instead of id (#13254)
* [visualize spy] Pull index title instead of id

* [visualize spy] Check for existence of index before pulling params
2017-08-03 11:31:43 -05:00
Stacey Gammon
4f5313a088 Make sure no one can show the chrome if the default setting is hidden. (#13250)
* Make sure no one can show the chrome if the default setting is hidden.

add tests

Fixes https://github.com/elastic/kibana/issues/13040

* Improve variable and function names and fix tests
2017-08-03 11:25:38 -04:00
Thomas Neirynck
e57c4fb5bb Visualization accessibility issues (#13226) 2017-08-03 11:23:43 -04:00
CJ Cenizal
b670baeeec Add AirBnB linting rules for React best practices. Bump to v0.10.0. (#13259) 2017-08-03 08:18:08 -07:00
Spencer
c68c0d6588 [ui/routes] clone defaults before apply (#13295)
* [ui/routes] add failing tests

* [ui/routes] clone defaults before applying them

* Mention issue in related tests
2017-08-02 13:25:53 -07:00
Matt Bargar
f78bb5dc11 Add Kuery docs and break search page into subsections (#13074)
* Add Kuery docs and break search page into subsections
2017-08-02 15:16:00 -04:00
ytzlax
10280e8f9c Add Kibana API plugin (#13206) 2017-08-02 11:46:50 -04:00
Spencer
0aa4206d2c [npm] upgrade postcss-loader (#13279)
Needed to get a version that included https://github.com/postcss/postcss-loader/pull/174
2017-08-01 18:33:39 -07:00
Court Ewing
c33ac752eb Revert "override version until elastic/elasticsearch#25876 is merged" (#13196)
This reverts commit ce8333b70f.
2017-08-01 17:43:42 -07:00
Thomas Neirynck
3838fa5ae2 ensure we are working with data-series (#13266)
This fixes a regression introduced by https://github.com/elastic/kibana/pull/13217.
2017-08-01 17:29:48 -04:00
CJ Cenizal
08719cd863 [UI Framework] Spawn compileCss as a child process to prevent a node-sass fatal error from killing the watch process (#13222)
* Spawn compileCss as a child process to prevent a node-sass fatal error from killing the watch process.
* Document tasks.
2017-08-01 14:11:23 -07:00
Tim Sullivan
f37eab9b44 [Framework/Accessibility] Add kuiScreenReaderOnly class (#13133)
* [Framework/Accessibility] Add kuiScreenReaderOnly class

* fix typo

* use GuideLink

* add screen_reader react component and tests

* export KuiScreenReaderOnly

* --wip-- [skip ci]

* fix lint rule

* remove obsolete snapshots
2017-08-01 13:31:51 -07:00
Matt Bargar
9057937ff2 Send map filters through so it get picked up by both kuery and lucene (#13251) 2017-08-01 13:49:16 -04:00
Thomas Neirynck
0353735f27 Exclude stacktrace from error response of Timelion backend (#12973) 2017-08-01 11:23:51 -04:00
Peter Pisljar
5703ffc9de in percentage mode tooltip should also show percentages (#13217) 2017-08-01 10:06:59 +02:00
Peter Pisljar
baabbdfa10 removes :filters from label (#12962) 2017-08-01 10:02:59 +02:00
Jonathan Budzenski
99a991b783 [docs] Add docker-compose version to example (#13006) 2017-08-01 15:47:21 +10:00
Matt Bargar
18f8455711 Add some functional tests for query language switching (#13036)
* Add some functional tests for query language switching
2017-07-31 18:24:46 -04:00
Kim Joar Bekkelund
5772f56d7a Remove @elastic folder from packages/ (#13089) 2017-07-31 13:58:50 -07:00
Spencer
9389f0b71a [server/indexPatterns] expose indexPatternService getter/factory (#13012) 2017-07-31 12:44:57 -07:00
Nathan Reese
abcc055f97 update spy table headers when columns update (#13130)
* update paginated table headers with columns update

* remove unneeded sleep

* update getDataTableHeaders to preffered format

* use data-test-subj attribute for functional tests instead of CSS selectors
2017-07-31 12:45:38 -06:00