Commit graph

27 commits

Author SHA1 Message Date
Caroline Horn 5b64a4cdfe
Empty index patterns page re-design (#68819)
Empty index patterns page re-design
2020-08-12 15:58:16 -05:00
Alexey Antonov e1ffcccb96
Add inspector for VEGA (#70941)
* [WIP] Add inspector for VEGA

Closes: #31189

* view -> dataset

* cleanup

* add spec viewer

* cleanup code

* use rx to retrieve data from adapters

* Make custom inspector adapters registerable from the visType

* fix flex-box size

* cleanup

* remove visTypesWithoutInspector from visualize_embeddable

* fix PR comments

* add vega folder to sass-lint

* fix jest

* Update src/plugins/vis_type_vega/public/vega_inspector/components/data_viewer.tsx

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* use addSignalListener

* cleanup

* add onColumnResize handler

* EuiCodeEditor -> CodeEditor

* fix type_check

* fix issue with pagination

* fix extra vertical scroll

* add area-label for EuiButtonIcon

* add area-label for EuiComboBox

* Design Commit

- Fixing up layout trying to remove any `.eui` classes and uses flex instead of percentage
- Fixing text to use `Sentence case` not `Title Case`

* Wrapper around signal viewer table

* fix Jest snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-07-21 14:45:51 +03:00
Uladzislau Lasitsa d8823d8996
Migrate timelion to the NP. (#69160)
* Migrate timelion to the NP.

* fixed ci

* Fixed paths

* fixed UI settings

* Fixed ci

* fix CI

* Fixed some comments

* Fixed browser tests

* fixed state

* Fixed comments

* Fixed save expression

* Fixed navigation

* fix CI

* Fixed some problem

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2020-07-14 18:41:12 +03:00
Andrea Del Rio 2d1312f6d1
[Monitoring] SASS modularization (#68726) 2020-06-11 13:36:47 -07:00
Aleh Zasypkin c6e2fed1c6
Register privileges in Kibana Platform Security plugin and remove legacy getUser API. (#65472) 2020-06-05 08:11:58 +02:00
Caroline Horn 0fbbc78852
[Spaces] SASS modularization (#65921)
* Removing Spaces legacy styles import in favor of direct plugin import

* Modularizing the `/management` components

* Further modularization within copy_saved_objects_to_space

* Add styling section to CONTRIBUTING

* SASS lint and snaps

* Adding link to EUI SASS
2020-05-12 17:13:20 -04:00
Corey Robertson b8bea5b8b2
[Canvas] move files from legacy/plugins to plugins (#65283)
* Moves the files

* Rename legacy/plugins/canvas paths

* Correct paths

* Fix shareable_runtime and storybook

* ESLint Fixes

* Fix jest test and paths
2020-05-05 20:52:56 -04:00
Daniil Suleiman da89856503
[NP] Move visTypeVislib into NP (#63963) 2020-04-28 14:44:17 +02:00
CJ Cenizal 18d1af24d4
Move Rollup out of legacy (#62891) 2020-04-24 14:27:35 -07:00
CJ Cenizal 91f7911d15
Move CCR out of legacy (#62890)
* Convert common/services and server/lib to TypeScript. Update Jest tests.
  - Remove deserializeAutoFollowPattern behavior that returned an empty object if the pattern was undefined.
* Localize mocks with the component integration tests.
* Update API unit tests to use NP mocks.
  - Break up test files.
  - Use inline mocked ES response instead of fixture files.
  - Move remaining fixture files into client integration tests directory.
* Make API route validation more strict.
* Publish isUiDisabled as part of Remote Clusters contract.
* Default trackUiMetric service to be a no-op.
* Remove security dependency.
  - Fix license check so that CCR won't render if the license is invalid.
  - Fix server security check to be more precise by checking if ES has security disabled.
* Render timestamp for autofollow errors.
2020-04-22 07:15:25 -07:00
Tim Roes 99332b8a6e
Fix CODEOWNERS and sass lint paths (#63552) 2020-04-15 17:52:21 +02:00
Tim Roes ebbc062689
Move Lens frontend to Kibana Platform (#62965)
* Move Lens frontend to Kibana platform

* Fix line breaks

* Fix jest tests

* Fix remaining test

* Remove old Lens plugin entry

* Fix i18n prefix

* Add config schema

* Address review
2020-04-15 12:22:37 +02:00
Mike Côté 851b8a82a5
License checks for actions plugin (#59070)
* Define minimum license required for each action type (#58668)

* Add minimum required license

* Require at least gold license as a minimum license required on third party action types

* Use strings for license references

* Ensure license type is valid

* Fix some tests

* Add servicenow to gold

* Add tests

* Set license requirements on other built in action types

* Use jest.Mocked<ActionType> instead

* Change servicenow to platinum

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* Make actions config mock and license state mock use factory pattern and jest mocks (#59370)

* Add license checks to action HTTP APIs (#59153)

* Initial work

* Handle errors in update action API

* Add unit tests for APIs

* Make action executor throw when action type isn't enabled

* Add test suite for basic license

* Fix ESLint errors

* Fix failing tests

* Attempt 1 to fix CI

* ESLint fixes

* Create sendResponse function on ActionTypeDisabledError

* Make disabled action types by config return 403

* Remove switch case

* Fix ESLint

* Add license checks within alerting / actions framework (#59699)

* Initial work

* Handle errors in update action API

* Add unit tests for APIs

* Verify action type before scheduling action task

* Make actions plugin.execute throw error if action type is disabled

* Bug fixes

* Make action executor throw when action type isn't enabled

* Add test suite for basic license

* Fix ESLint errors

* Stop action task from re-running when license check fails

* Fix failing tests

* Attempt 1 to fix CI

* ESLint fixes

* Create sendResponse function on ActionTypeDisabledError

* Make disabled action types by config return 403

* Remove switch case

* Fix ESLint

* Fix confusing assertion

* Add comment explaining double mock

* Log warning when alert action isn't scheduled

* Disable action types in UI when license doesn't support it (#59819)

* Initial work

* Handle errors in update action API

* Add unit tests for APIs

* Verify action type before scheduling action task

* Make actions plugin.execute throw error if action type is disabled

* Bug fixes

* Make action executor throw when action type isn't enabled

* Add test suite for basic license

* Fix ESLint errors

* Stop action task from re-running when license check fails

* Fix failing tests

* Attempt 1 to fix CI

* ESLint fixes

* Return enabledInConfig and enabledInLicense from actions get types API

* Disable cards that have invalid license in create connector flyout

* Create sendResponse function on ActionTypeDisabledError

* Make disabled action types by config return 403

* Remove switch case

* Fix ESLint

* Disable when creating alert action

* Return minimumLicenseRequired in /types API

* Disable row in connectors when action type is disabled

* Fix failing jest test

* Some refactoring

* Card in edit alert flyout

* Sort action types by name

* Add tooltips to create connector action type selector

* Add tooltips to alert flyout action type selector

* Add get more actions link in alert flyout

* Add callout when creating a connector

* Typos

* remove float right and use flexgroup

* replace pixels with eui variables

* turn on sass lint for triggers_actions_ui dir

* trying to add padding around cards

* Add callout in edit alert screen when some actions are disabled

* improve card selection for Add Connector flyout

* Fix cards for create connector

* Add tests

* ESLint issue

* Cleanup

* Cleanup pt2

* Fix type check errors

* moving to 3-columns cards for connector selection

* Change re-enable to enable terminology

* Revert "Change re-enable to enable terminology"

This reverts commit b497dfd6b6.

* Add re-enable comment

* Remove unecessary fragment

* Add type to actionTypeNodes

* Fix EuiLink to not have opacity of 0.7 when not hovered

* design cleanup in progress

* updating classNames

* using EuiIconTip

* Remove label on icon tip

* Fix failing jest test

Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>

* Add index to .index action type test

* PR feedback

* Add isErrorThatHandlesItsOwnResponse

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
2020-03-20 10:49:37 -04:00
Nick Partridge 0f117c9c32
Vislib replacement toggle (#56439)
* Add new vislib replacement plugin shell
* Add config to toggle new vislib replacement
2020-02-03 22:05:32 -06:00
Nick Partridge bd7d5eb9f6
Shim vis_type_vislib (#53536)
* shim of kbn_vislib_vis_types (now vis_type_vislib)
* Move vislib into vis_type_vislib plugin
* Convert remaining plugin files to typescript
* Rename vis to vis_type_vislib
2020-01-15 15:48:19 -06:00
Liza Katz 3eea7284ef
Move query utils ⇒ NP (#49636)
* Move query utils to NP

* Updated Query imports

* A few import fixes

* Fix import

* Fix docs
2019-11-14 13:06:36 +02:00
Clint Andrew Hall 27cbdf5f50
[feature][Canvas] Share Workpads in other Websites (#46278)
* [Canvas] Embedding Workpads in other Websites (#42545)

* Testing for Workpad Snapshots

* Rename Snapshots to Shareables; update documentation. (#46513)

* [canvas][shareables] Add Localization + Tweaks (#46632)

* Add localization + tweak naming

* Fix duplicate key

* Update storyshots

* [shareables] Unsupported Renderer Warning (#46862)

* [shareables] Unsupported Renderer Warning

* Update snapshots; add test

* Addressing Feedback

* [canvas][shareables] Simplify and complete testing (#47328)

* Simplify

* Updates

* Finishing up

* A few tweaks

* Fix eslint errors; how would those happen??

* Fix CI build of runtime; assorted visual tweaks

* Update x-pack/legacy/plugins/canvas/shareable_runtime/test/index.ts

Co-Authored-By: Spencer <email@spalger.com>

* Addressing feedback

* Remove null-loader from root package

* re-add null-loader until mitigation is found

* [perf] Fix unsupported renderers performance issue (#47769)

* [perf] Fix perf issue with unsupported renderers

* Fixing snapshots

* Addressing review feedback (#47775)

* Addressing feedback

* Addressing feedback (#47883)

* Branding Changes (#47913)

* Branding Changes

* Update snapshots
2019-10-11 12:15:41 -05:00
Elizabet Oliveira b1428bb6b4
[Maps] Cleanup SASS and add linting (#47211)
* Enabling sass lint compressed maps

* Fixing linting error in all maps sass files
2019-10-08 18:23:57 +01:00
Caroline Horn b088cf1f7d
[Lens] Cleanup SASS and add linting (#46100) 2019-09-23 14:57:35 -04:00
Clint Andrew Hall 11af058858
nit: Format sass-lint (#44432) 2019-08-29 18:56:53 -04:00
Clint Andrew Hall 910ae8dc8f
Reverting PR 42545 (for now) (#44277) 2019-08-28 12:01:03 -04:00
Clint Andrew Hall eee003236f
[Canvas] Embedding Workpads in other Websites (#42545)
* [1] Create JSON export endpoint

* [2] Runtime Created + Test Environment

* [3] Reorganizing + Improving UI + CSS Modules

* [4] Make External Embed asset downloadable

* [5] More UI work

* [5] Fixing UI Bugs

* A few tweaks

* Add README

* Addressing feedback

* Fix yarn.lock

* Addressing changes to types

* Updating renovate config

* Add docs; address feedback

* Missed adding a file

* Revising runtime build script + tree shaking

* Addressing feedback

* Add TS + Examples to Workpad Export; create Snapshot Service

* migrate external_runtime script to dev/run

* Convert Workpad Export to TS; Snapshot

* Scope EUI and other CSS; remove snapshot service (for now)

* Update snapshot testing; provide better script

* Update runtime API for effortless embeds

* Major fixes and changes; switched to flyout for embedding

* Switch to HAPI static file service; correct Canvas Workpad type

* Add ts-ignore to inert handler

* Initial ZIP File impl

* Finishing feedback from peers and meetings

* Clean-up

* Use EUI SASS vars, copy changes

* Updating build scripts

* Fix Renovate
2019-08-27 21:45:37 -04:00
Andrea Del Rio dbab52aded
Added sass lint to Canvas (#43410)
Added sass lint to Canvas
2019-08-16 13:32:25 -07:00
Court Ewing 2d171c92f5 Fix path references into and out of x-pack/legacy 2019-06-20 13:34:48 -04: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
Chandler Prall 52d2be5312 Change sass-lint config to very specifically target files to lint (#28048) 2019-01-03 19:16:37 -08:00
Chandler Prall 23037a3760
Add SCSS linting (#27328)
* scss linting POC

* update yarn.lock

* Include sass linting alongside es/ts lint tasks

* fix linting errors

* replace unceccessary selector on rollup creation
2019-01-03 09:01:43 -07:00