mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
- 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>
24 lines
536 B
JSON
24 lines
536 B
JSON
{
|
|
"type": "plugin",
|
|
"id": "@kbn/unified-field-list-examples-plugin",
|
|
"owner": "@elastic/kibana-data-discovery",
|
|
"description": "Examples for using unified field list.",
|
|
"plugin": {
|
|
"id": "unifiedFieldListExamples",
|
|
"server": false,
|
|
"browser": true,
|
|
"requiredPlugins": [
|
|
"navigation",
|
|
"developerExamples",
|
|
"inspector",
|
|
"kibanaUtils",
|
|
"unifiedSearch",
|
|
"data",
|
|
"dataViews",
|
|
"dataViewFieldEditor",
|
|
"charts",
|
|
"fieldFormats",
|
|
"uiActions"
|
|
]
|
|
}
|
|
}
|