Commit graph

15845 commits

Author SHA1 Message Date
Court Ewing
52f78dc8d1 remove @bigfunger/jsondiffpatch (#13442)
This dependency is no longer used.
2017-08-11 10:07:18 -04:00
Stacey Gammon
fbebc272cb Be case insensitive when sorting on the visualize and dashboard landing pages (#13397) (#13419) 2017-08-11 08:40:22 -04:00
Chris Cowan
7cc9d5d7f0 Fixes #13246 - Add checks for empty annotations (#13422)
* Fixes #13246 - Add checkes for empty annotations

* Refactoring get_annotations to use async/await
2017-08-10 16:51:14 -07:00
Chris Cowan
cd7ca1b25a Moving timezone functions from Timelion to Vis (#13457)
* Moving timezone functions from Timeline to global

* Fixing a missing require
2017-08-10 16:42:45 -07:00
Thomas Neirynck
2e5fe5f56c ensure editor mode propagates correctly (#13355) 2017-08-10 18:15:34 -04:00
Chris Cowan
47abe123f0 Fixes #12685 - Improve error handling, add error for missing aggregations key. (#12688) 2017-08-10 14:43:36 -07:00
Lisa Cawley
07facd7c44 [DOCS] Update links to Kibana security (#13456) 2017-08-10 14:16:20 -07:00
Chris Cowan
f89f89f0e6 Fix a bug with the interval label for TSVB (#13440)
* Fix a bug with the interval label for TSVB

* Ensure reduce returns something
2017-08-10 10:24:30 -07:00
Chris Roberson
511ffa22a5 [Management] Improve accessibility within management (#13364)
* Use header/h tag for tab header, #12861

* Add tabindexes for tables, #12862

* Add for/id pairings, #12863

* Search role, #12868

* Use better descriptions for aria labels, #12865

* Add aria label, #12870

* Button and a tags are already in tab order, removing unnecessary change

* The input field cannot contain the role="search"

* The tabindex needs to be on the element which the click handler

* Remove tabindex and remove the class applying the hover styles - honestly, we can probably make due without any class (using default h2 styles)

* Revert "Remove tabindex and remove the class applying the hover styles - honestly, we can probably make due without any class (using default h2 styles)"

This reverts commit c54ea227889898baef85ee71b3350bbf69ef5d7c.

* Remove the extra code my cat added

* Addressing hidden inputs from #12863

* Remove unnecessary header tag

* Add clarifying comment

* Prevent multiple ids
2017-08-10 13:20:13 -04:00
Matt Bargar
6a9a20f9ec Remove esAdmin mention from docs since it no longer exists (#13449) (#13450)
The angular service was removed in #13000
2017-08-10 12:33:40 -04:00
Thomas Neirynck
4a47c03190 Visualize Accessibility Issues (#13428) 2017-08-10 11:12:21 -04:00
Spencer
0c30a93b68 [server/stats] add server.getKibanaStats() for programatic access (#13411)
(cherry picked from commit 12142da71b)
2017-08-09 12:59:22 -07:00
Spencer
3a876eae54 [npm] move personal forks into elastic org (#13410)
(cherry picked from commit 7e16d19249)
2017-08-09 12:39:42 -07:00
Tim Roes
493fad2dec 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:26:32 +02:00
Matt Bargar
d82f5557ba Make 'all filters' actions keyboard accessible (#13391) (#13417)
* Make 'all filters' actions keyboard accessible
* Add extra aria props to actions toggle
2017-08-09 12:36:10 -04:00
Stacey Gammon
afc8ca43d3 port k7 popover component over (#13322) (#13416)
* port k7 popover component over

* Fix line height

* Clean up css
2017-08-09 12:23:54 -04:00
Lukas Olson
b677bea573 Truncate long field names in filter editor (#13379)
* Truncate long field names in filter editor

* Update filter editor styles
2017-08-09 08:44:51 -07:00
Stacey Gammon
aedab1840b Intentionally show spy pane in full screen mode, but not embed mode (#13395) (#13415) 2017-08-09 10:39:04 -04:00
Stacey Gammon
e8d1169319 Fix dark theme issues with spy toggle and spy pane (#13345) (#13398)
* Fix dark theme issues with spy toggle and spy pane

* Port dark theme portion of styling kuiIcon into uiFramework library
2017-08-09 09:38:57 -04:00
Spencer
252024df52 [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

(cherry picked from commit 8a64872ecb)
2017-08-08 17:57:07 -07:00
Spencer
f66daee862 [es/healthcheck] ensure that healthcheck stops when server is stopped (#13201)
(cherry picked from commit 924548864d)
2017-08-08 15:18:24 -07:00
Matt Bargar
1ee023afa8 Make filter pills keyboard accessible (#13331) (#13392)
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 17:03:36 -04:00
Stacey Gammon
b97f84968c Show full screen option even when write controls are hidden (#13247) (#13384) 2017-08-08 13:27:22 -04:00
Stacey Gammon
abf9def02d Create the concept of embeddableHandlers (#12146) (#13386)
* 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 13:27:12 -04:00
Stacey Gammon
f9894e9a3b Use find service instead of remote (#13296) (#13387)
* 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 13:26:54 -04:00
Stacey Gammon
0698088fc7 Fix accessibility issues with saved object finder (#13152) (#13371)
* 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-08 09:52:42 -04:00
Tim Roes
ea2a31d2d7 Move build-info to status page (#13341)
* Move build-info to status page
* Remove info property from management section
2017-08-08 12:15:10 +02:00
Lukas Olson
9bdba7c84f 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:38:36 -07:00
Stacey Gammon
84a34e333c Fix full screen toggle button when panel is expanded (#13320) (#13362)
* Add failing tests

* Fix style issues with full screen toggle
2017-08-07 13:50:06 -04:00
Felix Stürmer
c888180e73 [6.x] [docs] Add css style guide section on open/closed principle (#13368)
Backports PR #12276
2017-08-07 18:17:40 +02:00
CJ Cenizal
ff66d71e97 Mock out static files when running in Jest (#13315) (#13367) 2017-08-07 09:16:31 -07:00
Spencer
679d8ad738 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

(cherry picked from commit 8ee85f8fed)
2017-08-04 18:49:44 -07:00
Matt Bargar
b1f6dddf35 Add documentation link to query bar when Kuery is selected (#13300) (#13349)
* Add doc link to kuery bar
2017-08-04 16:54:10 -04:00
Matt Bargar
b187ef98f4 Remove simple_query_string hack now that multi_match supports * (#13285) (#13346) 2017-08-04 16:53:28 -04:00
Peter Pisljar
8f2d2cffea resize was not detected correctly (#13239) 2017-08-04 08:11:21 +02:00
Lukas Olson
8eff313d6a 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 15:26:48 -07:00
Thomas Neirynck
1ab9a095aa fix typo 2017-08-03 14:55:35 -04:00
Thomas Neirynck
1998616a08 Improve region map documentation (#13319) 2017-08-03 14:55:35 -04:00
Stacey Gammon
7e5d2c4842 Make sure no one can show the chrome if the default setting is hidden. (#13250) (#13317)
* 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 13:10:24 -04:00
Tim Sullivan
7e0559f667 [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:02:49 -07:00
Jonathan Budzenski
d1d0290cbc
[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:32:31 -05:00
CJ Cenizal
0ac9c2fdf2 [6.x] [eslint-config-kibana] 0.9.0 and 0.10.0 (#13318)
* [eslint-config-kibana] Add jest plugin and settings (#13090)
* Add AirBnB linting rules for React best practices. Bump to v0.10.0. (#13259)
2017-08-03 08:49:38 -07:00
Thomas Neirynck
df2e5a655f Visualization accessibility issues (#13226) 2017-08-03 11:32:30 -04:00
Spencer
bb1e1e82e3 [ui/routes] clone defaults before apply (#13295)
* [ui/routes] add failing tests

* [ui/routes] clone defaults before applying them

* Mention issue in related tests

(cherry picked from commit c68c0d6588)
2017-08-02 13:27:07 -07:00
Matt Bargar
060b9e4dfe Add Kuery docs and break search page into subsections (#13074) (#13302)
* Add Kuery docs and break search page into subsections
2017-08-02 16:11:31 -04:00
ytzlax
1ea3f6b6d5 Add Kibana API plugin (#13206) 2017-08-02 12:03:25 -04:00
Nathan Reese
2fb7973ea5 update spy table headers when columns update (#13130) (#13224)
* 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-08-01 20:34:25 -06:00
Spencer
b5f20bc60a [npm] upgrade postcss-loader (#13279)
Needed to get a version that included https://github.com/postcss/postcss-loader/pull/174
(cherry picked from commit 0aa4206d2c)
2017-08-01 18:37:47 -07:00
Tim Sullivan
508d6cb8eb [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 15:56:12 -07:00
Thomas Neirynck
2d73481f8a ensure we are working with data-series (#13266) (#13273)
This fixes a regression introduced by https://github.com/elastic/kibana/pull/13217.
2017-08-01 18:34:44 -04:00