Commit graph

110 commits

Author SHA1 Message Date
Greg Thompson 94be839a24
Upgrade EUI to v18.3.0 (#56228)
* eui to 18.3.0

* ts interface update

* src snapshot updates

* x-pack snapshot updates

* icons in nav

* Homepage updates, nav drawer and tests

* feedback

* more feedback

* euiIconType for observability and security

* remove unused translations

Co-authored-by: dave.snider@gmail.com <dave.snider@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 16:37:35 -06:00
Tim Sullivan ebb2989257
[Reporting/FieldFormats] expose setFieldFormats and call from ReportingPlugin.start (#56563)
* [Reporting] New Platform Migration

Part of #53898

* fix CI

* fix typescript

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 14:32:59 -07:00
Peter Pisljar f2713659f6
filtering (making it work with expressions) (#55351)
* adding meta information to KibanaDatatable

* updating filtering functions to use new information

* moving filter creation to APPLY_FILTER_ACTION

* adding SELECT_RANGE_ACTION and TRIGGER

* making _meta optional

* inlining legacy code for inspector

* fixing jest tests

* keeping apply_filter_action and adding value_click_action and trigger

* utilities for serializing/unserializing aggConfigs

* renaming prop to indexPatternId

* cleanup

* updating interpreter functional baselines

* trying to fix tests

* Fix legend tests

* reverting update to multi metric screenshot

* updating based on review

* updating tests

Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 09:01:34 -05:00
Nick Partridge 119eabe271
[Metric] convert mocha tests to jest (#54054)
* Add fixtures/* alias to tsconfig and jest config
* Convert metric tests to jest
* Convert remaining js files to ts
2020-01-17 12:00:35 -06:00
Chandler Prall 94209a8a39
Upgraded EUI to 18.2.1 (#55090) 2020-01-16 15:03:40 -07:00
Greg Thompson bd9d67ccc0
Upgrade EUI to v18.2.0 (#54786)
* 18.2.0

* ts update

* Updated `euiColorVis0`

* Update `euiColorVis1`

* Updating `euiColorVis2`

* Updated `euiColorVis3`

* Updated the rest

* Updated hard-coded viz palette hexes to latest

* src snapshot updates

* x-pack test updates

* mock jest fn

* Updated two vegalite visualization screenshots

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2020-01-14 20:19:35 -06:00
Chandler Prall 6bed80bbd8
Upgraded EUI to 18.0.0 (#54042)
* Upgraded EUI to 18.0.0

* Fix breaks from `palette._.colors` changes

* snapshots

* Updated hard coded hex color codes in tests, fixed TS errors

* Updated a functional test's selector; added (BSD-3-Clause AND Apache-2.0) to license checker whitelist

* Functional test selector update

* Updated vega browser-ci tests for palette changes

* rebased on master

* One more location for EUI package number update and yarn lock

* Fixed lurking [but introduced] TypeScript logic bug

* Swap a prop definition for the same value but tied closer to its source

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-14 11:23:43 -07:00
Greg Thompson e7076927d7
Upgrade EUI to v17.3.1 (#53655)
* eui to 17.3.0

* eui to 17.3.1

* TS updates

* snapshot updates

* update data-test-subj

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-23 09:49:35 -06:00
Chandler Prall 068f3ffa2c
Upgrade to EUI@17.1.2 [table typescript types] (#52688)
* more types

* table types changes

* siem table conversions

* Updated rest of x-pack for EUI table typees

* updated x-pack changes against master

* Update to published eui 17.1.0

* kibana snapshots

* x-pack snapshots

* src snapshots

* autofixes

* autofixes, round 2
2019-12-18 11:15:14 -07:00
Greg Thompson ac0f44e6a5
Upgrade EUI to v17.0.0 (#52342)
* eui to 17.0.0

* Fix sass imports and mixin usages

* Fix kbn ui-framework

* snapshot updates

* switch text

* switch functional update

* test subject
2019-12-09 10:51:17 -06:00
Greg Thompson 58635a29dc
Upgrade EUI to v16.1.0 (#52088)
* eui 16.1.0

* snapshot udpates

* more snapshot updates

* enqueueStateChange mock, resulting snapshot updates
2019-12-05 14:59:21 -06:00
Sébastien Loix 439708a6f9 [Dependencies]: upgrade react to latest v16.12.0 (#51145) 2019-11-28 10:56:47 +01:00
Anton Dosov 0fd63ee5ce
Expressions service fixes: better error and loading states handling (#51183)
1. This pr fixes regression in v7.6 - #51153.

Visualisation which are using ExpressionLoader directly are swallowing render errors in 7.6, because generic error handling is happening only on expression_renderer.tsx level (react component wrapper around renderer).

Now react agnostic render code render.ts, loader.ts:

has it's own default error handler which is toast from notification service.
It also allows to pass custom error handler instead of default one
React expression renderer expression_renderer.tsx:

if consumer wants to render error as react component inline, then the component uses custom error handler from render.ts to wire up react component.

2. This pr fixes issue of loader.ts where initial loading$ was not emitted

Had to change loadingSubject from Subject to BehaviorSubject to remember the last value

3. This pr fixes dependencies in effects of expression_renderer.tsx
2019-11-27 10:55:28 +01:00
patrykkopycinski 517fcb98b8
[SIEM] Fix Timeline drag and drop behavior (#51558) 2019-11-27 09:35:08 +01:00
Anton Dosov 80879368a1
Typescriptify and shim kbn_tp_run_pipeline test plugin (#50645)
* Typscriptify and shim kbn_tp_run_pipeline test plugin

* fix imports to not re-export ‘legacy’ from root of plugin
2019-11-26 14:22:34 +01:00
Anton Dosov cfcac347e6
Enable expression service screenshot tests (#50472)
* Enables interpreter screenshot tests which were disabled in #42842
* Refactors tests to use expression service
* Fixes edge cases in expression service render:
** fixes swallowing of promise rejections from renderer.render()
** fixes swallowing of errors which emitted sync in render()
* Adds default value to colorRange type, as otherwise it fails in runtime if not passed
2019-11-21 10:57:50 +01:00
Greg Thompson 7cbb072554
Upgrade EUI to 16.0.0 (#50779)
* eui to 16.0.0

* type defs

* card click

* snapshot updates

* time format test updates

* ts return

* integration fix

* async

* more time format fixes

* more time format fixes

* test updates

* add uisettings dateformat timepicker test

* after method to clear setting
2019-11-20 17:02:04 -06:00
Artyom Gospodarsky 3a915b22a0
Use NP registry instead of ui/registry/field_formats (#48108)
* Create Field Format Provider

* Pass Field Format as a start dependency

* Register utils in the new field formats

* Fix types issue

* Make FieldFormats instance as a service

* Exclude importing of register.js

* Remove uiExports/fieldFormats imports

* Migrate some dependencies to new Field Format

* Migrate field format to new instance

* Fix type errors

* Fix Jest tests

* Move from getFieldFormat to npSetup

* Fix types errors

* Fix reviews

* Fix types errors

* Fix types

* fix CI

* Bind getConfig to FieldFormatRegisty

* Mock FieldFormat in FieldItem

* Fix DataPanel tests

* Fix DataPanel tests

* Fix Jest tests

* Create a fieldFormats mock for mocha tests

* fix CI

* fix CI

* Mock fieldFormatsRegistry in all visualizations

* Fix 'should create scripted field' functional test

* Change FieldFormat.from return type

* Fix reviews

* Fix mocha test

* Fix mocha tests

* Encapsulate FieldFormatRegistry

* Pretty field_item.tsx

* Fix reviews

* Fix PR comments

* Fix CI

* Replace any by a specific type

* Fix mocha tests

* Remove config from url converter

* Expand Field Format ID type for creating custom converters

* Fix a jest test

* Update migration doc

* Add quote and semicolon

* Fix types errors which doesn't relate to the aim of PR
2019-11-20 16:30:33 +03:00
Greg Thompson 998b0e6fd6
Upgrade EUI to v14.9.0 (#49678)
* eui to 14.9.0

* euiswitch updtates

* misc snapshot

* x-pack functional fixes

* more euiswitch functional test fixes

* label-less switches for spaces management

* more euiswitch fixes

* telemetry form a11y

* snapshot update

* label updates

* more switch updates

* lint
2019-11-13 14:54:21 -06:00
Peter Pisljar 253a10696c
remove visualize loader (#46910) 2019-11-12 09:43:51 -05:00
Chandler Prall 94202a9eab
Upgrade EUI to v14.8.0 (#49375)
* Upgrade EUI to v14.8.0

* update snapshot for determinism
2019-10-29 11:04:24 -06:00
Greg Thompson 9e58b27d59
Upgrade EUI to 14.7.0 (#49110)
* eui 14.7.0

* icon updates

* snapshot updates

* storyshot updates

* remove config addition
2019-10-24 10:14:17 -05:00
Greg Thompson 71b1bbd4cb
Upgrade EUI to 14.5.0 (#48119)
* eui 14.5.0

* snapshot updates

* update ChromeBreadcrumb interface

* change bad id selector to data-test-subj selector
2019-10-15 09:59:38 -05:00
Vadim Dalecky b9bbde6780
Improve Interpreter TypeScript typings (#47212)
* fix: 🐛 correct createError() implementation and typings

* feat: 🎸 improve expressions service TypeScript types

* perf: ️ improve ExpressionLoader class

* feat: 🎸 improve Interpreter types

* feat: 🎸 improve Interpreter function typings

* feat: 🎸 improve Interepreter test TypeScript typings

* feat: 🎸 TypeScriptify kibana_context expression function

* feat: 🎸 TypeScriptify "kibana" expressions functions

* feat: 🎸 TypeScriptify "visualization" function

* feat: 🎸 TypeScriptify Interpreter initialization

* test: 💍 fix interpreter tests

* feat: 🎸 add TypeScript typing to some of the executor internals

* fix: 🐛 this fixes visualizations; why?

* chore: 🤖 delete redundant files and fix TypeScript error

* perf: ️ use not null assertion for .dataHandler

* refactor: 💡 stricten AnyExpressionFunction type

* fix: 🐛 set correct initial pipeline exec context

* feat: 🎸 improve expression type typings

* test: 💍 call interpreter with correct input from func tests
2019-10-07 19:01:01 +02:00
Greg Thompson 6f09ecc0d9
Upgrade EUI to 14.4.0 (#46949)
* eui to 14.4.0

* euicard ts updates

* snaps
2019-10-02 11:58:22 -05:00
Caroline Horn 59d33d3476 Update EUI to 14.3.0 (#46824)
* Update EUI to 14.3.0

and update snaps

* TS Colors fix
2019-09-27 15:16:57 -07:00
Caroline Horn c1fd6eb9b4
Upgrade EUI to 14.2.0 (#46075)
* Upgraded EUI to 14.2.0

* Remove form row + button shim

* Uncomment compressed prop from EuiComboBoxes

* Fix and/or simplify prepend/append usages

* Update two test files to correctly call EuiRange's onChange prop
2019-09-19 12:26:15 -04:00
Caroline Horn 74b3d84bb6
Update EUI to 14.0.0 (#45475) 2019-09-16 13:59:39 -04:00
Greg Thompson bec1fa63ab
Upgrade EUI to 13.8.1 (#45052)
* eui to 13.8.0

* euibutton ts updates

* euicontextmenupanel ts updates

* misc ts updates

* src snapshot updates

* x-pack snapshot updates

* 13.8.1
2019-09-11 10:03:02 -05:00
Greg Thompson fbca664cd2
eui to 13.6.1 (#44149) 2019-08-27 17:25:24 -05:00
Greg Thompson 084433fbee
Upgrade EUI to 13.6.0 (#43916)
* eui to 13.6.0

* euirange updates

* euipage snapshot updates

* add classname toggle for nav locking

* new header wrapper component; removed observable

* Add styles for locked nav

And updated BEM naming of `header-global-wrapper`

* move headerwrapper

* isLocked localStorage

* remove useEffect
2019-08-27 14:47:41 -05:00
dave.snider@gmail.com b0a4181f7d
Upgrade EUI@13.3.0 (#42858)
Upgrades 13.3.0
2019-08-20 13:37:47 -07:00
Dmitry Lemeshko ce07151bf4
bump chromedriver version to 76 (#42468)
* bump chromedriver version to 76

* [test/interpreter_functional] update snapshots

* [test/interpreter_functional] skip failing tests

* Revert "[test/interpreter_functional] update snapshots"

This reverts commit 6401554882.

* [test/interpreter_functional] skip snapshot tests
2019-08-07 22:52:02 +02:00
Chandler Prall da99d4520b
Upgraded EUI 13.0.0 -> 13.1.1 (#42298)
* Upgraded EUI 13.0.0 -> 13.1.0

* Bump to 13.1.1

* Reset MutationObserver polyfill to original operation

* Reset x-pack's MutationObserver polyfill to original operation
2019-08-02 12:42:07 -06:00
Vadim Dalecky 39b233a24d
Inspector 👉 New Platform (#42164)
* refactor: 💡 remove SASS and clean up InspectorView component

* refactor: 💡 clean up inspector, convert .js -> .ts

* feat: 🎸 add Inspector NP plugin boilerplate

* feat: 🎸 move view registry to NP, move types, add registerView

* docs: ✏️ move inspector README to NP plugin

* refactor: 💡 move ui/inspector/ui to NP

* refactor: 💡 move Inspector adapters to NP

* refactor: 💡 move Inspector.isAvailable to New Platform

* refactor: 💡 move Inspector.open to New Platform plugin

* test: 💍 move Inspector tests to NP plugin

* chore: 🤖 fix imports

* feat: 🎸 update translations

* test: 💍 fix failing translation snapshot

* test: 💍 fix yarn test:browser tests

* Update src/legacy/ui/public/inspector/build_tabular_inspector_data.ts

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* [ML] [Job wizards] switching to new kibana context provider

* fix: 🐛 specify translation path directly to the plugin

* docs: ✏️ add comment about Webpack config fix

* Update src/legacy/ui/public/inspector/build_tabular_inspector_data.ts

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* Update src/legacy/ui/public/inspector/build_tabular_inspector_data.ts

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* feat: 🎸 improve types as per review

* fix: 🐛 remove <InspectorView> comp and fix view layouts

* test: 💍 improve mocks
2019-08-02 17:00:35 +02:00
dave.snider@gmail.com c2b926e2e7
EUI 13.0.0 (#41723) 2019-07-23 15:09:16 -07:00
Greg Thompson dd63e73fb0
Upgrade EUI to 12.4.0 (#41577)
* eui 12.4.0

* styled-components ts conflict

* update combobox test service to always open on open call

* Revert "update combobox test service to always open on open call"

This reverts commit 43074e6006.

* scroll combobox into view

* scroll before filter
2019-07-22 13:01:25 -05:00
dave.snider@gmail.com 76fb809633 EUI 12.3.1 (#41061)
* eui 12.3.1

* add data logos

* Fix TS uses, one SCSS use of euiOverflowShadow

* fix overflow shadow mixin in sass

* homepage logos

* refix typo on homepage

* hp snaps
2019-07-15 12:11:37 -06:00
Peter Pisljar b8709e1e86
unskipping interpreter functional tests (#40840) 2019-07-11 14:37:21 +02:00
dave.snider@gmail.com 53273ecff4
EUI@12.2.0 (#40039)
* EUI@12.2.0

* update EuiFormRow to hold a single child, removes comments only
2019-07-01 13:33:22 -04:00
Peter Pisljar 444bafbe0e
updating metricvis interpreter func arguments (#34532) 2019-06-28 05:44:43 +02:00
Greg Thompson c59875573e
Upgrade EUI to 12.1.0 (#39601)
* eui@12.1.0

* jest regenerator-runtime babel-polyfill

* TS Toast -> EuiGlobalToastListToast

* EuiBadge

* EuiCopy

* snapshot updates

* simplify toast interface usage

* misc review cleanup

* remove eui core-js resolution
2019-06-26 11:00:27 -05:00
Greg Thompson c22b706b25
Upgrade EUI to 11.3.2 (#38262)
* eui 11.3.1

* EuiSuperSelect TS updates

* EuiColorPicker updates

* EuiBadge updates

* a11y updates

* i18n service updates

* remove unused translations

* move valueOfSelected logic to private method

* update EuiColorPicker class name

* Updated canvas storyshots

* i18n fixes; maps color selection position

* i18n snapshot updates

* update canvas storyshots

* snapshot updates

* 11.3.2

* maps colorpicker

* space avatar colorpicker
2019-06-14 15:45:35 -05:00
Chandler Prall 86fea48875
Upgrade EUI to 11.0.1; support dynamic import() calls in UI code + eui (#36316)
* Upgrade EUI to 11.0.1; support dynamic import() calls in UI code + eui

* update snaps

* Clicking on the svg itself once loaded

* updated snaps

* update icon in snapshots

* Fix snapshot
2019-06-03 12:01:01 -04:00
Dmitry Lemeshko f82e92a077 FTR: add support for Firefox browser (#32509)
* skip and adjust functional tests for Firefox

* downgrade geckodriver to 0.22.0

* [ftr] add firefox specific config file

* remove hard coded firefox adjustments

* remove firefox specific screenshot directory

* run functional tests in firefox in x-pack

* pass the logger to readConfigFile()

* rename local var

* skip xpack firefox config

* run xpack firefox functional tests in separate command

* update report name for XPack firefox results

* adjust viz shared item test

* skip shared item test

* [test/feature_controls] increase timeout to 20 sec & use forceLogout

* FF timeout on TSVB, refresh page on failure for url navigation

* [feature_controls/visualize_security] increase timeout to 20 sec

* skip dev_tools_spaces tests on FF

* run all groups 3 times

* skip more func tests

* skip more tests

* skip all feature controls tests for Firefox

* revert back changes in feature controls tests

* rename xpack report for chrome

* skip tile map for FF, wait for render before saving

* Revert "run all groups 3 times"

This reverts commit 12b4f69627.

* revert refresh on login

* apply feedback
2019-05-31 15:49:18 -07:00
Greg Thompson 671760e924 EUI@10.4.1 (#36711)
* update eui to 10.4.1

* revert lock
2019-05-20 18:10:32 -04:00
dave.snider@gmail.com d1b189442c
EUI@10.4.0 (#36085)
* EUI@10.4.0

* Fix TS typing in src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx
2019-05-05 21:37:07 -07:00
Chandler Prall d449ff4e3f
Update EUI 10.1.0 -> 10.3.1 (#35970) 2019-05-02 12:27:36 -06:00
Chandler Prall dc9b299903
Update EUI to v10.1.0 (#35402) 2019-04-22 09:41:51 -06:00
Spencer 9122511370
[ftr] convert remaining JS to TS (#35110) 2019-04-18 12:06:24 -07:00
spalger bb0e03e09a [interpreter] disable flaky test 2019-04-18 10:39:00 -07:00
Greg Thompson e05098dd27
Upgrade EUI to v10.0.1 (#35112)
* eui@10.0.0; tsconfig update

* limit key lookups to strings

* Search Profiler hightlight details flyout classes

* bump

* snapshot updates

* x-pack snapshot updates
2019-04-17 09:16:34 -05:00
dave.snider@gmail.com ce6c33a3e4
Upgrade eui@9.9.0 (#34824) 2019-04-09 15:44:02 -07:00
Peter Pisljar 954d3e1093
updating tagcloud interpreter func arguments (#33773) 2019-04-04 14:33:38 +02:00
Greg Thompson 865e6739fd
Upgrade EUI to 9.8.0 (#34486)
* upgrade eui to 9.8.0

* test selector updates
2019-04-03 17:25:10 -05:00
dave.snider@gmail.com d2c077ae59
eui 9.7.1 (#34098) 2019-03-28 12:27:35 -07:00
dave.snider@gmail.com 786423a85a
EUI@9.7.0 (#34011) 2019-03-27 16:21:40 -07:00
Greg Thompson 3acebd9d57 Upgrade EUI to 9.6.0 (#33873)
* eui to 9.6.0

* update snapshots related to onClick
2019-03-27 13:49:52 -07:00
Spencer 2e232c2e31
[@kbn/expect] "fork" expect.js into repo (#33761)
* [@kbn/expect] "fork" expect.js into repo

* [eslint] autofix references to expect.js

* [tslint] autofix all expect.js imports

* now that expect.js is in strict mode, avoid reassigning fn.length
2019-03-25 09:56:48 -07:00
Peter Pisljar fec0f6c40a
adding runPipeline tests (#27015) 2019-03-21 07:12:25 +01:00