Skip to content

[Fleet] Add integration flyout#220229

Merged
juliaElastic merged 22 commits intoelastic:mainfrom
juliaElastic:add-integration-flyout
Jun 4, 2025
Merged

[Fleet] Add integration flyout#220229
juliaElastic merged 22 commits intoelastic:mainfrom
juliaElastic:add-integration-flyout

Conversation

@juliaElastic
Copy link
Contributor

@juliaElastic juliaElastic commented May 6, 2025

Summary

Closes #199345

Add integration flyout in Agent policy details

Added a combobox to select integration with icons

Figma design

image image image image

Error toast:
image

image image image

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

Checklist

@juliaElastic juliaElastic changed the title add integration flyout poc May 8, 2025
@juliaElastic juliaElastic marked this pull request as ready for review May 28, 2025 10:51
@juliaElastic juliaElastic requested a review from a team as a code owner May 28, 2025 10:51
@juliaElastic juliaElastic added backport:skip This PR does not require backporting release_note:feature Makes this part of the condensed release notes labels May 28, 2025
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label May 28, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Copy link
Contributor

@MichelLosier MichelLosier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far! Seems there are some failing tests to address, otherwise small items to consider.

children: replaceStepConfigurePackagePolicy || stepConfigurePackagePolicy,
children: !pkgName ? null : (
<>
{addIntegrationFlyoutProps ? (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think we can simplify this with just an &&

          {addIntegrationFlyoutProps && (
            <AddIntegrationFlyoutConfigureHeader
              pkgLabel={pkgLabel}
              pkgName={pkgName}
              pkgVersion={packageInfo?.version}
              integration={integration}
            />
          )}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

likewise with children: !pkgName ? null : ( could look probably look like children: pkgName && (...

}
}, [settings?.item]);

const { filteredCards } = useAvailablePackages({ prereleaseIntegrationsEnabled: prerelease });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

juliaElastic and others added 5 commits June 2, 2025 09:47
…/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>
@juliaElastic juliaElastic requested a review from MichelLosier June 2, 2025 10:09
Copy link
Contributor

@MichelLosier MichelLosier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! :shipit:

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 1179 1181 +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 1.7MB 1.7MB +6.0KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
fleet 165.5KB 165.5KB -6.0B
Unknown metric groups

async chunk count

id before after diff
fleet 10 9 -1

History

@juliaElastic juliaElastic merged commit 7d60d90 into elastic:main Jun 4, 2025
10 checks passed
zacharyparikh pushed a commit to zacharyparikh/kibana that referenced this pull request Jun 4, 2025
## 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>
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Jun 12, 2025
## 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:feature Makes this part of the condensed release notes Team:Fleet Team label for Observability Data Collection Fleet team v9.1.0

4 participants