[Fleet] Add integration flyout#220229
Conversation
|
Pinging @elastic/fleet (Team:Fleet) |
MichelLosier
left a comment
There was a problem hiding this comment.
Looks good so far! Seems there are some failing tests to address, otherwise small items to consider.
...et/sections/agent_policy/details_page/components/package_policies/add_integration_flyout.tsx
Outdated
Show resolved
Hide resolved
...et/sections/agent_policy/details_page/components/package_policies/add_integration_flyout.tsx
Outdated
Show resolved
Hide resolved
| children: replaceStepConfigurePackagePolicy || stepConfigurePackagePolicy, | ||
| children: !pkgName ? null : ( | ||
| <> | ||
| {addIntegrationFlyoutProps ? ( |
There was a problem hiding this comment.
nit: I think we can simplify this with just an &&
{addIntegrationFlyoutProps && (
<AddIntegrationFlyoutConfigureHeader
pkgLabel={pkgLabel}
pkgName={pkgName}
pkgVersion={packageInfo?.version}
integration={integration}
/>
)}
There was a problem hiding this comment.
likewise with children: !pkgName ? null : ( could look probably look like children: pkgName && (...
...ications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.tsx
Show resolved
Hide resolved
| } | ||
| }, [settings?.item]); | ||
|
|
||
| const { filteredCards } = useAvailablePackages({ prereleaseIntegrationsEnabled: prerelease }); |
There was a problem hiding this comment.
It looks like this can return an isLoading state, could we pass this to the EuiComboBox ? Currently when loading the search box will have a message that there are no options available.
…/sections/agent_policy/details_page/components/package_policies/add_integration_flyout.tsx Co-authored-by: Michel Losier <mikelosier@gmail.com>
…/sections/agent_policy/details_page/components/package_policies/add_integration_flyout.tsx Co-authored-by: Michel Losier <mikelosier@gmail.com>
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
|
## Summary Closes elastic#199345 Add integration flyout in Agent policy details Added a combobox to select integration with icons [Figma design](https://www.figma.com/design/8OS6CP64kvVj57b0JRoYlo/Fleet---Improve-breadcrumb-navigation-between-Fleet---Integrations?node-id=18107-21321&t=ZzyGnOGJlzd0Hq2y-0) <img width="1620" alt="image" src="https://github.com/user-attachments/assets/2c508916-9caf-428f-8ecd-6b3efa6c8947" /> <img width="680" alt="image" src="https://github.com/user-attachments/assets/b23314a6-f8ed-4a1c-9b33-7c9fb8744504" /> <img width="817" alt="image" src="https://github.com/user-attachments/assets/c523e9fd-b0b5-4be2-8363-9ea2bd78b8da" /> <img width="1106" alt="image" src="https://github.com/user-attachments/assets/972b93e4-1a13-4cb3-bbc7-93acc1e810f6" /> Error toast: <img width="1614" alt="image" src="https://github.com/user-attachments/assets/4c56581b-af53-412c-bea7-c3c94a221256" /> <img width="823" alt="image" src="https://github.com/user-attachments/assets/aca2f186-3f31-4181-bae1-3c44ca53e317" /> <img width="1485" alt="image" src="https://github.com/user-attachments/assets/ea17ad38-0da7-4d7d-afb8-e0996b1cba78" /> <img width="673" alt="image" src="https://github.com/user-attachments/assets/3ce8de6f-281b-443f-800a-79605962d83c" /> Read more link goes to the integration reference e.g. https://www.elastic.co/docs/reference/integrations/aws/ecs <img width="1315" alt="image" src="https://github.com/user-attachments/assets/1eda2443-243e-430b-96ca-b1d09953b598" /> ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [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 --------- Co-authored-by: Michel Losier <mikelosier@gmail.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary Closes elastic#199345 Add integration flyout in Agent policy details Added a combobox to select integration with icons [Figma design](https://www.figma.com/design/8OS6CP64kvVj57b0JRoYlo/Fleet---Improve-breadcrumb-navigation-between-Fleet---Integrations?node-id=18107-21321&t=ZzyGnOGJlzd0Hq2y-0) <img width="1620" alt="image" src="https://github.com/user-attachments/assets/2c508916-9caf-428f-8ecd-6b3efa6c8947" /> <img width="680" alt="image" src="https://github.com/user-attachments/assets/b23314a6-f8ed-4a1c-9b33-7c9fb8744504" /> <img width="817" alt="image" src="https://github.com/user-attachments/assets/c523e9fd-b0b5-4be2-8363-9ea2bd78b8da" /> <img width="1106" alt="image" src="https://github.com/user-attachments/assets/972b93e4-1a13-4cb3-bbc7-93acc1e810f6" /> Error toast: <img width="1614" alt="image" src="https://github.com/user-attachments/assets/4c56581b-af53-412c-bea7-c3c94a221256" /> <img width="823" alt="image" src="https://github.com/user-attachments/assets/aca2f186-3f31-4181-bae1-3c44ca53e317" /> <img width="1485" alt="image" src="https://github.com/user-attachments/assets/ea17ad38-0da7-4d7d-afb8-e0996b1cba78" /> <img width="673" alt="image" src="https://github.com/user-attachments/assets/3ce8de6f-281b-443f-800a-79605962d83c" /> Read more link goes to the integration reference e.g. https://www.elastic.co/docs/reference/integrations/aws/ecs <img width="1315" alt="image" src="https://github.com/user-attachments/assets/1eda2443-243e-430b-96ca-b1d09953b598" /> ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [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 --------- Co-authored-by: Michel Losier <mikelosier@gmail.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
Closes #199345
Add integration flyout in Agent policy details
Added a combobox to select integration with icons
Figma design
Error toast:

Read more link goes to the integration reference e.g. https://www.elastic.co/docs/reference/integrations/aws/ecs

Checklist