Commit graph

712 commits

Author SHA1 Message Date
Marco Liberati
fa69602b34
[Lens] Fix Metric visualization scale (#113956)
* 🐛 Fix metric rescale

* 📸 Restored old snapshots

* 🐛 Extend the fix to all scenarios

* 📸 Refresh snapshots for new fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-12 17:32:32 +02:00
Marco Vettorello
ff1b014c7b
Update dependency @elastic/charts to v37 (master) (#113968) 2021-10-12 16:36:18 +02:00
Anton Dosov
c3f1e0de54
[FieldFormats] Remove SerializedFieldFormat copy from expressions plugin (#114245) 2021-10-12 14:35:45 +02:00
Marco Liberati
1bf09e6930
[Lens] Thresholds: Add text to markers body (#113629)
* 🐛 Add padding to the tick label to fit threshold markers

* 🐛 Better icon detection

* 🐛 Fix edge cases with no title or labels

* 📸 Update snapshots

*  Add icon placement flag

*  Sync padding computation with marker positioning

* 👌 Make disabled when no icon is selected

*  First text on marker implementation

* 🐛 Fix some edge cases with auto positioning

* Update x-pack/plugins/lens/public/xy_visualization/xy_config_panel/threshold_panel.tsx

Co-authored-by: Michael Marcialis <michael@marcial.is>

* 🐛 Fix minor details

* 💄 Small tweak

*  Reduce the padding if no icon is shown on the axis

*  Fix broken unit tests

* 💄 Fix vertical text centering

* 🚨 Fix linting issue

* 🐛 Fix issue

* 💄 Reorder panel inputs

* 💄 Move styling to sass

* 👌 Address feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>
2021-10-11 12:32:19 +02:00
Joe Portner
080b2199f4
Legacy url conflict UI improvements (#114172) 2021-10-07 20:09:19 -04:00
Diana Derevyankina
f945ccfbbf
Revert "[Lens] Rename Index pattern to Data view (#110252)" (#114277)
This reverts commit 93522e5fa8.
2021-10-07 16:15:47 -04:00
Thomas Watson
250e0d13e8
Bump immer, redux and @reduxjs/toolkit (#110962)
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-10-07 14:34:36 -04:00
Marta Bondyra
f50345f8ef
[Lens] Chart is not updating with Refresh button (#114135) 2021-10-07 12:57:38 +02:00
Peter Pisljar
1a577dfbfa
filter types (#111269) 2021-10-06 17:46:54 +02:00
Marco Liberati
3fe1eab5a5
[Lens] Thresholds: auto fit thresholds into vertical axis (#113238)
*  Make threshold fit into view automatically

* 🐛 do not compute axis threshold extends if no threshold is present

*  One more fix for 0-based extends and tests

* 📝 fix typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-06 15:39:44 +02:00
Nathan Reese
a9a923d5ee
[Maps] Switch to SavedObjectClient.resolve (#112606)
* [Maps] Switch to SavedObjectClient.resolve

* spaces tslint

* aliasMatch

* maps eslint

* update lens to use spaces.ui.components.getSavedObjectConflictMessage

* lens eslint

* spaces eslint

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-05 13:45:51 -06:00
Marco Liberati
35e9f6ad6b
🐛 fix duplicate suggestion issue + missing over time (#113449)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-05 12:45:56 +02:00
Marco Liberati
6b9ef32ffe
🐛 Fix color fallback for different type of layers (#113642)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 19:10:14 +02:00
Michael Dokolin
0d9825d03c
[Expressions] Remove the any type usages (#113477)
* Update ESLint config to disallow usage of the any type
* Remove the any type usages from the expressions plugin
* Update plugins using expressions according to the updated public API
2021-10-04 18:30:10 +02:00
Marta Bondyra
6bfa2a4c2c
[Lens] move from slice to reducers/actions and simplify loading (#113324)
* structure changes

* tests & fix for sessionId

* share mocks in time_range_middleware

* make switchVisualization and selectSuggestion one reducer as it's very similar

* CR

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 13:32:36 +02:00
Marco Liberati
8e25f5cc0f
[Lens] Threshold: add padding to avoid axis label collision with threshold markers (#112952)
* 🐛 Add padding to the tick label to fit threshold markers

* 🐛 Better icon detection

* 🐛 Fix edge cases with no title or labels

* 📸 Update snapshots

*  Add icon placement flag

*  Sync padding computation with marker positioning

* 👌 Make disabled when no icon is selected

* 🐛 Fix some edge cases with auto positioning

* Update x-pack/plugins/lens/public/xy_visualization/xy_config_panel/threshold_panel.tsx

Co-authored-by: Michael Marcialis <michael@marcial.is>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>
2021-10-04 13:01:14 +02:00
Diana Derevyankina
93522e5fa8
[Lens] Rename Index pattern to Data view (#110252)
* [Lens] Rename Index pattern to Data view

* Update tests expected labels

* Remove couple of unused translations

* Remove unused translation

* Revert accidentally not applied string because of merge conflict

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 12:41:56 +03:00
Marco Liberati
218deff1cb
[Lens] Threshold: set default color for new thresholds (#113008)
* 💄 Make dark grey default threshold color

*  Fix test

* 👌 Integrate feedback

* 👌 Fix bug

* 👌 Filter threshold layers for color assignments

* 👌 Small refactor

* 🐛 Fix merging conflicts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-01 10:16:38 +02:00
Michael Marcialis
2aa39891ff
[Lens] Design updates in prep for thresholds (#113428)
* remove borders from layer panels

* increase "add layer" button size

* fix cross-browser scrollbars & shadow clipping

* fix layer panel and dimension drop zone spacing

* add hyphens

* fix border radius & adjust workspace styles

* config flyout padding and spacing adjustments

* formula padding and spacing adjustments

* palette flyout padding and spacing adjustments

* remove unnecessary v7 styles

* correct button font size in v7

* restore workspace border in v7

* Fix draggable bg color in v8 dark mode

* fix misaligned layer chart picker text

* fix unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-30 18:23:58 -04:00
Marta Bondyra
b73d939d6c
[Lens] refactor - move debounce one layer up for thresholds (remove updater) (#113222)
* [Lens] remove updater from vis

* removing blur handle

* fix

* blur fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-30 18:03:40 +02:00
Marco Liberati
3bd687e6ca
🐛 Fix label on horizontal chart for axis (#113452) 2021-09-30 12:37:01 +02:00
Marco Liberati
b567351b15
[Lens] Thresholds: moving a threshold to another group should carry also its styling (#112853)
* 🐛 When dragging a threshold to another group carry also its styling

*  Add functional test

*  Make duplicate carry style too

*  Add functional test for duplicate use case

* 🐛 Fix table duplication issue

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-29 18:52:50 +02:00
Marta Bondyra
23e55b3270
[Lens] Fix infinite loop when loading rejected data view (#113375)
* [Lens] Fix infinite loop when loading rejected index pattern

* Update x-pack/plugins/lens/public/app_plugin/app.test.tsx
2021-09-29 17:05:45 +02:00
Marco Liberati
04497daed3
🐛 Fix tabs visibility on formula fullscreen (#113268) 2021-09-29 14:47:36 +02:00
Marco Liberati
a251dbf1f8
[Lens] Thresholds: cap threshold width in suggestions (#112816)
* 🐛 Cap threshold width to 1px in suggestions

* 🐛 Remove icons from previews

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-29 10:10:57 +02:00
Marta Bondyra
618d1e5e99
[Lens] replace react specific props events with html events (#113156) 2021-09-28 10:55:41 +02:00
Marta Bondyra
cfe084829f
[Visualize] [Lens] remove warning and logs from console when testing (#113070)
* date_ranges console.warn removed

* lens app console info remved

* percentailize i18n & generate id removed

* vega_parser.test canvas mock warning removed

* vega console logs removed from tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 11:32:47 +02:00
Luke Elmers
878b1eeae9
Log deprecation warnings for plugins which won't be disable-able in 8.0 (#112602) 2021-09-22 15:58:57 -04:00
Matthew Kime
4b71c435a9
[data views] Rename a bunch of index pattern code references to data views (#112770)
* rename a bunch of index pattern references to data views
2021-09-22 09:50:05 -05:00
Marta Bondyra
0cbdf3f259
[Lens] Thresholds added (#108342)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
Co-authored-by: dej611 <dej611@gmail.com>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 11:14:40 +02:00
Marco Liberati
5f994b1d9d
[Lens][Visualize] Align inspector header in Lens and Visualize (#112443)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-20 15:54:37 +02:00
Tyler Smalley
4681a80317
[DX] Upgrade prettier to v2.4.0 (#112359)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-19 22:34:30 -07:00
Yaroslav Kuznietsov
c63fff99a8
[Canvas] TagCloud arguments. (#107729)
* Added arguments to Tagcloud at Canvas.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-17 07:34:15 -04:00
Spencer
eaf70a0b4e
[kbn/ui-shared-deps] split into two packages (#110558)
* [kbn/ui-shared-deps] split into two packages

* fix asset categorizer

* update snapshots

* reference npm dll from optimizer

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-16 12:06:46 -07:00
Joe Reuter
411d23263e
fix data loss mssage (#112294) 2021-09-16 11:30:54 +02:00
Stratoula Kalafateli
8f70030386
[Lens] [TSVB] Fixes the brushing of the last bucket for timeseries visualizations (#112068)
* Enable allowBrushingLastHistogramBucket for timeseries visualizations

* Cleanup
2021-09-15 15:20:44 +03:00
Stratoula Kalafateli
34d7f68375
[Pie] Loads the no results screen if all slices have zero value (#111931)
* [Pie] Loads the no results screen if all slices have zero value

* Add a functional test

* Apply PR changes

* Display no results component if the chart metric has negative values

* Nits

* Apply some of the PR comments

* Change the negative values text

* Update src/plugins/vis_types/pie/public/pie_component.test.tsx

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

* Update src/plugins/vis_types/pie/public/pie_component.test.tsx

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-09-15 15:11:09 +03:00
Marco Liberati
e37cacbe59
[Lens] Removing trailing semicolor and scrollbar for empty pie chart visualization (#111971)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 14:03:49 +02:00
Marta Bondyra
cae5bdca04
[Lens] Added logger info and restructuring some mounter tests (#111953)
* [Lens] added logger info and restructuring some mounter tests

* snapshot updated
2021-09-13 23:09:43 +02:00
Anton Dosov
d6badd8715
[FieldFormats] Reduce any usage (#111530) 2021-09-13 17:01:51 +02:00
Marta Bondyra
15a31a19b3
[Lens] Make Lens saved object share-capable (#111403)
* [Lens] Make Lens saved object share-capable

Step 4 of https://www.elastic.co/guide/en/kibana/master/sharing-saved-objects.html#sharing-saved-objects-faq-changing-object-ids

* delete gzipped duplicate

* fix updating the document

* use create instead of update

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 09:33:22 +02:00
Marta Bondyra
c6c4f52fc3
[Lens] comment redux logger (#111513)
* [Lens] comment redux logger

* Update x-pack/plugins/lens/public/state_management/index.ts

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

* Update x-pack/plugins/lens/public/state_management/index.ts

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 17:15:44 +02:00
Dzmitry Lemechko
b324ca3115
[jest] update config files to get coverage per plugin (#111299)
* [jest] update config files to get coverage per plugin

* [docs] add details about plugin coverage collection

* fix path for newsfeed jest config

* fix lint error

* update documentation

* fix lint errors again

* update doc

* fix another lint error

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* [kibana_legacy] fix path

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 08:14:56 +02:00
Marco Liberati
b36ffc98fc
[Lens] Fix Heatmap in dashboard with numeric color stops (#111117)
* 🐛 Fix heatmap numeric stops problem + tests

* 🏷️ Fix type issue

*  Add dashboard functional tests for this issue

*  Simplify functional test

*  fix functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 19:02:10 +02:00
Alexey Antonov
e2c6a039f6
lens should register expression functions in setup contract (#110639)
* lens should register expression functions in setup contract

Closes: #106510

* fix CI

* build optimization

* build optimizations - step 3

* fix CI

* try to optimize bundle

* Update x-pack/plugins/lens/common/expressions/time_scale/types.ts

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

* Update types.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-09-07 10:32:30 +03:00
Marco Liberati
1a88d34ea2
[Lens] Reverse colors should not reverse palette picker previews (#110455)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 14:27:53 +02:00
Michael Dokolin
df43d253c8
[Expressions] Align renderMode with the embeddable viewMode (#110199)
* Add preview view mode to the embeddable
* Rename display render mode to view
* Extract no interactivity render mode to a separate flag
2021-09-03 19:10:29 +02:00
Marta Bondyra
d4c03eb9b4
[Lens] Switch to SavedObjectClient.resolve (#110059)
* Step 2: Update client code to use resolve() method instead of get()

Following sharing Saved Objects developer guide: Step 2
This step demonstrates the changes to update client code to use the new
SavedObjectsClient `resolve()` method instead of `get()`.

* Step 3 Lens
2021-09-03 16:44:12 +02:00
Marco Liberati
21b4752dba
[Lens] Fix transition to custom palette inconsistency when in number mode (#110852)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 15:57:57 +02:00
Spencer
fecdba7eba
[eslint] add rule to prevent export* in plugin index files (#109357)
* [eslint] add rule to prevent export* in plugin index files

* deduplicate export names for types/instances with the same name

* attempt to auto-fix duplicate exports too

* capture exported enums too

* enforce no_export_all for core too

* disable rule by default, allow opting-in for help fixing

* update tests

* reduce yarn.lock duplication

* add rule but no fixes

* disable all existing violations

* update api docs with new line numbers

* revert unnecessary changes to yarn.lock which only had drawbacks

* remove unnecessary eslint-disable

* rework codegen to split type exports and use babel to generate valid code

* check for "export types" deeply

* improve test by using fixtures

* add comments to some helper functions

* disable fix for namespace exports including types

* label all eslint-disable comments with related team-specific issue

* ensure that child exports of `export type` are always tracked as types

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 18:05:45 -07:00