[Fleet][Security & Observability Onboarding] Generalize and consolidate custom fleet onboarding logic#215561
Merged
kgeller merged 11 commits intoelastic:mainfrom Mar 26, 2025
Merged
Conversation
…e by utilizing navigateToApp
Contributor
|
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
Contributor
|
Pinging @elastic/fleet (Team:Fleet) |
Contributor
|
Pinging @elastic/security-threat-hunting-explore (Team:Threat Hunting:Explore) |
mykolaharmash
approved these changes
Mar 24, 2025
Contributor
mykolaharmash
left a comment
There was a problem hiding this comment.
Changes for observability onboarding LGTM ✨
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
cc @kgeller |
kgeller
added a commit
that referenced
this pull request
Mar 27, 2025
…tching tabs the integration details page (#216094) ## Summary Updates so that `returnAppId` and `returnPath` are maintained when the user switches tabs on the Integrations details page. ## Details We currently have custom logic so that callers of the integrations cards can customize the destinations of the back, cancel and save buttons. This fixes that flow so that that customization is kept if the user switches tabs. Followup to #215561 ## Screen recordings https://github.com/user-attachments/assets/016ae86a-9d2f-434f-88cc-f34aeff9e14d Relates - elastic/security-team#11789
cqliu1
pushed a commit
to cqliu1/kibana
that referenced
this pull request
Mar 31, 2025
…te custom fleet onboarding logic (elastic#215561) ## Summary Updated fleet custom navigation logic to be more generic and consistent between security and observability onboarding flows. ## Details When attempting to start using the custom logic for routing back to onboarding pages for another project, I noticed inconsistencies in how we were linking back to the onboarding pages for the `Back to selection` button on the Integrations overview page and the `Cancel` and `Save and continue` on the Add integration page. Due to these inconsistencies, both custom routing mechanisms couldn't both work at the same time. I re-worked the implementation of the back button to match the cancel/save buttons and utilize `navigateToApp` to fix. Now instead of observability utilizing the `observabilityOnboardingLink` query param, and security utilizing both `observabilityOnboardingLink` and `onboardingAppId`, both solutions will use `returnAppId` and `returnPath` (or different names if we don't love these) to route back to their sourcing locations. Note: Observability onboarding will also now inherit logic the security onboarding team added where the same query parameters route back to the source when a user cancels or saves from the Add integration page (item 3 from [this PR](elastic#194028)) ## Screen recordings Regular integrations page https://github.com/user-attachments/assets/0f306bec-657f-4a7a-b2da-25557899b629 Security onboarding https://github.com/user-attachments/assets/d2a161a0-62ee-40b1-9dd9-5165aea6a65a Observability onboarding https://github.com/user-attachments/assets/89f6b9a3-a348-4488-8688-1d5c96716185 Relates: - elastic#181520 - elastic/security-team#11789 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
cqliu1
pushed a commit
to cqliu1/kibana
that referenced
this pull request
Mar 31, 2025
…tching tabs the integration details page (elastic#216094) ## Summary Updates so that `returnAppId` and `returnPath` are maintained when the user switches tabs on the Integrations details page. ## Details We currently have custom logic so that callers of the integrations cards can customize the destinations of the back, cancel and save buttons. This fixes that flow so that that customization is kept if the user switches tabs. Followup to elastic#215561 ## Screen recordings https://github.com/user-attachments/assets/016ae86a-9d2f-434f-88cc-f34aeff9e14d Relates - elastic/security-team#11789
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
angorayc
pushed a commit
to angorayc/kibana
that referenced
this pull request
May 28, 2025
…te custom fleet onboarding logic (elastic#215561) ## Summary Updated fleet custom navigation logic to be more generic and consistent between security and observability onboarding flows. ## Details When attempting to start using the custom logic for routing back to onboarding pages for another project, I noticed inconsistencies in how we were linking back to the onboarding pages for the `Back to selection` button on the Integrations overview page and the `Cancel` and `Save and continue` on the Add integration page. Due to these inconsistencies, both custom routing mechanisms couldn't both work at the same time. I re-worked the implementation of the back button to match the cancel/save buttons and utilize `navigateToApp` to fix. Now instead of observability utilizing the `observabilityOnboardingLink` query param, and security utilizing both `observabilityOnboardingLink` and `onboardingAppId`, both solutions will use `returnAppId` and `returnPath` (or different names if we don't love these) to route back to their sourcing locations. Note: Observability onboarding will also now inherit logic the security onboarding team added where the same query parameters route back to the source when a user cancels or saves from the Add integration page (item 3 from [this PR](elastic#194028)) ## Screen recordings Regular integrations page https://github.com/user-attachments/assets/0f306bec-657f-4a7a-b2da-25557899b629 Security onboarding https://github.com/user-attachments/assets/d2a161a0-62ee-40b1-9dd9-5165aea6a65a Observability onboarding https://github.com/user-attachments/assets/89f6b9a3-a348-4488-8688-1d5c96716185 Relates: - elastic#181520 - elastic/security-team#11789 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6967952)
angorayc
added a commit
that referenced
this pull request
May 28, 2025
…nsolidate custom fleet onboarding logic (#215561) (#221819) # Backport This will backport the following commits from `main` to `8.19`: - [[Fleet][Security & Observability Onboarding] Generalize and consolidate custom fleet onboarding logic (#215561)](#215561) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Kylie Meli","email":"kylie.geller@elastic.co"},"sourceCommit":{"committedDate":"2025-03-26T17:40:51Z","message":"[Fleet][Security & Observability Onboarding] Generalize and consolidate custom fleet onboarding logic (#215561)\n\n## Summary\n\nUpdated fleet custom navigation logic to be more generic and consistent\nbetween security and observability onboarding flows.\n\n## Details\n\nWhen attempting to start using the custom logic for routing back to\nonboarding pages for another project, I noticed inconsistencies in how\nwe were linking back to the onboarding pages for the `Back to selection`\nbutton on the Integrations overview page and the `Cancel` and `Save and\ncontinue` on the Add integration page. Due to these inconsistencies,\nboth custom routing mechanisms couldn't both work at the same time. I\nre-worked the implementation of the back button to match the cancel/save\nbuttons and utilize `navigateToApp` to fix.\n\nNow instead of observability utilizing the `observabilityOnboardingLink`\nquery param, and security utilizing both `observabilityOnboardingLink`\nand `onboardingAppId`, both solutions will use `returnAppId` and\n`returnPath` (or different names if we don't love these) to route back\nto their sourcing locations.\n\nNote: Observability onboarding will also now inherit logic the security\nonboarding team added where the same query parameters route back to the\nsource when a user cancels or saves from the Add integration page (item\n3 from [this PR](https://github.com/elastic/kibana/pull/194028))\n\n## Screen recordings\n\nRegular integrations page\n\n\nhttps://github.com/user-attachments/assets/0f306bec-657f-4a7a-b2da-25557899b629\n\nSecurity onboarding\n\n\nhttps://github.com/user-attachments/assets/d2a161a0-62ee-40b1-9dd9-5165aea6a65a\n\nObservability onboarding\n\n\nhttps://github.com/user-attachments/assets/89f6b9a3-a348-4488-8688-1d5c96716185\n\nRelates: \n- https://github.com/elastic/kibana/issues/181520\n- https://github.com/elastic/security-team/issues/11789\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6967952189b8366677fe00d183fc4c2def125dad","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:skip","Team:Fleet","Team:Threat Hunting:Explore","Team:obs-ux-logs","v9.1.0"],"title":"[Fleet][Security & Observability Onboarding] Generalize and consolidate custom fleet onboarding logic","number":215561,"url":"https://github.com/elastic/kibana/pull/215561","mergeCommit":{"message":"[Fleet][Security & Observability Onboarding] Generalize and consolidate custom fleet onboarding logic (#215561)\n\n## Summary\n\nUpdated fleet custom navigation logic to be more generic and consistent\nbetween security and observability onboarding flows.\n\n## Details\n\nWhen attempting to start using the custom logic for routing back to\nonboarding pages for another project, I noticed inconsistencies in how\nwe were linking back to the onboarding pages for the `Back to selection`\nbutton on the Integrations overview page and the `Cancel` and `Save and\ncontinue` on the Add integration page. Due to these inconsistencies,\nboth custom routing mechanisms couldn't both work at the same time. I\nre-worked the implementation of the back button to match the cancel/save\nbuttons and utilize `navigateToApp` to fix.\n\nNow instead of observability utilizing the `observabilityOnboardingLink`\nquery param, and security utilizing both `observabilityOnboardingLink`\nand `onboardingAppId`, both solutions will use `returnAppId` and\n`returnPath` (or different names if we don't love these) to route back\nto their sourcing locations.\n\nNote: Observability onboarding will also now inherit logic the security\nonboarding team added where the same query parameters route back to the\nsource when a user cancels or saves from the Add integration page (item\n3 from [this PR](https://github.com/elastic/kibana/pull/194028))\n\n## Screen recordings\n\nRegular integrations page\n\n\nhttps://github.com/user-attachments/assets/0f306bec-657f-4a7a-b2da-25557899b629\n\nSecurity onboarding\n\n\nhttps://github.com/user-attachments/assets/d2a161a0-62ee-40b1-9dd9-5165aea6a65a\n\nObservability onboarding\n\n\nhttps://github.com/user-attachments/assets/89f6b9a3-a348-4488-8688-1d5c96716185\n\nRelates: \n- https://github.com/elastic/kibana/issues/181520\n- https://github.com/elastic/security-team/issues/11789\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6967952189b8366677fe00d183fc4c2def125dad"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215561","number":215561,"mergeCommit":{"message":"[Fleet][Security & Observability Onboarding] Generalize and consolidate custom fleet onboarding logic (#215561)\n\n## Summary\n\nUpdated fleet custom navigation logic to be more generic and consistent\nbetween security and observability onboarding flows.\n\n## Details\n\nWhen attempting to start using the custom logic for routing back to\nonboarding pages for another project, I noticed inconsistencies in how\nwe were linking back to the onboarding pages for the `Back to selection`\nbutton on the Integrations overview page and the `Cancel` and `Save and\ncontinue` on the Add integration page. Due to these inconsistencies,\nboth custom routing mechanisms couldn't both work at the same time. I\nre-worked the implementation of the back button to match the cancel/save\nbuttons and utilize `navigateToApp` to fix.\n\nNow instead of observability utilizing the `observabilityOnboardingLink`\nquery param, and security utilizing both `observabilityOnboardingLink`\nand `onboardingAppId`, both solutions will use `returnAppId` and\n`returnPath` (or different names if we don't love these) to route back\nto their sourcing locations.\n\nNote: Observability onboarding will also now inherit logic the security\nonboarding team added where the same query parameters route back to the\nsource when a user cancels or saves from the Add integration page (item\n3 from [this PR](https://github.com/elastic/kibana/pull/194028))\n\n## Screen recordings\n\nRegular integrations page\n\n\nhttps://github.com/user-attachments/assets/0f306bec-657f-4a7a-b2da-25557899b629\n\nSecurity onboarding\n\n\nhttps://github.com/user-attachments/assets/d2a161a0-62ee-40b1-9dd9-5165aea6a65a\n\nObservability onboarding\n\n\nhttps://github.com/user-attachments/assets/89f6b9a3-a348-4488-8688-1d5c96716185\n\nRelates: \n- https://github.com/elastic/kibana/issues/181520\n- https://github.com/elastic/security-team/issues/11789\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6967952189b8366677fe00d183fc4c2def125dad"}}]}] BACKPORT--> Co-authored-by: Kylie Meli <kylie.geller@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
angorayc
pushed a commit
to angorayc/kibana
that referenced
this pull request
May 29, 2025
…tching tabs the integration details page (elastic#216094) ## Summary Updates so that `returnAppId` and `returnPath` are maintained when the user switches tabs on the Integrations details page. ## Details We currently have custom logic so that callers of the integrations cards can customize the destinations of the back, cancel and save buttons. This fixes that flow so that that customization is kept if the user switches tabs. Followup to elastic#215561 ## Screen recordings https://github.com/user-attachments/assets/016ae86a-9d2f-434f-88cc-f34aeff9e14d Relates - elastic/security-team#11789 (cherry picked from commit e5b81ac)
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
May 29, 2025
…tching tabs the integration details page (elastic#216094) ## Summary Updates so that `returnAppId` and `returnPath` are maintained when the user switches tabs on the Integrations details page. ## Details We currently have custom logic so that callers of the integrations cards can customize the destinations of the back, cancel and save buttons. This fixes that flow so that that customization is kept if the user switches tabs. Followup to elastic#215561 ## Screen recordings https://github.com/user-attachments/assets/016ae86a-9d2f-434f-88cc-f34aeff9e14d Relates - elastic/security-team#11789 (cherry picked from commit e5b81ac)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updated fleet custom navigation logic to be more generic and consistent between security and observability onboarding flows.
Details
When attempting to start using the custom logic for routing back to onboarding pages for another project, I noticed inconsistencies in how we were linking back to the onboarding pages for the
Back to selectionbutton on the Integrations overview page and theCancelandSave and continueon the Add integration page. Due to these inconsistencies, both custom routing mechanisms couldn't both work at the same time. I re-worked the implementation of the back button to match the cancel/save buttons and utilizenavigateToAppto fix.Now instead of observability utilizing the
observabilityOnboardingLinkquery param, and security utilizing bothobservabilityOnboardingLinkandonboardingAppId, both solutions will usereturnAppIdandreturnPath(or different names if we don't love these) to route back to their sourcing locations.Note: Observability onboarding will also now inherit logic the security onboarding team added where the same query parameters route back to the source when a user cancels or saves from the Add integration page (item 3 from this PR)
Screen recordings
Regular integrations page
fleetPage.mov
Security onboarding
security-onboarding.mov
Observability onboarding
oblt-onboarding.mov
Relates: