Commit graph

14808 commits

Author SHA1 Message Date
CJ Cenizal
bc4781687a Document the process for adding components to the UI Framework. 2016-12-26 12:41:57 -08:00
Peter Pisljar
ac35cdc255 move tile map visualization out of vislib (#9441)
* moving colors and tooltips out of vislib to vis

* moving tile map vis out of vislib

* rebasing on master and fixing linting
2016-12-26 14:53:00 +01:00
CJ Cenizal
87cc713434 Increase z-index of UI Framework nav so its on top of everything. (#9634) 2016-12-23 17:36:46 -08:00
CJ Cenizal
d8af80300f Update Saved Object edit form with new components. (#9543)
* Update Saved Object edit form with new components.

* Add InfoPanel. Use InfoPanel to present warning in Saved Object form.
2016-12-23 12:21:49 -08:00
CJ Cenizal
045e654c15 Explain rationale of HTML bracket formatting in HTML style guide. (#9629) 2016-12-23 12:16:51 -08:00
Jesus M. Gonzalez-Barahona
018c3f4677 Add a notice about the port to access Kibana. (#9622) 2016-12-23 14:12:40 -05:00
Boaz Leskes
5616a15ee2 Make Console Script Aware (#9433)
* Add console scripts

* Better handling of auto formatting

* review feedback

* linting
2016-12-23 14:08:51 -05:00
Peter Pisljar
29935c3c0c adding stepped line to line and area charts (#9425)
* adding stepped line to line and area charts

* fixing based on Thomas' review

* updating docs

* fixing based on Brandons review
2016-12-23 16:29:51 +01:00
CJ Cenizal
b1a2af74f0 Make UI Framework doc site sidebar lie on top of content that's scrolled sideways beneath it. (#9619) 2016-12-22 17:11:09 -08:00
Court Ewing
d23a31ba33 server: refactor log_interceptor to be more DRY (#9617)
This is purely an internal refactor that should have no effect on
consumers of the LogInterceptor class.
2016-12-22 14:49:22 -05:00
Court Ewing
22a5deda22 server: downgrade ECANCELED logs to debug (#9612)
Just like we do for EPIPE and ECONNRESET, we can downgrade ECANCELED
client errors to the debug logging level rather than treating them as
errors.
2016-12-22 14:10:33 -05:00
Spencer
9bdbc260c6 [webpack] upgrade to @elastic/webpack-directory-name-as-main v2 (#9601)
* [webpack] upgrade to @elastic/webpack-directory-name-as-main v2

* bump @elastic/webpack-directory-name-as-main

* import browser mocha with webpackShim

`import 'mocha'` will resolve to `mocha/index.js`, which points to
`mocha/lib/mocha.js`, the node version of mocha. This will not work in
the browser.

Since ng_mock is browser code, we need the mocha build for the browser,
which lives at `mocha/mocha.js`. This isn't referenced at all in the
package.json file, but is references in the bower.json file. Webpack,
however, doesn't observe the bower config, so we need to specifically
reach into the mocha package and point to the `mocha/mocha.js` file.
2016-12-22 09:32:03 -07:00
Matt Bargar
899d560caf Improve spy tab performance on Discover (#9590)
Switching between tabs in the spy panel takes a really long time in the
Discover histogram. The root cause is that there is an expensive forced
layout happening. It's expensive because the "response" tab includes all
500 hits from the search response which is a lot of content. This
affects all the tabs because we're using ng-show instead of ng-if,
meaning we're incurring the cost of layout on all that content even when
it's not being shown. This PR switches to ng-if to speed up all of the
tabs other than "Response".

The response tab remains slow because the vis is re-rendered any time
uiState changes, and when the vis is re-rendered it triggers forced
reflows. This is a non-trivial issue to fix that Peter is already
working on separately, so for now we'll settle for only speeding up the
other tabs.

Fixes https://github.com/elastic/kibana/issues/9464
2016-12-21 15:25:24 -05:00
CJ Cenizal
cb67bc3e10 Update Saved Objects view with new components. (#9535)
* Componentize Saved Objects table.
* Remove inline Buttons from Table. Add MicroButtons to serve the same purpose.
* Use fat arrow function instead of self var in _objects.js. Add 'areAllRowsChecked' controller method. Add TODO comments to migrate scope vars to the controller.
2016-12-21 11:56:07 -08:00
Peter Pisljar
f9f63c4ca0 fixing timelion yaxis min setting (#9428) 2016-12-21 20:12:00 +01:00
Toby McLaughlin
d5b46184aa docs: X-Pack settings via ENV under Docker (#9518) 2016-12-21 14:06:41 -05:00
Spencer
3079cb4e68 [webpack] allow jsx in .js files (#9578) 2016-12-21 00:20:16 -06:00
CJ Cenizal
3b82ea21bc Add disabled styles for TextInput and CheckBox components. (#9580) 2016-12-20 17:30:18 -08:00
Court Ewing
1018d524c8 build: -loader suffix for all webpack loaders (#9576)
Webpack v1 checks for the exact package name as the given loader name
before adding the -loader suffix, which is what we really want.
Unfortunately, this can mean that webpack can accidentally pick up
non-webpacker loader modules if they are at the top level of the
dependency graph, which is far more likely in npm 3+.

Webpack v2 will require all loaders to be explicitly named with the
-loader suffix (where appropriate), so this change gets us closer to
that anyway. See https://github.com/webpack/webpack/pull/3102
2016-12-20 17:34:05 -05:00
Lee Drengenberg
0cbec2cad7 New scripted field tests (#9242)
* [WIP] new scripted field tests

* Final improvements on 12 new tests for 1 expression and 2 painless scripted fields

* Add try loops around testing first Discover doc

* Set timezone to UTC and adjusted data accordingly

* Added boolean and date Painless scripted field types

* Remove unused (non-working) methods

* Fix lint error

* Added several data-test-subj attributes and used them in the tests

* Reverting previous change to getBarChartData
2016-12-20 12:19:59 -06:00
Stacey Gammon
1a5362fd80 Promise.map is not a native function (#9562)
* Promise.map is not a native function

Fixes #9557 and adds a test that would have caught it.

* use native map
2016-12-20 10:23:50 -05:00
Stacey Gammon
1822db0c03 Pass dashboard state through isolate scope (#9559)
There are some dependencies on it.

Fixes #9558
2016-12-20 08:51:22 -05:00
CJ Cenizal
f0d0004c4c Add support for ButtonGroups to contain a single Button. (#9565) 2016-12-19 15:03:42 -08:00
Stacey Gammon
7bf0bcf76f Revert changing panelIndex to panelId (#9563)
Because this is a variable stored in the state, changing it can have
subtle and adverse affects (like breaking reporting).

update comment
2016-12-19 17:07:40 -05:00
Spencer
1982062e67 [npm] use elastic webpack fork (#9540) 2016-12-19 13:54:04 -06:00
Stacey Gammon
1924d28ed8 Refactor loading saved objects (#9406)
* Refactor code that loads saved objects

* couple fixes and comments

cleanup & comments

cleanup

* Use es6 classes, make a note about getting rid of the 100 hard limit on results

* Address comments

* fix linter

* lint fixes with { } spacing

* Fix linter

* fix forgotten merge conflict

* and linter
2016-12-19 10:32:52 -05:00
Brandon Kobel
eeb4a7dfeb Adding Safari 7 support to autoprefixer (#9534)
PhantomJS is using a rather outdated version of WebKit, which requires
various css-prefixes to render correctly. PhantomJS doesn't have a specific
user-agent, and Safari 7 is the closet version of WebKit.
2016-12-19 07:36:24 -05:00
Peter Pisljar
90c821b11e fixing metric vis to correctly show scrollbars when overflown (#9481) 2016-12-19 12:43:52 +01:00
CJ Cenizal
0b0a77b3a7 Set Button component to display: inline-block, to ensure it has the same height when applied to both button elements and anchor tags. (#9541) 2016-12-16 15:57:36 -08:00
CJ Cenizal
4938c5784e Disable linting for Tabs component example JS. (#9538) 2016-12-16 14:23:45 -08:00
CJ Cenizal
5f28218ea2 Add Tabs component. (#9536)
- Fix bugs with Button and CheckBox focused states.
- Fix appearance of cell content in Table.
2016-12-16 14:03:10 -08:00
Spencer
654a3be6f0 [grunt/eslint] fix precommit linting (#9510)
* [grunt/eslint] fix precommit linting

 - remove use of `minimatch.makeRe()` because it does not support the entire glob syntax
 - log a warning whenever a js file is excluded by the `lintStagedFiles` task
 - eslint globs are relative to the project root, ensure that we check against relative version

* [grunt/eslint] only log warning wtr grunt paths
2016-12-16 12:29:35 -07:00
CJ Cenizal
ddb79c0636 Make basic Button hover state the same both in and out of ToolBar. (#9528) 2016-12-16 09:44:50 -08:00
CJ Cenizal
eb6d74a538 Fix bug with Button component appearance inside of a ToolBar. (#9526) 2016-12-16 09:36:07 -08:00
CJ Cenizal
455b43d712 Update ToolBarFooter component to support content on the left side. (#9514) 2016-12-16 09:02:42 -08:00
CJ Cenizal
9483e2ce4f Add NoResults and Panel components. (#9516)
* Add NoResults and Panel components.

* Lighten noResults text.
2016-12-16 09:01:51 -08:00
Peter Pisljar
30f0c6f823 pie chart unhandled error fix (#9422) 2016-12-16 06:16:15 +01:00
Jonathan Budzenski
3144994c19 [dev tools] Hide app link when there are no tools (#9489)
* [dev tools] Hide app link when there are no tools

* [dev tools] Add tests for setting app as hidden
2016-12-15 20:50:45 -06:00
Spencer
cb3219c798 [webpack] fix loader query string usage (#9497)
* [webpack] pin to fork with fixed loader aliases

* [optimizer] upgrade to postcss+autoprefixer

* [timelion] convert uiExports.modules -> webpackShims

* [uiExports] remove implementation-leaking and unused uiExport types

* [optimizer] remove unused imports

* [uiBundlerEnv] add a method for exporting global import aliases for special cases
2016-12-15 16:11:42 -07:00
CJ Cenizal
2f93b18f11 Add new components to UI Framework. (#9462)
- Icon, Link, Button, TextInput, CheckBox, Table, ControlledTable, ToolBar, ToolBarFooter.
- Update Local Nav to use classes with kui prefix.
- Add PostCSS loader to UI Framework webpack.
2016-12-15 11:22:09 -08:00
CJ Cenizal
8fe6204539 Rename global-nav LESS variable for clarity. Widen side bar to accommodate longer app names. (#9491) 2016-12-15 08:29:55 -08:00
Tyler Smalley
4b6d6275a4 Correctly reference the default bucket for the release task (#9493)
The configuration is nested under options instead of config in the new aws_s3 library.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-12-14 18:03:02 -08:00
Spencer
db60725a02 [eslint] enable object-curly-spacing and no-global-assign (#9486)
* [eslint] update eslint config to 0.3.0

* [eslint] autofix

* [fixtures/hits] reformat to comply with max-len lint rule
2016-12-14 13:29:32 -07:00
Court Ewing
bff1533503 docs: branch is now a variable
This makes our docs less brittle and fixes a broken link for pull
requests against known plugins.
2016-12-14 10:34:36 -05:00
Court Ewing
dd493066a0 docs: reorder release-specific variables
Now changing versions, branches, and release status can all be done in
the same place in the index rather than being scattered throughout.
2016-12-14 10:18:33 -05:00
Peter Pisljar
fa6d074bf4 fixing linting issue which blocks CI (#9480) 2016-12-14 10:19:53 +01:00
Peter Pisljar
9547dbec18 allowing decimal axis extents (#9426) 2016-12-14 08:04:35 +01:00
Court Ewing
68baabe72f docs: kibana developer and known plugin docs (#9477)
* docs: kibana developer docs

This is the beginning of developer-focussed docs for Kibana. The content
is mostly pulled directly from the old wiki in the github repo.

* docs: known plugins for 5.x
2016-12-13 22:37:55 -05:00
Spencer
e488a16e6f [eslint] reenable no-extra-semi and quotes rules (#9473)
* [eslint] re-enable no-extra-semi and quotes rules

* [eslint] update to version 0.2.2 of eslint config

* [eslint] autofix
2016-12-13 18:17:47 -07:00
Tyler Smalley
617f21829b Use spec reporter for Mocha tests (#9470)
Provides context for exceptions and node warnings (ex: UnhandledPromiseRejectionWarning)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-12-13 17:05:05 -08:00