kibana/test/examples
Julia Rechkunova ea53763028
[UnifiedFieldList][Discover] Create a high level unified field list building block (#160397)
- Closes https://github.com/elastic/kibana/issues/145162 
- Closes https://github.com/elastic/kibana/issues/147884

## Summary

This PR creates a wrapper/container component (building block) for
unified field list subcomponents:

93acc6f707/packages/kbn-unified-field-list/README.md (L5)

Available customization options are listed here:
93acc6f707/packages/kbn-unified-field-list/src/types.ts (L116)

It's now integrated [into
Discover](93acc6f707/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx (L373))
and [into example
plugin](93acc6f707/examples/unified_field_list_examples/public/field_list_sidebar.tsx (L84)).
Usage of unified field list subcomponents and hooks stays unchanged in
Lens plugin as it requires more complex customization (for example Lens
uses IndexPattern/IndexPatternField types instead of data view types).

Also this PR allows to disable multifields grouping and select a variant
(responsive, list only, button only) via
`UnifiedFieldListSidebarContainer` properties.

There should no visual changes on Discover and Lens pages. Unified Field
List Examples plugin will get the same sidebar UI as it's on Discover.

### Checklist

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Davis McPhee <davismcphee@hotmail.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2023-07-10 12:18:40 +02:00
..
bfetch_explorer [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
content_management [CM] Onboard maps to cross-type search (#155148) 2023-04-21 07:41:08 -07:00
data_view_field_editor_example [Data views] Add pre-configuration options to runtime field editor fly-out (#136769) 2022-07-22 10:30:01 -07:00
discover_customization_examples [Discover] Implement Discover customization framework (#158603) 2023-06-14 15:09:13 -03:00
embeddables [Saved Object Finder] Move to the component in saved_objects_finder plugin (#151764) 2023-03-01 22:33:18 +01:00
expressions_explorer [Expressions] Unskip test (#157962) 2023-05-17 14:51:30 +01:00
field_formats [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
hello_world [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
partial_results [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
response_stream [ML] Explain log rate spikes: Move API stream demos to Kibana examples. (#132590) 2022-05-24 16:59:31 +02:00
routing [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
search [Lens] Don't block render on missing field (#149262) 2023-02-02 18:09:43 -06:00
state_sync [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
ui_actions [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
unified_field_list_examples [UnifiedFieldList][Discover] Create a high level unified field list building block (#160397) 2023-07-10 12:18:40 +02:00
config.js [Discover] Implement Discover customization framework (#158603) 2023-06-14 15:09:13 -03:00
README.md Add top level examples folder and command to run, --run-examples. (#52027) 2019-12-10 18:02:03 -05:00

Example plugin functional tests

This folder contains functional tests for the example plugins.

Run the test

To run these tests during development you can use the following commands:

# Start the test server (can continue running)
node scripts/functional_tests_server.js --config test/examples/config.js
# Start a test run
node scripts/functional_test_runner.js --config test/examples/config.js

Run Kibana with a test plugin

In case you want to start Kibana with the example plugins, you can just run:

yarn start --run-examples