kibana/x-pack/plugins/lens/public
Marco Liberati 97e2dc853b
[Lens] Extend Datasource props validation with VisualizationGroups (#82607)
*  First pass with visualization validation + error messages

* 🔥 Remove indexpattern error handling for now

* 🏷️ Fix type issues

*  Add getErrorMessage test for data table

*  Add tests for pie and metric error messages

* 🌐 Fix i18n checks issues

* 🐛 Fix last issue

*  Add more tests for the XY visualization validation code

* 👌 Included all feedback from first review

* ✏️ Off by one message

* 🌐 Fix i18n duplicate id

* 🌐 Fix last i18n issue

* 🐛 Fixed a hook reflow issue

* ♻️+ Reworked validation flow + tests

* 🏷️ Fix type issue

* 🐛 Improved XY corner cases validation logic

* 🐛 Fix empty datatable scenario

*  +  Improved error messages for invalid datasources + tests

* 🌐 Add missing i18n translation

* 🏷️ Fix type issues

* 🌐 Fix i18n issues

*  Filter out suggestions which fail to build

* 🚚 Migrate datatable validation logic to the building phase, handling it as building state

* 🏷️ Fix type issue

* ✏️ Add comment for future enhancements

* ✏️ Updated comment

* :world_with_meridians: Refactor axis labels

* 🌐 Reworked few validation messages

* 🐛 Fix break down validation + percentage charts

*  Align tests with new validation logic

* ♻️ Fix suggestion panel validation to match main panel

* 🌐 Fix i18n issues

* 🔧 Fix some refs for validation checks in suggestions

* 🐛 Fix missing key prop in multiple errors scenario

* 🐛 Fix swtich issue from XY to partition

* 🌐 Fix i18n messages and aligned tests

* 🐛 Fix suggestions switching bug

* :refactor: Add more validation + refactored validation logic in a single place

* ✏️ Add note about lint hooks disable rule

* 🚨 Fix linting issue

* 🏗️ Add infra API for datasource advanced validation

*  Align tests with new API

*  Fix type issues in tests

* 👌 Early exists added

*  Add layers groups to the API

*  Fix some broken test after the validation change

* 👌 Move to disctionary shape

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-09 15:22:21 +01:00
..
app_plugin [Lens] Reload on change via history object (#81753) 2020-11-03 14:29:56 +01:00
assets [Lens] Add a better drag/drop illustration (#78245) 2020-09-24 09:46:18 -04:00
datatable_visualization [Lens] Visualization validation and better error messages (#81439) 2020-11-04 18:28:00 +01:00
debounced_component [Lens] Clean and inline disabling of react-hooks/exhaustive-deps eslint rule (#70010) 2020-08-06 10:10:09 +02:00
drag_drop [Lens] Drag within dimension group to reorder (#80547) 2020-11-03 21:18:44 +01:00
editor_frame_service [Lens] Extend Datasource props validation with VisualizationGroups (#82607) 2020-11-09 15:22:21 +01:00
id_generator
indexpattern_datasource [Lens] Extend Datasource props validation with VisualizationGroups (#82607) 2020-11-09 15:22:21 +01:00
lens_ui_telemetry [Lens] Rename "telemetry" to "stats" (#78125) 2020-09-23 12:50:07 +01:00
metric_visualization [Lens] Visualization validation and better error messages (#81439) 2020-11-04 18:28:00 +01:00
native_renderer apply prettier styles 2020-05-22 09:08:58 +02:00
persistence [Lens] Categorical color palettes (#75309) 2020-11-04 11:27:52 +01:00
pie_visualization [Lens] Visualization validation and better error messages (#81439) 2020-11-04 18:28:00 +01:00
shared_components [Lens] New value labels config option for bar charts (#81776) 2020-11-06 16:34:30 +01:00
trigger_actions [Lens] Navigate from discover to lens (#77873) 2020-10-06 11:15:41 +03:00
xy_visualization [Lens] New value labels config option for bar charts (#81776) 2020-11-06 16:34:30 +01:00
_mixins.scss [Lens] Consistent Drag and Drop styles (#78674) 2020-10-01 11:58:23 -04:00
_variables.scss [Lens] Drag within dimension group to reorder (#80547) 2020-11-03 21:18:44 +01:00
async_services.ts [Lens] Lazy load lens telementry and attribute service (#80479) 2020-10-19 17:21:25 +02:00
help_menu_util.tsx
index.ts
lens_attribute_service.ts [Time to Visualize] Embeddable Error Handling Without ReplacePanel (#82201) 2020-11-05 11:11:29 -05:00
loader.test.tsx
loader.tsx [Lens] Clean and inline disabling of react-hooks/exhaustive-deps eslint rule (#70010) 2020-08-06 10:10:09 +02:00
plugin.ts [Visualize] New visualization wizard (#79627) 2020-11-06 18:03:44 +02:00
search_provider.ts [Lens] Add search provider for global search (#77448) 2020-09-23 17:53:21 +02:00
settings_storage.tsx [Lens] Last used Index pattern is saved to and retrieved from local storage (#69511) 2020-06-26 16:33:09 +02:00
types.ts [Lens] Extend Datasource props validation with VisualizationGroups (#82607) 2020-11-09 15:22:21 +01:00
utils.test.ts removing kibana_datatable in favor of datatable (#80548) 2020-10-16 18:46:51 +02:00
utils.ts removing kibana_datatable in favor of datatable (#80548) 2020-10-16 18:46:51 +02:00
vis_type_alias.ts [Visualize] New visualization wizard (#79627) 2020-11-06 18:03:44 +02:00
visualization_container.scss [Lens] Reduce initial bundle size (#78142) 2020-09-29 19:00:29 +02:00
visualization_container.test.tsx [Lens] Fix embeddable title and description for reporting and dashboard tooltip (#78767) 2020-10-01 18:02:37 +02:00
visualization_container.tsx [Lens] Fix embeddable title and description for reporting and dashboard tooltip (#78767) 2020-10-01 18:02:37 +02:00