[Fleet] Update usage of EuiComboBox #99878
Labels
enhancement
New value added to drive a business result
Team:Fleet
Team label for Observability Data Collection Fleet team
Background
Per #99018, there are several places in Fleet / Integrations UI where our usage of
EuiComboBox
is problematic for a few reasons::focus
state. Small point, but this can be frustrating.EuiComboBox
appears in Fleet Settings forFleet Server hosts
andElasticsearch hosts
as well as theEdit Integration
pages for fields that accept multiple values. The task for this issue is to update our usage with a new pattern that was created in the design issue linked above.See screenshots of current usage
Fleet Settings
![image](https://user-images.githubusercontent.com/1965714/116135181-a8ee9000-a685-11eb-8f48-c04fa8e2db1c.png)
Edit Integration page
![image](https://user-images.githubusercontent.com/847805/117876284-0c68e800-b258-11eb-853c-b9bdf7c42d09.png)
Proposed Solution
Figma file
Figma prototype
The new pattern uses a traditional text input with a button, "add row", which allows users to specify additional inputs. When multiple inputs exist, an "x" button icon appears on the right side of the input which allows users to remove the input. Additionally, when the order of the values is important, a "drag" icon can appear on the left side which allows users to rearrange the order via drag and drop interaction. Assuming we develop this is as shared component, I imagine it will have some of the following props:
compressed
->boolean
(changes the size of the input)sortable
->boolean
(determines whether the inputs can be dragged and rearranged)label
->string
(the name of the input group, i.e. "Fleet Server hosts" or "Paths")helpText
->ReactNode
(for help text and links to more information)Additional notes:
EuiEmptyButton size="xs" flush="left"
for the "add row" buttonFleet Settings
![image](https://user-images.githubusercontent.com/847805/117885366-9f0e8480-b262-11eb-89c4-0ea53ef72584.png)
EuiPanel
s to segment the different sections of the of flyout.sortable
option so users can control the order of the values with drag and drop.<h4>
Edit Integration Page
![image](https://user-images.githubusercontent.com/847805/117885393-a9308300-b262-11eb-8538-65e44340a5ba.png)
The text was updated successfully, but these errors were encountered: