Skip to content

[Fleet] Keep the query params returnAppId and returnPath when switching tabs the integration details page#216094

Merged
kgeller merged 2 commits intoelastic:mainfrom
kgeller:custom-nav-params-persist
Mar 27, 2025
Merged

[Fleet] Keep the query params returnAppId and returnPath when switching tabs the integration details page#216094
kgeller merged 2 commits intoelastic:mainfrom
kgeller:custom-nav-params-persist

Conversation

@kgeller
Copy link
Copy Markdown
Member

@kgeller kgeller commented Mar 26, 2025

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

Screen.Recording.2025-03-26.at.2.11.57.PM.mov

Relates

@kgeller kgeller added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:Fleet Team label for Observability Data Collection Fleet team v9.1.0 labels Mar 26, 2025
@kgeller kgeller self-assigned this Mar 26, 2025
@kgeller kgeller marked this pull request as ready for review March 26, 2025 20:10
@kgeller kgeller requested a review from a team as a code owner March 26, 2025 20:10
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

Copy link
Copy Markdown
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #59 / Security Solution - Telemetry Security Telemetry - Indices metadata task telemetry @ess @serverless indices metadata should publish data stream events

Metrics [docs]

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 -147.0B

Page load bundle

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

id before after diff
fleet 159.9KB 160.5KB +600.0B

History

cc @kgeller

@kgeller kgeller merged commit e5b81ac into elastic:main Mar 27, 2025
9 checks passed
@kgeller kgeller deleted the custom-nav-params-persist branch March 27, 2025 15:26
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
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)
@angorayc
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@angorayc angorayc added backport:version Backport to applied version labels v8.19.0 and removed backport:skip This PR does not require backporting labels May 29, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19

https://github.com/elastic/kibana/actions/runs/15322288302

@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19

https://github.com/elastic/kibana/actions/runs/15322288342

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.19 An unhandled error occurred. Please see the logs for details

Manual backport

To create the backport manually run:

node scripts/backport --pr 216094

Questions ?

Please refer to the Backport tool documentation

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)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request May 29, 2025
…hen switching tabs the integration details page (#216094) (#221915)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Fleet] Keep the query params `returnAppId` and `returnPath` when
switching tabs the integration details page
(#216094)](#216094)

<!--- 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-27T15:26:53Z","message":"[Fleet]
Keep the query params `returnAppId` and `returnPath` when switching tabs
the integration details page (#216094)\n\n## Summary\n\nUpdates so that
`returnAppId` and `returnPath` are maintained when the\nuser switches
tabs on the Integrations details page.\n\n## Details\n\nWe currently
have custom logic so that callers of the integrations cards\ncan
customize the destinations of the back, cancel and save buttons.\nThis
fixes that flow so that that customization is kept if the user\nswitches
tabs.\n\nFollowup to https://github.com/elastic/kibana/pull/215561\n\n##
Screen
recordings\n\n\nhttps://github.com/user-attachments/assets/016ae86a-9d2f-434f-88cc-f34aeff9e14d\n\nRelates\n-
https://github.com/elastic/security-team/issues/11789","sha":"e5b81ace3f83d8bc1a613eae241f41633de79337","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","backport:version","v9.1.0","v8.19.0"],"title":"[Fleet]
Keep the query params `returnAppId` and `returnPath` when switching tabs
the integration details
page","number":216094,"url":"https://github.com/elastic/kibana/pull/216094","mergeCommit":{"message":"[Fleet]
Keep the query params `returnAppId` and `returnPath` when switching tabs
the integration details page (#216094)\n\n## Summary\n\nUpdates so that
`returnAppId` and `returnPath` are maintained when the\nuser switches
tabs on the Integrations details page.\n\n## Details\n\nWe currently
have custom logic so that callers of the integrations cards\ncan
customize the destinations of the back, cancel and save buttons.\nThis
fixes that flow so that that customization is kept if the user\nswitches
tabs.\n\nFollowup to https://github.com/elastic/kibana/pull/215561\n\n##
Screen
recordings\n\n\nhttps://github.com/user-attachments/assets/016ae86a-9d2f-434f-88cc-f34aeff9e14d\n\nRelates\n-
https://github.com/elastic/security-team/issues/11789","sha":"e5b81ace3f83d8bc1a613eae241f41633de79337"}},"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/216094","number":216094,"mergeCommit":{"message":"[Fleet]
Keep the query params `returnAppId` and `returnPath` when switching tabs
the integration details page (#216094)\n\n## Summary\n\nUpdates so that
`returnAppId` and `returnPath` are maintained when the\nuser switches
tabs on the Integrations details page.\n\n## Details\n\nWe currently
have custom logic so that callers of the integrations cards\ncan
customize the destinations of the back, cancel and save buttons.\nThis
fixes that flow so that that customization is kept if the user\nswitches
tabs.\n\nFollowup to https://github.com/elastic/kibana/pull/215561\n\n##
Screen
recordings\n\n\nhttps://github.com/user-attachments/assets/016ae86a-9d2f-434f-88cc-f34aeff9e14d\n\nRelates\n-
https://github.com/elastic/security-team/issues/11789","sha":"e5b81ace3f83d8bc1a613eae241f41633de79337"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"url":"https://github.com/elastic/kibana/pull/221911","number":221911,"branch":"8.19","state":"OPEN"}]}]
BACKPORT-->

Co-authored-by: Kylie Meli <kylie.geller@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants