Skip to content

[Cases] Adapt breadcrumbs to new stateful navigation#196494

Merged
semd merged 1 commit intoelastic:mainfrom
semd:stateful-sidenav/fix-cases-breadcrumbs
Oct 16, 2024
Merged

[Cases] Adapt breadcrumbs to new stateful navigation#196494
semd merged 1 commit intoelastic:mainfrom
semd:stateful-sidenav/fix-cases-breadcrumbs

Conversation

@semd
Copy link
Copy Markdown
Contributor

@semd semd commented Oct 16, 2024

Summary

Continuation of: #196169

Adapted the Cases breadcrumbs to the new navigation for stateful (ESS) environments.

Using the same chrome.setBreadcrumbs API, the case title breadcrumb now needs to be passed separately, inside the second param object with { project: { value }}.

Screenshots

Before
before

After
after

@semd semd added bug Fixes for quality problems that affect the customer experience backport This PR is a backport of another PR Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// backport:prev-minor v8.16.0 labels Oct 16, 2024
@semd semd self-assigned this Oct 16, 2024
@semd semd requested a review from a team as a code owner October 16, 2024 08:33
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@semd semd enabled auto-merge (squash) October 16, 2024 09:07
@semd semd merged commit 7e310f0 into elastic:main Oct 16, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.x

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

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #51 / @ess @serverless SecuritySolution Saved Objects Note - Saved Objects get notes should retrieve considering page query parameter
  • [job] [logs] FTR Configs #37 / Entity Analytics - Risk Engine @ess @serverless @serverlessQA init_and_status_apis status api should disable / enable risk engine
  • [job] [logs] FTR Configs #4 / Rules Management - Rule Bulk Action API @ess perform_bulk_action - ESS specific logic should disable rules and migrate actions

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
cases 491.9KB 492.0KB +113.0B

cc @semd

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 16, 2024
## Summary

Continuation of: elastic#196169

Adapted the Cases breadcrumbs to the new navigation for stateful (ESS)
environments.

Using the same `chrome.setBreadcrumbs` API, the case title breadcrumb
now needs to be passed separately, inside the second _param_ object with
`{ project: { value }}`.

### Screenshots

Before
<img width="776" alt="before"
src="https://github.com/user-attachments/assets/29df8b36-71b3-4cf8-9c77-a72848ff91fc">

After
<img width="776" alt="after"
src="https://github.com/user-attachments/assets/bfa0bf06-9e94-454e-ace0-be63f13f9bc7">

(cherry picked from commit 7e310f0)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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 Oct 16, 2024
…196519)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cases] Adapt breadcrumbs to new stateful navigation
(#196494)](#196494)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Sergi
Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2024-10-16T10:14:46Z","message":"[Cases]
Adapt breadcrumbs to new stateful navigation (#196494)\n\n##
Summary\r\n\r\nContinuation of:
https://github.com/elastic/kibana/pull/196169\r\n\r\nAdapted the Cases
breadcrumbs to the new navigation for stateful
(ESS)\r\nenvironments.\r\n\r\nUsing the same `chrome.setBreadcrumbs`
API, the case title breadcrumb\r\nnow needs to be passed separately,
inside the second _param_ object with\r\n`{ project: { value
}}`.\r\n\r\n### Screenshots\r\n\r\nBefore\r\n<img width=\"776\"
alt=\"before\"\r\nsrc=\"https://github.com/user-attachments/assets/29df8b36-71b3-4cf8-9c77-a72848ff91fc\">\r\n\r\n\r\nAfter\r\n<img
width=\"776\"
alt=\"after\"\r\nsrc=\"https://github.com/user-attachments/assets/bfa0bf06-9e94-454e-ace0-be63f13f9bc7\">","sha":"7e310f049baccadc46961746ba36d5c37687bd5e","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","backport","Team:ResponseOps","v9.0.0","backport:prev-minor","v8.16.0"],"title":"[Cases]
Adapt breadcrumbs to new stateful
navigation","number":196494,"url":"https://github.com/elastic/kibana/pull/196494","mergeCommit":{"message":"[Cases]
Adapt breadcrumbs to new stateful navigation (#196494)\n\n##
Summary\r\n\r\nContinuation of:
https://github.com/elastic/kibana/pull/196169\r\n\r\nAdapted the Cases
breadcrumbs to the new navigation for stateful
(ESS)\r\nenvironments.\r\n\r\nUsing the same `chrome.setBreadcrumbs`
API, the case title breadcrumb\r\nnow needs to be passed separately,
inside the second _param_ object with\r\n`{ project: { value
}}`.\r\n\r\n### Screenshots\r\n\r\nBefore\r\n<img width=\"776\"
alt=\"before\"\r\nsrc=\"https://github.com/user-attachments/assets/29df8b36-71b3-4cf8-9c77-a72848ff91fc\">\r\n\r\n\r\nAfter\r\n<img
width=\"776\"
alt=\"after\"\r\nsrc=\"https://github.com/user-attachments/assets/bfa0bf06-9e94-454e-ace0-be63f13f9bc7\">","sha":"7e310f049baccadc46961746ba36d5c37687bd5e"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196494","number":196494,"mergeCommit":{"message":"[Cases]
Adapt breadcrumbs to new stateful navigation (#196494)\n\n##
Summary\r\n\r\nContinuation of:
https://github.com/elastic/kibana/pull/196169\r\n\r\nAdapted the Cases
breadcrumbs to the new navigation for stateful
(ESS)\r\nenvironments.\r\n\r\nUsing the same `chrome.setBreadcrumbs`
API, the case title breadcrumb\r\nnow needs to be passed separately,
inside the second _param_ object with\r\n`{ project: { value
}}`.\r\n\r\n### Screenshots\r\n\r\nBefore\r\n<img width=\"776\"
alt=\"before\"\r\nsrc=\"https://github.com/user-attachments/assets/29df8b36-71b3-4cf8-9c77-a72848ff91fc\">\r\n\r\n\r\nAfter\r\n<img
width=\"776\"
alt=\"after\"\r\nsrc=\"https://github.com/user-attachments/assets/bfa0bf06-9e94-454e-ace0-be63f13f9bc7\">","sha":"7e310f049baccadc46961746ba36d5c37687bd5e"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR bug Fixes for quality problems that affect the customer experience Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants