Commit graph

14883 commits

Author SHA1 Message Date
Stacey Gammon
0f0981c5e9 Restructure dashboard files and folders (#9969)
* Restructure dashboard files and folders

* Try to stay DRY

avoid duplicate ‘dashboard’ naming when unnecessary

* rename index => dashboard and add an index.js with imports

rename style

* un-dig
2017-01-20 10:01:55 -05:00
Spencer
33e9c2aa8c Implement manifest changes (#9920)
* [ui/tilemapSettings] verify that the manifest has a service information

* [ui/tilemapSettings] stop reading query_parameters from manifest

* [ui/tilemapSettings] allow the manifest to define subdomains

* [ui/tilemap] add error handling for foreign error types

* [ui/tilemapSettings] update manifest in tests to match new format
2017-01-19 14:03:28 -07:00
Stacey Gammon
2fccac67d5 Remove the need to pass state and parentUiState to dashboard_panel directive (#9769)
* - Remove need for passing state to dashboard_panel directive.

get rid of parentUiState

* Address code review comments

* Only do savedSearch specific init stuff for searches

* Throw Error object, not string

* Remove new patterns from this PR

Removing the new patterns from this PR to preserve consistency.
2017-01-19 14:51:22 -05:00
Peter Pisljar
072cef3e97 fixes #9483 (#9787) 2017-01-19 17:01:56 +01:00
Boaz Leskes
9b1844f6f7 Expose deprecation headers in Console (#9874)
Eleasticsearch notfies usage of deprecated feature via a special http header. This commit exposes the value of this header in the output pane. To so a special type of comment is added - a warning comment, marked by a `#!` prefix.
2017-01-19 16:21:34 +01:00
Stacey Gammon
6b009a1b06 Introduce custom modal confirmation dialogs (#9859)
* Introduce custom modal confirmation dialogs

* address code review comments

and implement new angular style suggestions from Joe

* refactor

no point making vanilla code that's really only going to work with angular i guess...

also broke apart the confirm modal from the injector, and made safeConfirm just use the confirm modal

* Clean up from merge

 - Move safe_confirm into modals folder
 - make data-test-subj camelCase.
 - get rid of $timeout call, doesn’t seem necessary anymore, now that
window.confirm is not being used.

* Fix tests

* Use ui-framework styles

* Address latest round of comments and remove adoption of new patterns.

* Improve error message. Use sinon in tests.

* Focus on the confirm button by default

* Indent message
2017-01-19 08:49:30 -05:00
Chris Earle
8029e048b2 Allow build configuration to run on Windows machines (#9951) 2017-01-18 23:17:57 -05:00
CJ Cenizal
741c053768 Refine kuiStaticInput, Bar, and Button components. (#9917)
* Override Bootstrap link styles in Button component. Give kuiStaticInput a transparent background.

* Fix incorrect markup in MicroButton examples.

* Give Bar component a min height of 30px so it has a consistent height even when it has shorter children.

* Remove kuiSubHeader class. Migrate Saved Objects to use Bar component instead.
2017-01-18 15:01:05 -08:00
debadair
fb38e35e58 Fixed a typo and a formatting issue in the Timelion tutorial. (#9937) 2017-01-18 17:16:33 -05:00
CJ Cenizal
24993f3430 Optimize loading SVG to be visible on Edge. (#9921) 2017-01-18 14:15:51 -08:00
Stacey Gammon
e5c8fa6bc5 Make sure new dashboards get a title (#9935)
* Make sure new dashboards get a title

Fix misleading “ready to get started” message for empty dashboard.

* Revert dashboard is empty name

get rid of tab reference in string

* be more playful!
2017-01-18 17:09:13 -05:00
CJ Cenizal
fa1166b11a Fix IE11 bugs with Table and ToolBar. (#9928)
- Make table-layout use the default, instead of fixed.
- Fix flexbox bug with ToolBar.
- Update ui_framework task to serve on port 8020.
- Add babel-core/polyfill to UI Framework docs site.
2017-01-18 14:04:35 -08:00
Jim Unger
ec58465803 fixes windows path un ui-framework startup (#9934) 2017-01-18 15:45:20 -06:00
Stacey Gammon
5f4cf32867 Split out PersistedState business logic from angular (#9687)
* - Remove angularization of PersistedState.
- Provide the angularized version with PersistedStateProvider.
- Use named exports
- Es6-ify PersistedState class

This pushes forward the first bullet point of #9686

* Address code review comments

- Use single point of entry
- Use injector instead of private
- Use a new class (‘AngularizedPersistedState’) name instead of an
arrow function

* Remove extra import line
2017-01-18 16:44:16 -05:00
Stéphane Campinas
6fd728011c use angular instead of global window (#9743) 2017-01-18 10:55:42 -05:00
Joe Fleming
64a03fafd4 Make searching saved objects more powerful with query_string (#9870)
* switch to query_string query

and only append trailing * when the query is a simple word

* swallow 400 errors from query_string query

attempt to mimic simple_query_string...

> Unlike the regular query_string query, the simple_query_string query will never throw an exception, and discards invalid parts of the query
> https://www.elastic.co/guide/en/elasticsearch/reference/5.1/query-dsl-simple-query-string-query.html

* simplify the regexp

no grouping required, and matching 1 or more is fine, as this condition isn't met when the searchString is empty
2017-01-17 15:35:10 -07:00
Spencer
c1ee6559a3 [ui/timepicker] hide time navigation buttons for now (#9909) 2017-01-17 15:19:00 -07:00
CJ Cenizal
66296618b3 ToolBar improvements, add Select and Bar components. (#9862)
* Add Bar component.
* Create modifier for a ToolBar with just Search.
* Add Select component.
* Fix focus state of ToolBarSearch.
* Add Select to ToolBar.
* Rename onReverseBackground mixin to onStandoutBackground.
2017-01-17 13:16:49 -08:00
Peter Pisljar
7989c992ab fix ui framework filenames (#9907)
* updating filenames

* updating imports
2017-01-17 20:17:05 +01:00
Brandon Kobel
4540e39479 Disabling autoprefixer in css-loader, explicitly using postcss-loader (#9899)
When the UglifyJsPlugin is used for production, it's setting the minimize property for the loaders in the pipeline. This was causing the css-loader to call cssnano which was itself then calling autoprefixer.

We were explicitly calling autoprefixer via the postcss-loader for all style loaders that utilized a preprocessor and specifying the list of supported browsers, specifically to set the prefixes for PhantomJS. When the autoprefixer was run as part of the css-loader, the list of browsers wasn't present and this was causing the prefixes that we added to be removed.

This removes the implicit use of autoprefixer from the css-loader and instead explicitly uses the postcss-loader for all style loaders, passing in the proper configuration.
2017-01-17 12:04:43 -05:00
Thomas Neirynck
e1b79a3ec1 Use correct WMS zoom settings (#9868)
use hardcoded zoom-values for WMS, just as in pre 5.2
2017-01-16 18:10:32 -05:00
Jonathan Budzenski
1d851a24e0 [dev tools] Move app hidden check to hack, register console outside of (#9886)
application
2017-01-16 16:58:05 -06:00
trevan
b2d5b66cd1 If a value has a period in it, field_calculator throws errors (#9825) 2017-01-16 09:45:18 -07:00
Thomas Neirynck
cda0aaa09a Tilemap should notify correctly when it is ready (#9876)
This regression was introduced when extracting tilemap from vislib.
2017-01-16 11:30:11 -05:00
Stacey Gammon
4a9636e787 Pull dashboard-panel style out of gridster (#9850)
to accommodate expanded panel mode.
2017-01-16 11:28:46 -05:00
CJ Cenizal
5debe6add8 Add Modal, ModalOverlay, and Hollow Button components. (#9873)
* Add Modal and Hollow Button components.
* Add error-checking for missing elements for the UI Framework examples that use JS.
2017-01-15 13:49:27 -08:00
CJ Cenizal
84662fdac8 Make Table rows have 1px borders. Lighten Table header color for increased contrast with row color. (#9864) 2017-01-13 11:57:51 -08:00
Tanya Bragin
5946f8788f Update managing-fields.asciidoc (#9739)
* Update managing-fields.asciidoc

* Remove references to Groovy
* Add information about Painless
* Link to blog for additional examples

* Update managing-fields.asciidoc

Make editorial changes per @debadair's feedback.
2017-01-13 07:54:06 -08:00
Jonathan Budzenski
840df9a231 Tribe docs (#9690)
* [tribe] Init docs

* [docs] Init es client section

* [docs] Link to client api, move client library docs to core development section

* [docs] Add tribe server settings

* [tribe] Link to elasticsearch tribe docs

* [tribe] Document which nodes server configuration points towards

* [docs] Add index link to elasticsearch clients section
2017-01-12 16:34:01 -06:00
Stacey Gammon
fc25df18f6 Fix link syntax 2017-01-12 13:30:04 -05:00
Stacey Gammon
7ead88eb09 Update style guide for named exports
Add new 'named exports' only rule: https://github.com/elastic/kibana/issues/8641
2017-01-12 13:29:04 -05:00
Shaunak Kashyap
3fe62de75f Paginated table: allow no blank rows at bottom (#9814)
* Add boolean property to show blank rows or not.

The property defaults to true to preserve backwards compatibility.

* Don't show blank rows in list of indexed fields on index-pattern page

* Don't show blank rows in list of scripted fields on index-pattern page

* Adding unit test for showBlankRowsAtBottom property

* Shortening variable name

* Simplifying logic

* Missed a spot (source filters)

* Using template literal syntax instead of string concatenation
2017-01-12 09:10:01 -08:00
Joe Fleming
259767e8cb Add missing settings to Advanced Settings docs (#9691)
* add missing settings to advanced settings docs

* add indexPattern:placeholder

* consistency tweaks
2017-01-11 12:55:09 -07:00
Guillaume Grossetie
7932fc10a7 Allow to configure the default index pattern in Advanced Settings (#6453)
* Allow to configure the default index pattern in advanced settings

* Update config name (squash)

* Update config name (squash)
2017-01-11 10:05:31 -08:00
Shaunak Kashyap
bcc81ec270 Color editor: spacing tweaks (#9813)
* Removing horizontal rule as it doesn't appear to break visual flow IMO

Formats other than "Color" on this page (e.g. "Url", "Bytes", etc.) seem to use the horizontal rule to separate their editor fields from samples. Since the Color editor does not seem to have samples, the horizontal rule seems out-of-place for this particular format.

* Bringing the "x" button vertically in line with the editor labels

* Adjusting some vertical margins to improve (IMO) spacing

* Removing unnecessary rule
2017-01-10 18:23:12 -08:00
Stéphane Campinas
a8349a0d6d lodash has could be used instead of get (#9762) 2017-01-10 17:27:42 -05:00
Spencer
a00f8825e9 Fix tilemap layer creation (#9771)
* [ui/vis_maps] pass all options from `tilemapSettings` to Leaflet

* [ui/vis_maps/tests] create failing test, remove outdated test
2017-01-10 12:50:20 -07:00
Lukas Olson
3f6fe6a271 Close timepicker when a filter/interval is selected (#9618)
* Close timepicker when a filter/interval is selected

* Copy absolute variables before sending

* Use & instead of = for directive binding

* Fix timepicker tests

* Fix timepicker tests and remove tests that no longer apply
2017-01-10 11:32:34 -07:00
Tyler Smalley
e6669ee19d Remove libsass as a dependency (#9803)
Remove libsass as a dependency

libsass is platform specific, therefore we can not ship it as a dependency. Instead, we will commit the compiled CSS for the UI Framework to the repository. This is updated when running `npm run uiFramework:start` which also starts the docs site.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-01-09 20:27:54 -08:00
Thomas Neirynck
9695000a12 Update date pattern in tutorial-define-index (#9806)
In `tutorial-define.text.asciidoc`, it is stated that the typical index name contains the date as `MM-DD-YYYY`, and then proceeds to give an example of how a log index from May, 2015 would look like: `logstash-2015.05*`, which doesn't match the typical pattern for dates stated above.

This PR changes the date pattern, as to me `YYYY.MM.DD` is more accurate on a world-wide scale.
2017-01-09 19:35:20 -05:00
Shaunak Kashyap
b332cc1f03 Greedily consume field name so slashes are not treated as a path separator (#9776) 2017-01-09 15:08:20 -08:00
Stacey Gammon
d295553d95 fix selenium tests broken by default panel size change (#9802) 2017-01-09 17:03:27 -05:00
Jonathan Budzenski
980b67ed68 [test fixtures] string -> text/keyword for logstash data (#9799) 2017-01-09 15:00:16 -06:00
JacobBrandt
274ed4c6be Destroy charts before the layout removes them from the DOM (#9728)
Closes #9696
2017-01-09 12:24:03 -05:00
Stacey Gammon
a8ae8a7fc3 Improve the default panel size (#9775)
The default panel size is almost always too small for anyone’s needs.
Using half the width per vis seems to work better, along with making
slightly taller.
2017-01-09 11:51:23 -05:00
Rashid Khan
a3db8934f1 Fix empty properties in ES request (#9573) 2017-01-09 09:01:17 +01:00
Spencer
935419197f [tilemap/config] Fix url manipulation and promise (#9754)
* [ui/vis_maps/tests] use $injector to avoid awkward naming

* [ui/vis_maps/tests] avoid boolean assertions for better error messages

* [ui/vis_maps/tests] verify addQueryParams behavior over time

* [ui/vis_maps/tests] stub tilemapsConfig rather than monkey-patching it

* [ui/vis_maps] remove async/await usage because angular

* [ui/vis_maps/tests] add failing test

* [ui/url] add modifyUrl() helper

* [ui/vis_maps] use modifyUrl() helper to extend query string
2017-01-06 14:14:42 -07:00
Stéphane Campinas
d4656aacc3 Use existing variable with lowercased type (#9717) 2017-01-06 15:51:07 -05:00
Thomas Neirynck
efc954ed3f Show warning instead of fatal error when map-proxy is not available (#9742) 2017-01-06 13:54:12 -05:00
Stacey Gammon
37c858af2e Refactor top nav config generation (#9726)
* Incorporate refactors to prep for view-edit mode

* code review comments

- Get rid of top nav config factory function refactor as it makes the
parameters less clear.
- Remove the watch on topNavMenu since it isn’t necessary for this PR.
Will bring a better variation back in the view/edit mode PR.

Note that these changes look somewhat pointless in and of themselves,
but the refactor will be useful for the view/edit mode when the top nav
configuration will change based on the dashboard mode, and then the
refactored functions, which are all only being used one currently, will
be called multiple times.
2017-01-05 12:50:20 -05:00