Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution] Fix misaligned top nav #175516

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

angorayc
Copy link
Contributor

@angorayc angorayc commented Jan 25, 2024

Summary

Issue and steps to reproduce: #171682

Before:

misaligned

After:

Screen.Recording.2024-01-25.at.17.37.34.mov

Checklist

Delete any items that are not applicable to this PR.

@angorayc angorayc added bug Fixes for quality problems that affect the customer experience Team:Threat Hunting Security Solution Threat Hunting Team Team:Threat Hunting:Explore Feature:Security Dashboards Security solution custom dashboards feature v8.12.0 v8.12.1 v8.13.0 labels Jan 25, 2024
@angorayc angorayc self-assigned this Jan 25, 2024
@angorayc
Copy link
Contributor Author

buildkite test this

@angorayc angorayc removed the v8.12.0 label Jan 25, 2024
@@ -176,7 +176,7 @@ export const isDetectionsPath = (pathname: string): boolean => {

export const isDashboardViewPath = (pathname: string): boolean =>
matchPath(pathname, {
path: `/${DASHBOARDS_PATH}/:id`,
path: `${DASHBOARDS_PATH}/:detailName`,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't need / here as DASHBOARDS_PATH = /dashboards (x-pack/plugins/security_solution/common/constants.ts line 82)

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #13 / CaseUI View Page activity tab should call the alerts table with correct props for security solution
  • [job] [logs] FTR Configs #58 / discover "before all" hook in "discover"

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
securitySolution 11.1MB 11.1MB +42.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @angorayc

@angorayc angorayc changed the title [Security Solution] Fix dashboard top nav misaligned [Security Solution] Fix misaligned top nav Jan 25, 2024
@angorayc angorayc marked this pull request as ready for review January 25, 2024 12:28
@angorayc angorayc requested a review from a team as a code owner January 25, 2024 12:28
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting-explore (Team:Threat Hunting:Explore)

Copy link
Contributor

@janmonschke janmonschke left a comment

Choose a reason for hiding this comment

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

👍

@angorayc angorayc merged commit a8f538d into elastic:main Jan 25, 2024
55 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 25, 2024
## Summary

Issue and steps to reproduce:
elastic#171682

Before:

<img width="1728" alt="misaligned"
src="https://github.com/elastic/kibana/assets/7074629/6c0f8484-7bfb-4329-9029-b53a3c118047">

After:

https://github.com/elastic/kibana/assets/6295984/58d3e5bc-0a9a-475b-99dd-00e061b8c4b1

### Checklist

Delete any items that are not applicable to this PR.

- [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

(cherry picked from commit a8f538d)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.12

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 Jan 25, 2024
# Backport

This will backport the following commits from `main` to `8.12`:
- [[Security Solution] Fix misaligned top nav
(#175516)](#175516)

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

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

<!--BACKPORT [{"author":{"name":"Angela
Chuang","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-01-25T12:39:12Z","message":"[Security
Solution] Fix misaligned top nav (#175516)\n\n## Summary\r\n\r\nIssue
and steps to
reproduce:\r\nhttps://github.com//issues/171682\r\n\r\nBefore:\r\n\r\n<img
width=\"1728\"
alt=\"misaligned\"\r\nsrc=\"https://github.com/elastic/kibana/assets/7074629/6c0f8484-7bfb-4329-9029-b53a3c118047\">\r\n\r\n\r\nAfter:\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/6295984/58d3e5bc-0a9a-475b-99dd-00e061b8c4b1\r\n\r\n\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"a8f538d15cc40be82bf5abf697a94ee2a5f0466f","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Threat
Hunting","Team:Threat Hunting:Explore","Feature:Security
Dashboards","v8.12.1","v8.13.0"],"title":"[Security Solution] Fix
misaligned top
nav","number":175516,"url":"https://github.com/elastic/kibana/pull/175516","mergeCommit":{"message":"[Security
Solution] Fix misaligned top nav (#175516)\n\n## Summary\r\n\r\nIssue
and steps to
reproduce:\r\nhttps://github.com//issues/171682\r\n\r\nBefore:\r\n\r\n<img
width=\"1728\"
alt=\"misaligned\"\r\nsrc=\"https://github.com/elastic/kibana/assets/7074629/6c0f8484-7bfb-4329-9029-b53a3c118047\">\r\n\r\n\r\nAfter:\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/6295984/58d3e5bc-0a9a-475b-99dd-00e061b8c4b1\r\n\r\n\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"a8f538d15cc40be82bf5abf697a94ee2a5f0466f"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/175516","number":175516,"mergeCommit":{"message":"[Security
Solution] Fix misaligned top nav (#175516)\n\n## Summary\r\n\r\nIssue
and steps to
reproduce:\r\nhttps://github.com//issues/171682\r\n\r\nBefore:\r\n\r\n<img
width=\"1728\"
alt=\"misaligned\"\r\nsrc=\"https://github.com/elastic/kibana/assets/7074629/6c0f8484-7bfb-4329-9029-b53a3c118047\">\r\n\r\n\r\nAfter:\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/6295984/58d3e5bc-0a9a-475b-99dd-00e061b8c4b1\r\n\r\n\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"a8f538d15cc40be82bf5abf697a94ee2a5f0466f"}}]}]
BACKPORT-->

Co-authored-by: Angela Chuang <[email protected]>
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Feb 15, 2024
## Summary

Issue and steps to reproduce:
elastic#171682

Before:

<img width="1728" alt="misaligned"
src="https://github.com/elastic/kibana/assets/7074629/6c0f8484-7bfb-4329-9029-b53a3c118047">


After:


https://github.com/elastic/kibana/assets/6295984/58d3e5bc-0a9a-475b-99dd-00e061b8c4b1




### Checklist

Delete any items that are not applicable to this PR.


- [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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Security Dashboards Security solution custom dashboards feature release_note:fix Team:Threat Hunting:Explore Team:Threat Hunting Security Solution Threat Hunting Team v8.12.1 v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants