Commit graph

1168 commits

Author SHA1 Message Date
dave.snider@gmail.com
3ada0259cc
Eui/9.2.1 + better dark mode (#32728)
Updates EUI and makes some dark mode adjustments.
2019-03-11 12:36:06 -07:00
Nathan Reese
c91e940103
[Maps] replace angular serviceSettings service with EmsClient (#32725)
* [Maps] replace angular serviceSettings service with EmsClient

* clean up
2019-03-07 20:09:55 -07:00
Thomas Neirynck
cbe114856a
[Maps] Add help menu (#32561) 2019-03-07 12:56:08 -05:00
Jason Rhodes
ae754ac607
Upgrades EUI to 9.x (#32009)
* Fixed a simple argument bug and removed infra date picker EUI types

* Fixes for EUI date picker types

* eui_8.0.0

* fix type errors in query_bar

* Small changes for EUI types

* Updates EUI to 9.0.0 and removes @types/react-datepicker as it now ships with EUI

* Updates to EUI 9.0.1 and removes duplicate types in infra eui.d.ts

* ts-ignore applied to ongoing type error with styled components and EUI

* Changes EuiProgress props to avoid TS errors

* Updates EUI 9.0 snapshots

* Updates kibana root snapshots for EUI 9.0 upgrade

* Update detail_panel.test.js for EUI changes

* Updated functioanl and unit tests to properly inspect EuiTableRowCell rendered values

* Fix docs_level_security_roles.js func tests

* Update EUI to 9.0.2

* Fixed failing snapshot for EUI icon default prop
2019-03-07 07:03:11 -05:00
Thomas Neirynck
6b6e670586
[Maps] Move tooltips to store (#32333)
This is an internal refactor:
- move tooltip management out of layers, and to the mapbox-component
- use global handler iso of multiple handlers on individual layers (this did remove the cursor-pointer change, since we no longer are explicitly handling on-enter/leave events).
- put tooltip state in store

Fixes bugs:
- when layer is removed, any corresponding tooltip should be removed as well
- when layer is made invisible, any corresponding tooltip should be removed as well
2019-03-06 22:31:12 -05:00
Thomas Neirynck
5e5a49a905
[Maps] Localization (#30881)
Localize Maps-app UX with Kibana's i18n framework.
2019-03-06 18:24:41 -05:00
Nathan Reese
54bbdbaedb
[Maps] Map embeddable (#31473)
* [Maps] embeddable

* fix embeddable registration

* get embeddable to render

* render map embeddable

* support filter pills on dashboard

* fix layerName error

* update getBoundsForFilters to not record bounds request in inspector

* set isReadOnly

* fix bug where different states are sharing same inspectorAdapters instance

* populate indexPatterns so container has index patterns for type ahead and filter bar

* pass refreshConfig from container to map store

* add functional test verifying index patterns passed to container

* remove data.json files commited by mistake

* add functional test ensuring inspector adaptors are not shared between embeddables

* add functional tests for filters getting passed to embeddable

* remove embeddable dashboard from web logs sample data saved objects

* add slash to edit path

* fix typo

* pass previous query state on reload, add functional tests to verify reload and refresh timer

* remove unnecessary check in getFilters

* review feedback from thomasneirynck

* fix resize bug

* remove animationFrame from resize callback
2019-03-01 12:06:46 -07:00
Spencer
369bef316a
[eslint] require final newline (#32265)
We have had `insert_final_newline = true` in our `.editorconfig` file since April 2015, but never validated it with eslint. I'm a little tired of extra changes showing up in PRs because some people use editors which respect the `.editorconfig` file and some don't, so I figured we might want to enable the rule in eslint so that the can be autofixed.

Votes requested please :)
2019-02-28 18:01:29 -08:00
Thomas Neirynck
698e46dabc
[Maps] Show joined term metrics in tooltip (#31826) 2019-02-26 03:31:14 -05:00
Thomas Neirynck
79a26aef36
Ensure any existing layers get cleared when previewing a new one (#31973) 2019-02-25 23:05:15 -05:00
Nathan Reese
09a459b8d4
[Maps] implement references for saved objects (#31745)
* [Maps] implement references for saved objects

* add source to ref name, check that source type is ES_SEARCH or ES_GEO_GRID

* extract out common find reference into a function

* add migration version to sample data objects

* joins are on layer descriptor and not source descriptor

* update one es_archive saved object to have layerListJSON stored in references to ensure injectReferences is really working in SavedGisMap

* update sample data saved objects to include applied migration

* add API test to verify migration is applied when imported saved object
2019-02-25 13:57:43 -07:00
Aaron Caldwell
4ac821d88e
[Maps] Remove unneeded and breaking layer condition that prevents cancel from add layer panel (#31634)
* Remove unneeded and breaking layer condition that prevents cancelling unless a layer's selected

* Add layer tests. Review feedback

* .....and the test file

* Review feedback. Factor out reusable maps test functions. Clean up

* Picky picky

* Review feedback. Remove sleeps
2019-02-25 09:51:05 -07:00
Nathan Reese
0f5ad29aa2
[Maps] render attribution with no url as text instead of EuiLink (#31873)
* [Maps] render attribution with no url as text instead of EuiLink

* remove check for length
2019-02-25 06:09:30 -07:00
Nathan Reese
1ecfff1a9a
[Maps] fix app crash where layer details panel calls getId on undefined (#31816)
* [Maps] fix app crash where details panel calls getId on undefined

* add jest test ensuring no errors when selectedLayer is undefined
2019-02-22 14:33:09 -07:00
Nathan Reese
0b14bb4952
[Maps] clear transient layer when required fields are cleared (#31726)
* [Maps] clear transient layer when required fields are cleared

* review feedback
2019-02-21 21:45:18 -07:00
Thomas Neirynck
3666b5a428
[Maps] display metric tooltips for grid source the same as for joins (#31621) 2019-02-21 16:52:13 -05:00
Nathan Reese
b4ece8fa8e
[Maps] disable fit to data for geo_shape fields until elasticsearch supports a way to get the bounds (#31638)
* [Maps] disable fit to data for geo_shape fields until elasticsearch supports a way to get the bounds

* add function test for fit to bounds

* add jest test for layer_toc_actions component

* review feedback
2019-02-21 09:03:54 -07:00
Aaron Caldwell
23830e228c
Add back dispatch (#31602) 2019-02-20 13:11:31 -07:00
Nathan Reese
425539e122
[Maps] LayerControl read only mode (#31318)
* hide add layer button in read only mode

* update TOCEntry for read only mode

* make LayerTOC read only

* default isReadOnly to false

* remove action creator until its beig used
2019-02-20 12:26:52 -07:00
Nathan Reese
0a3641958a
[Maps] add beta label to listing page (#31544) 2019-02-19 21:51:15 -07:00
Aaron Caldwell
11da27b865
[Maps] Update layer add workflow and revise temp layer handling (#30542)
* Move layer add flow to the add layer panel

* Remove layer add toast. It's pretty annoying in this new workflow and is planned to be removed/revised anyway

* Add/remove layers without setting temp status

* Dispatch save function on ws save and clear/remove transient layer

* Lot of cleanup of temp refs. Add __ to transient layer ref

* Activate layer property save button on style prop change

* Review feedback

* Await setting selected layer before opening flyout panel to prevent occasional undefined error

* Review feedback

* Review feedback

* Review feedback

* Remove style temp settings

* Return null as fallback

* Review feedback
2019-02-19 18:09:17 -07:00
Joe Reuter
6b0fa77fcb
Clean up client-side saved object data loading infrastructure (#30241) 2019-02-19 10:45:44 +01:00
Nathan Reese
98fdd1a6f2
[Maps] replace singleton inspectorAdapters with per map inspector adapter instance (#31009)
* [Maps] replace singleton inspectorAdapters with per map inspector adapter instance

* pass inspectorAdapters to all source constructors in renderEditor

* rename non_serializable_kibana_instances to non_serializable_instances, fix test jest test broken by import
2019-02-15 09:41:12 -07:00
Thomas Neirynck
e9ae8cf637
[Maps] Remove stack names (#31030) 2019-02-15 00:41:22 -05:00
Thomas Neirynck
50cfaf67e9
[Maps] Add max zoom and padding when fitting on bounds (#31016) 2019-02-15 00:40:50 -05:00
Nathan Reese
dc9248f3d2
[Maps] replace singleton store with per map store instance (#30896)
* [Maps] replace singleton store with per map store instance

* RIP redux devtools
2019-02-14 15:16:40 -07:00
CJ Cenizal
e4ba818ff5
Reintroduce linting rule that requires single-quotes in x-pack. (#30893)
* Reintroduce linting rule that requires single-quotes in x-pack.
* Remove redundant quotes rule for ML.
* Convert ES-UI code to single quotes.
  - Dev tools
  - CCR
  - ILM
  - Index management
  - License management
  - Remote clusters
  - Rollup
  - Watcher
* Convert Graph code to single quotes.
* Convert Maps to single quotes.
* Convert Monitoring code to single quotes.
* Convert Reporting code to single quotes.
* Convert Security code to single quotes.
* Convert Telemetry code to single quotes.
* Convert Upgrade Assistant code to single quotes.
* Convert Grok Debugger to single quotes.
2019-02-14 12:08:37 -08:00
Caroline Horn
50bea61e91
Dark mode fixes for Visualize charts, TSVB, and Timelion (#30478)
* Some quicky changes

* Fixes dark vs light coloring for TSVB charts

* Fix coloring of tooltips and annotations for TSVB

* Fix up TSVB Markdown

No uses the same base styles as Visualize and Canvas

* More fiddling with spacing around filter bar

* Fixing dark mode grid and

removing hard-coded hex values where possible and adding an alpha channel to those that can’t

* more tweaks

* removing more `reversed` props

* Skip dark mode test for now

Since `.reverse` doesn’t exist unless bg is opposite of theme

* SASS linter enabled for TSVB

* Fix chrome path

* Enable sass-lint on Timelion

* Enable sass-lint on vislib

* Fix more spacing with query bar and enable sass-lint

* temp var name update

* A frew more files linted

* missed a few more hardcoded colors

* Addressed PR comments

* Changing #rrggbbaa to rgba()

For IE
2019-02-14 11:46:56 -05:00
Thomas Neirynck
de130211d8
[Maps] Revert layer-state correctly on cancel (#30451) 2019-02-13 13:30:00 -05:00
Thomas Neirynck
6bf127e107
[Maps] ensure url has been resolved before syncing (#30750) 2019-02-13 13:29:35 -05:00
Nathan Reese
766c21e72a
[Maps] display documents when location field name contains a dot (#30774) 2019-02-12 16:23:54 -07:00
nicknak
057815f226
Handle warnings from task manager without stack traces. (#30692)
* Handle warnings from task manager without stack traces.

* Fix typescript errors.

* Catch no living connection errors.

Swallow stack traces and do not throw errors.

* Should use string substitution instead of concatenation.
2019-02-12 13:20:43 -05:00
Nathan Reese
7d5d59e744
[Maps] properly wait for layers to load in functional tests to avoid flakiness (#30580)
* [Maps] wait for maps to load in functional tests to avoid flakyness

* add wait when manually accessing URL from browser service

* handle join source with missing index pattern id

* update triggerSingleRefresh to waitForLayersToLoad

* fix jest test

* add layer error test for KibanaTilemapSource with out map.tilemap.url configuration

* remove isInErrorState and errorMessage from layerslayerListJSON since it should not have been put there in first place
2019-02-11 21:48:01 -07:00
Nathan Reese
7a0c227135
[Maps] remove toasts for layer add and layer load error (#30584)
* [Maps] remove toasts for layer add and layer load error

* remove side-effects of LAYER_DATA_LOAD_ERROR action

* more cleanup
2019-02-11 20:43:49 -07:00
Thomas Neirynck
736d8193b3
[Maps] Fix and improve error messaging when adding TMS from kibana.yml (#30529) 2019-02-11 13:44:36 -05:00
Court Ewing
2ce51a5be5 Update paths to ui, server, deprecation, plugin_discovery in src/legacy
This commit accompanies the four that precede it. Rather than squash
them altogether, the four previous commits all do nothing except move
files to help avoid conflicts.
2019-02-11 10:41:37 -05:00
Nathan Reese
83b24e7e6d
[Maps] do not display mapbox style inspector view unless turned on in kibana.yml (#30428)
* [Maps] do not display mapbox style inspector view unless turned on by kibana.yml

* use better name for config name
2019-02-08 09:32:48 -07:00
dave.snider@gmail.com
fb6d42bc3c
Make map gradients more subtle (#30345)
Cleanup in the maps app.
2019-02-07 22:38:04 -08:00
Thomas Neirynck
37b5ba932e
[Maps] Correctly handle single-feature joins (#30409) 2019-02-07 21:10:28 -05:00
Nathan Reese
ae580e3a26
[Maps] upgrade mapboxgl to 0.52.0 (#30431) 2019-02-07 18:30:56 -07:00
Thomas Neirynck
168d17e474
[Maps] Fix tileload error messaging / Fix heatmap error message (#30327) 2019-02-07 17:22:44 -05:00
Nathan Reese
cecd5daf04
[Maps] do not show joins UI for ES geo grid source (#30309) 2019-02-07 05:42:40 -07:00
Nathan Reese
3d8dcd5b56
remove left-over geohash grid code (#30312) 2019-02-07 05:40:27 -07:00
Nathan Reese
6ad036b187
Replace angular timepicker with EuiSuperDatePicker (#29204)
* replace kbnTimepicker directive with EuiSuperDatePicker

* remove kbnTimepicker directive

* remove bootstrap datepicker

* Embed timepicker in query bar (#29130)

* replace kbnTimepicker directive with EuiSuperDatePicker

* remove kbnTimepicker directive

* remove bootstrap datepicker

* embed timepicker in query bar

* flesh out date picker in query bar for maps app

* wire up refresh config

* fix bug with way update function called by watcher

* get maps application functional tests working with new timepicker

* update setAbsoluteRange for EuiSuperDatePicker

* replace setQuickTime with calls to setAbsoluteTime

* remove open time picker button in discover empty results view

* pass config values to super-date-picker directive

* remove getPrettyDuration

* clean up typescript lint problems

* some functional test fixes

* try something else to fix I18n problems

* fix some more functional tests

* update query_bar jest test

* remove unused method in kbn_global_timepicker

* do not import removed timepicker styles

* remove mode from time state

* remove mode from time_history interface

* fix problem with ui_settings_defaults

* fix failing TSVB functional test

* another round to test fixes

* more functional test changes

* fixes for failing tests

* add retry block to flaky tsvb test

* styles/bootstrap_dark.less

* fix functional tests

* call fetch event even when times are the same

* add retry around flaky tsvb test

* fix timefilter jest test, attempt to fix another flaky functional test

* revert emitting fetch outside of areTimePickerValsDifferent check

* clean up time mode code that is no longer needed in dashboard

* fix timefilter tests changed by timefilter emit revert
2019-02-05 20:45:31 -07:00
Nathan Reese
eb59088bd8
[Maps] Clear missing style props on source change and join change (#30112)
* [Maps] clear missing style properyties

* add tests

* review feedback
2019-02-05 20:08:25 -07:00
Nick Peihl
95638a2000
Fix topojson featurecollection path (#30173) 2019-02-05 18:52:04 -08:00
Caroline Horn
f8c7320277
EUI 6.10.0 & Background color fixes (#30136)
* First foray into turning .application background off

* Hopefully fixing the last few plugins

* Update EUI to 6.9.0

* removing hacks

* last fixes

* Remove a few more `100vh`

* Can I remember to copy & REPLACE

* EUI at 6.10.0
2019-02-05 21:29:30 -05:00
Aaron Caldwell
b84a65d415
[Maps] Set maps tab title using same pattern used elsewhere in Kibana (#29976)
* Set maps tab title using same pattern used elsewhere in Kibana

* Include current map title in document title when open

* Only update doc title on /map/:id route. Update doc title on save action

* Remove fluffy formatting

* Remove string literal formatting
2019-02-05 18:01:40 -07:00
Nick Peihl
92ae5baadd
Use Elastic Maps Service v7.0 (#30006)
* Use Elastic Maps Service v7.0
2019-02-05 14:26:28 -08:00
Thomas Neirynck
e961137f8c
[Maps] fix adding kibana tilemap layers (#30094) 2019-02-05 16:08:50 -05:00