Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Security Solution][Notes] - disable note buttons in the right …
…panel header when in preview mode (#199189) (#199232) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution][Notes] - disable note buttons in the right panel header when in preview mode (#199189)](#199189) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Philippe Oberti","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-06T21:14:14Z","message":"[Security Solution][Notes] - disable note buttons in the right panel header when in preview mode (#199189)\n\n## Summary\r\n\r\nThis PR fixes a issue where the `Add note` button and the `+` icon\r\nbutton are clickable when an alert is viewed in preview mode. Users\r\nshould not be able to perform actions here, as the action expands the\r\nflyouts and opens the left panel Notes tab, but the issue is the left\r\npanel now shows a different alert from the right panel. If the user\r\ncloses the preview panel, they now see a different alerts on the left\r\nand right panels but they have no way to know this.\r\n\r\n#### Add note button disabled\r\n\r\nhttps://github.com/user-attachments/assets/20554b60-39a1-4c6d-b215-e502b5b24dbd\r\n\r\n#### + button disabled\r\n\r\nhttps://github.com/user-attachments/assets/df540aed-b583-457d-a9f4-0093a171ddaa\r\n\r\nAlso adding notes should be disabled when in the rule creation page, as\r\nwe do not want to generate notes for alerts that actually do not exist\r\nyet. To be consistent with the other blocks in the flyout header, we\r\nshow a `-`.\r\n\r\nhttps://github.com/user-attachments/assets/b62ecf85-ee0f-4bee-853c-ff1034b5bf25","sha":"53acbab23b29e8aac7d7fdb0dfebac690640339c","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat Hunting:Investigations","v8.16.0","backport:version","v8.17.0"],"number":199189,"url":"https://github.com/elastic/kibana/pull/199189","mergeCommit":{"message":"[Security Solution][Notes] - disable note buttons in the right panel header when in preview mode (#199189)\n\n## Summary\r\n\r\nThis PR fixes a issue where the `Add note` button and the `+` icon\r\nbutton are clickable when an alert is viewed in preview mode. Users\r\nshould not be able to perform actions here, as the action expands the\r\nflyouts and opens the left panel Notes tab, but the issue is the left\r\npanel now shows a different alert from the right panel. If the user\r\ncloses the preview panel, they now see a different alerts on the left\r\nand right panels but they have no way to know this.\r\n\r\n#### Add note button disabled\r\n\r\nhttps://github.com/user-attachments/assets/20554b60-39a1-4c6d-b215-e502b5b24dbd\r\n\r\n#### + button disabled\r\n\r\nhttps://github.com/user-attachments/assets/df540aed-b583-457d-a9f4-0093a171ddaa\r\n\r\nAlso adding notes should be disabled when in the rule creation page, as\r\nwe do not want to generate notes for alerts that actually do not exist\r\nyet. To be consistent with the other blocks in the flyout header, we\r\nshow a `-`.\r\n\r\nhttps://github.com/user-attachments/assets/b62ecf85-ee0f-4bee-853c-ff1034b5bf25","sha":"53acbab23b29e8aac7d7fdb0dfebac690640339c"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199189","number":199189,"mergeCommit":{"message":"[Security Solution][Notes] - disable note buttons in the right panel header when in preview mode (#199189)\n\n## Summary\r\n\r\nThis PR fixes a issue where the `Add note` button and the `+` icon\r\nbutton are clickable when an alert is viewed in preview mode. Users\r\nshould not be able to perform actions here, as the action expands the\r\nflyouts and opens the left panel Notes tab, but the issue is the left\r\npanel now shows a different alert from the right panel. If the user\r\ncloses the preview panel, they now see a different alerts on the left\r\nand right panels but they have no way to know this.\r\n\r\n#### Add note button disabled\r\n\r\nhttps://github.com/user-attachments/assets/20554b60-39a1-4c6d-b215-e502b5b24dbd\r\n\r\n#### + button disabled\r\n\r\nhttps://github.com/user-attachments/assets/df540aed-b583-457d-a9f4-0093a171ddaa\r\n\r\nAlso adding notes should be disabled when in the rule creation page, as\r\nwe do not want to generate notes for alerts that actually do not exist\r\nyet. To be consistent with the other blocks in the flyout header, we\r\nshow a `-`.\r\n\r\nhttps://github.com/user-attachments/assets/b62ecf85-ee0f-4bee-853c-ff1034b5bf25","sha":"53acbab23b29e8aac7d7fdb0dfebac690640339c"}},{"branch":"8.16","label":"v8.16.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/199231","number":199231,"state":"OPEN"},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
- Loading branch information