Commit graph

15890 commits

Author SHA1 Message Date
Court Ewing
fd084aea3b Shortcut to build asciidocs (#13164)
* Shortcut to build asciidocs

The command to build the Kibana docs using the elastic/docs repo can be
easy to forget, so this script is an easy to way to do it right every
time.

* Configurable docs repo location

For folks that clone the elastic docs repo to a different location than
as a sibling of kibana.
2017-08-23 10:28:19 -04:00
Peter Pisljar
1c0cb169f4 don't hide metric if show labels is false (#13637) 2017-08-23 14:39:26 +02:00
Thomas Neirynck
1eb07a925f Add interval doc (#13629) 2017-08-22 23:53:01 -04:00
Johnny Lim
c50cf24bad Use "curl -O" for Darwin (#13602) 2017-08-22 17:48:24 -07:00
Matt Bargar
24ad8c0374 Disable creation of "exists" filters for scripted fields (#13538) (#13641)
* Disable exists filter button for scripted fields in doc viewer

* Disabled exists filter button for scripted fields in discover sidebar

* Fix reference to non-existent scope variable
2017-08-22 13:10:37 -04:00
Tim Sullivan
6d90c08b5c [UI Bundler] Add Aliases for Moment so plugins can use the same instance (#13628) 2017-08-22 09:27:09 -07:00
Tim Roes
45848c7522 Show a warning for non accessible charts for screen readers (#13573)
* Show warning for non accessible visualizations, fix 13572

* Mark markdown vis as accessible
2017-08-22 11:25:33 +02:00
Spencer
dc595320b8 [chrome/nav/lastUrl] do not track redirect routes (#13432)
* [chrome/nav/lastUrl] do not track redirect routes

* [chrome/subUrl] always track subUrl when no router

(cherry picked from commit 9a349929d9)
2017-08-21 22:35:16 -07:00
Thomas Neirynck
e6ce9705ad remove geo_bounds agg from visualizations (#13536)
* remove geo_bounds agg from visualizations

* remove from horizontal bar chart
2017-08-21 16:02:35 -04:00
Matt Bargar
5e73c36c46 Fix discover sidebar Visualize button for geo_point fields (#13539) (#13614)
Fixes #12227

It seems the order of aggs is important now. I don't know the underlying cause here, I just saved a good and bad version of tilemap visualizations and compared the saved objects to figure out what changed.
2017-08-21 13:05:22 -04:00
CJ Cenizal
3696fc02de Fix bug with Dashboard breadcrumb alignment. (#13580) (#13620) 2017-08-21 09:15:46 -07:00
CJ Cenizal
e087c4b7d9 [UI Framework] Add KuiOutsideClickDetector (#13521) (#13618)
* Add KuiOutsideClickDetector.
* Convert KuiColorPicker and KuiPopover to use KuiOutsideClickDetector.
2017-08-21 09:00:43 -07:00
Thomas Neirynck
d5ce2e60fb fix available metric aggs (#13518) (#13612) 2017-08-21 11:54:23 -04:00
Tim Roes
904bda9b27 Improve timelion accessibility (#13531)
* Fix broken refresh shortcut for non OS X

On non OS X systems, the e.metaKey is most likely the windows key.
Hotkeys with the windows key are usually used as global (non application
internal) hotkeys. Also the documentation states, that Ctrl + Enter
should also work. With this commit it doesn't matter whether you press
the Meta or the Ctrl key + Enter.

* Make timelion datepicker more accessible

* Add meaningful labels to each interval shortcut, and
* Add a proper label to the custom input text field

* Make save options keyboard accessible, fix #12246, fix #12487

* Make sort button of saved-object-finder accessible, fix #12486

* Label timelion options correctly, fix #12907

* Make timelion legends keyboard accessible, fix #11844

* Make timelion autocompletion properly accessible

Fixes #11533, fixes #11525, fixes #12908

* Make timelion charts and actions accessible, fix #12909

* Add some more inline comments

* Fix HTML styles according to styleguide

* Replace sr-only by kuiScreenReaderOnly

* Make timelion autocompletion work with ARIA 1.1
2017-08-21 11:54:12 +02:00
Spencer
d1e26e28eb [savedObjectClient] decorate non-es errors too (#13596)
(cherry picked from commit 8141e3fe4b)
2017-08-18 18:08:35 -07:00
CJ Cenizal
7ed4365c2c [Accessibility] Make table pagination controls keyboard-accessible. (#13541) (#13601)
* Make table pagination controls keyboard-accessible. Update KuiLink so it can be used on a button element.
* Add additional properties to link mixin to make kuiLink look the same for both buttons and anchor tags.
* Fix tests.
2017-08-18 17:15:12 -07:00
CJ Cenizal
25900adc51 [UI Framework] [K7] Improve generator snippets (#13598) (#13599) (#13600)
* Remove extraneous path info from SCSS import snippet.
* Add GuideCode to demo page. Put stateless function params on multiple lines.
* Log an error if you try to create a component with a blank name.
2017-08-18 16:14:54 -07:00
Chris Cowan
66bb17e913 Fixes #12866 - Use devicePixelRatio to scale up and down canvas values in TSVB (#13565) 2017-08-18 14:32:04 -07:00
Matt Bargar
9350243dc0 Emphasize important difference between Kuery and Lucene query syntax (#13592) (#13594)
Fixes #13563

Brings additional attention to the fact that Kuery uses implicit ANDs whereas Lucene query syntax uses implicit ORs, which could confuse users if they're not aware of the difference.
2017-08-18 16:47:28 -04:00
Chris Roberson
ea983c3c59 Fix breaking scope changes in the field format editor samples (#13549) 2017-08-18 14:48:13 -04:00
Matt Bargar
2ef1fef907 Improves dark theme support in the filter editor (#13522) (#13577)
Fixes #12955

* Added dark theme support to the ui framework modal component
* Also fixed z-index issue where dashboard panels would appear above the filter editor modal when the user moved or resized the panel (see gif below)
2017-08-18 14:06:00 -04:00
Chris Roberson
af4d258a07 Add aria describes for warning label, #12864 (#13576) 2017-08-18 13:08:57 -04:00
Jonathan Budzenski
179d476823
[console] Replace text/plain fallback with application/json (#12294)
* [console] Always set content-type for requests to es

* [console] always set content type to application/json if there is a body

* remove extra space
2017-08-18 10:03:16 -05:00
Chris Cowan
e99ebe3baf Duration Formatting for TSVB (#13337)
* Adding duration formatter

* Adding decimal places

* Fixing bug with decimals

* Relaxing the duration format test
2017-08-18 07:42:29 -07:00
Tim Roes
eeff5510e6 Improve accessibility of visualizations (#13507)
* Fix markdown vis settings labels

* Fix contrast ratio of markdown blockquotes, #12491

* Fix fontsize of blockquotes in markdown, #12904

* Add vis type description for screen reader, fix #12887

The way tooltips are currently implemented we unfortunately cannot use
the tooltip for the aria-describedby. This is another issue to solve.

* Make main nav a11y when collapsed

* Camel case the vistype id used in HTML
2017-08-18 09:58:49 +02:00
Tim Roes
65768ddabf Improve Dev Tools accessibility (#13496)
* Make console actions accessible

Use a button isntead of a link will solve all accessibility issues, and
we just need to style the button the same way we style the links.

* Create kbnUiAceKeyboardModeService

This will be needed for situations in which the initialization need to
be started manually, and a simple directive won't be enough.

* Make console input box accessible

* Make editor_actions buttons instead of links
2017-08-18 09:54:48 +02:00
Matt Bargar
a52c45ccf5 Fix fixed-scroll on Discover page (#13516) (#13557)
Some CSS changes were made in #10592
which caused the fixed-scroll directive to stop working in Discover.
Specifically the overflow rule which was added forced the width and
scrollWidth of the doc-container to be the same, so the fixed-scroll
directive would never add the scroll bar to the page. This PR simply
reverts the changes made in the above linked PR. I retested the original
issues in the latest version of Firefox and was unable to reproduce. It
seems that the original issues may have been fixed in Firefox itself.

Fixes #12416
2017-08-17 14:37:46 -04:00
Spencer
97c4dfb7d5 [ui/queryBar/tests] attach $elem to DOM so "click" triggers "submit" (#13544)
(cherry picked from commit 375ee3b206)
2017-08-17 11:27:26 -07:00
spalger
e7fb4cabbe remove spammy console.log()
(cherry picked from commit 8cd269678a)
2017-08-16 19:33:24 -07:00
Tyler Smalley
1de8b7e085 Prevents default index pattern name when ID is provided (#13353)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-08-16 09:53:10 -07:00
Jim Unger
13d9a8580a Adds getAriaName function and applies it to advanced settings (#13448) 2017-08-16 10:40:48 -05:00
Lukas Olson
4b07419980 Merge remote-tracking branch 'upstream/6.x' into 6.x 2017-08-16 06:03:39 -07:00
Lukas Olson
0e5b457022 Handle booleans in filter editor (#13406)
* Handle booleans in filter editor

* Use select instead of checkbox
2017-08-16 06:03:28 -07:00
Matt Bargar
12b54372af #10569 Fixes the position of spy tab buttons at the top of the widget (#13366) (#13511)
* #10569 Fixes the position of spy tab buttons at the top of the widget

* #10569 Fixes the position of spy tab buttons at the top of the widget.

* Fixes CSS for Spypanel Selector Menu.
2017-08-15 14:26:22 -04:00
Tim Roes
67e6d1d5ff Improve accessibility of the discover app (#13498)
* Add sectioning to discover app, fix #12633

* Set unique page title for discover app, fix #12641

* Remove sort button if column isn't sortable

Until now the button was just empty, but could still be focused via
keyboard. This is bad accessibility, so the sort button is now removed
completelyw hen the column isn't sortable.
2017-08-15 16:46:20 +02:00
Tyler Smalley
ff40688fb5 Prevents canceling index pattern modal from throwing error (#13488)
* Prevents canceling modal from throwing error

Fixes #12818

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Prevents refresh and removes returned promise

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-08-15 07:38:18 -07:00
Chris Cowan
2dbfe48365 Fixes #12113 - Add timezone to date histogram aggregations for TSVB (#13378)
* Fixes #12113 - Add timezone to date histogram aggregations

* Fixing tests

* Fixing tests

* Moving to universal timezone function
2017-08-14 08:08:52 -07:00
Tim Roes
1495e2e2ad Initial version of accessibility guide (#13390)
* Initial version of a11y guide

* Move a11y content from HTML guide to a11y guide

* Add PR feedback

* Add PRs feedback

* Add more roles

* Refactor labeling elements section

* Rename "labeling elements" -> "naming elements"

* Use span instead of i for icon examples

* Correct typo
2017-08-14 07:43:28 +02:00
Court Ewing
79a88e0f29 github: PR template checklist in a comment
The checklist of items in the PR description should be in a comment so
you don't have to manually remove them on every pull request.
2017-08-12 10:31:33 -04:00
Lisa Cawley
5f1ed9f825 [DOCS] Use shared versions file for doc builds (#13277)
* [DOCS] Use shared versions file for doc builds

* [DOCS] Address feedback in index-shared1.asciidoc
2017-08-11 14:02:35 -07:00
CJ Cenizal
69a96ca70a [eslint-config-kibana] Upgrade eslint-config to 0.10.0. (#13323) (#13481)
* Upgrade eslint-config to 0.10.0.
* Fix linting violations with popover and typography stuff in UI Framework.
2017-08-11 11:51:34 -07:00
CJ Cenizal
239a5dc7ab [UI Framework] Add functionality for hiding and showing the chrome when viewing Sandboxes (#13475) (#13478)
* Update UI Framework doc site with functionality for hiding and showing the chrome when viewing Sandboxes. (#13437)
* Fix formatting in generator-kui templates. (#13443)
2017-08-11 10:01:55 -07:00
CJ Cenizal
f8542c6b78 [UI Framework] Reorganize UI Framework and add Yeoman generator (#13172) (#13477)
* Reorganize documentation styles so they all live in doc_site/components directory. (#12809)
  - Remove global styles, e.g. body and html element selectors.
* Create global_styles dir with sub-directories. (#12833)
* Add SCSS style guide. (#12850)
* Refactor UI Framework directory structure to house everything in a src directory. (#12880)
  - Add components/index.js and services/index.js files to continue to export JS modules from the root.
* Add KUI Yeoman generator.
* Support creation of components.
* Add documentation generator for main page, demo, and sandbox.
  - Add additional documentation snippets to KUI generator. (#13076)
  - Fix incorrect use of double quotes in KUI generator snippet. (#13086)
  - Remove infrequently used imports from the KUI generator test template. (#13110)
* Mock assets files for Jest. (#13060)
* Fix broken coverage report paths in Jest config. (#13082)
* Update eslint config to lint the new UI Framework directory structure. (#13102)
* Fix positioning of doc site pagination buttons. (#13203)
* Support hasReact prop for sandboxes. (#13270)
* Remove deprecated used of component mixin from KUI generator's SCSS template. (#13377)
* Fix rebasing errors.
  - Add dashboard back to Jest config.
  - Add missing form and tool_bar variables.
* Rename tasks to createComponent and documentComponent.
* Reference correct src paths in README.
* Add children and className to templates' propTypes.
* Add default folder name for page demo.
* Add suffix to sandbox routes.
* Specify testPathIgnorePatterns more clearly.
* Rename component.test.js to test.js so that Jenkins won't try to run it.
* Update npm scripts to depend on local yo dependency, not global.
* Add ui_framework/src to copy task.
* Simplify npm scripts and remove requirement for installing Yeoman from README.
* Add services to moduleNameMapper in jest config.
* Clean up Button and Gallery examples.
2017-08-11 09:58:33 -07:00
CJ Cenizal
84e74f510c [UI Framework] Spawn compileCss as a child process to prevent a node-sass fatal error from killing the watch process (#13222) (#13476)
* Spawn compileCss as a child process to prevent a node-sass fatal error from killing the watch process.
* Document tasks.
2017-08-11 09:52:34 -07:00
CJ Cenizal
1eb96a6aeb Fix KuiPopover examples. (#13461) (#13469) 2017-08-11 08:13:53 -07:00
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