-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Prebuilt rules diffing style adjustments #173187
Conversation
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
54e2bdc
to
c99d64a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just left one nit, I think this looks good for the most part. There are a lot of "magic numbers" but I'm not sure we can avoid that when modifying third party components to fit our need. Designs look good in use too, tested with every field type.
...tion/public/detection_engine/rule_management/components/rule_details/json_diff/diff_view.tsx
Outdated
Show resolved
Hide resolved
c99d64a
to
9b18fd2
Compare
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: cc @nikitaindik |
…#173187) **Resolves: elastic#173264 **Addresses: elastic#169160 ## Summary Tweaks diff styling so that it's more readable in both light and dark modes. --- #### Light mode <img width="1178" alt="Schermafbeelding 2023-12-13 om 17 37 07" src="https://github.com/elastic/kibana/assets/15949146/fe8620c7-407a-4355-8863-4a5a8e1425ea"> #### Dark mode <img width="1174" alt="Schermafbeelding 2023-12-13 om 17 41 03" src="https://github.com/elastic/kibana/assets/15949146/a8df3b88-a482-455f-91d3-5e08f1381b8c"> (cherry picked from commit 37af741)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…173187) (#173373) # Backport This will backport the following commits from `main` to `8.12`: - [[Security Solution] Prebuilt rules diffing style adjustments (#173187)](#173187) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Nikita Indik","email":"nikita.indik@elastic.co"},"sourceCommit":{"committedDate":"2023-12-14T12:09:16Z","message":"[Security Solution] Prebuilt rules diffing style adjustments (#173187)\n\n**Resolves: https://github.com/elastic/kibana/issues/173264**\r\n**Addresses: https://github.com/elastic/kibana/issues/169160**\r\n\r\n## Summary\r\nTweaks diff styling so that it's more readable in both light and dark\r\nmodes.\r\n\r\n---\r\n\r\n#### Light mode\r\n<img width=\"1178\" alt=\"Schermafbeelding 2023-12-13 om 17 37 07\"\r\nsrc=\"https://github.com/elastic/kibana/assets/15949146/fe8620c7-407a-4355-8863-4a5a8e1425ea\">\r\n\r\n\r\n#### Dark mode\r\n<img width=\"1174\" alt=\"Schermafbeelding 2023-12-13 om 17 41 03\"\r\nsrc=\"https://github.com/elastic/kibana/assets/15949146/a8df3b88-a482-455f-91d3-5e08f1381b8c\">","sha":"37af741c6e03afe9dc877600fe47960b5bac8f50","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["enhancement","release_note:skip","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","ci:cloud-deploy","v8.12.0","v8.13.0"],"number":173187,"url":"https://github.com/elastic/kibana/pull/173187","mergeCommit":{"message":"[Security Solution] Prebuilt rules diffing style adjustments (#173187)\n\n**Resolves: https://github.com/elastic/kibana/issues/173264**\r\n**Addresses: https://github.com/elastic/kibana/issues/169160**\r\n\r\n## Summary\r\nTweaks diff styling so that it's more readable in both light and dark\r\nmodes.\r\n\r\n---\r\n\r\n#### Light mode\r\n<img width=\"1178\" alt=\"Schermafbeelding 2023-12-13 om 17 37 07\"\r\nsrc=\"https://github.com/elastic/kibana/assets/15949146/fe8620c7-407a-4355-8863-4a5a8e1425ea\">\r\n\r\n\r\n#### Dark mode\r\n<img width=\"1174\" alt=\"Schermafbeelding 2023-12-13 om 17 41 03\"\r\nsrc=\"https://github.com/elastic/kibana/assets/15949146/a8df3b88-a482-455f-91d3-5e08f1381b8c\">","sha":"37af741c6e03afe9dc877600fe47960b5bac8f50"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173187","number":173187,"mergeCommit":{"message":"[Security Solution] Prebuilt rules diffing style adjustments (#173187)\n\n**Resolves: https://github.com/elastic/kibana/issues/173264**\r\n**Addresses: https://github.com/elastic/kibana/issues/169160**\r\n\r\n## Summary\r\nTweaks diff styling so that it's more readable in both light and dark\r\nmodes.\r\n\r\n---\r\n\r\n#### Light mode\r\n<img width=\"1178\" alt=\"Schermafbeelding 2023-12-13 om 17 37 07\"\r\nsrc=\"https://github.com/elastic/kibana/assets/15949146/fe8620c7-407a-4355-8863-4a5a8e1425ea\">\r\n\r\n\r\n#### Dark mode\r\n<img width=\"1174\" alt=\"Schermafbeelding 2023-12-13 om 17 41 03\"\r\nsrc=\"https://github.com/elastic/kibana/assets/15949146/a8df3b88-a482-455f-91d3-5e08f1381b8c\">","sha":"37af741c6e03afe9dc877600fe47960b5bac8f50"}}]}] BACKPORT--> Co-authored-by: Nikita Indik <nikita.indik@elastic.co>
Resolves: #173264
Addresses: #169160
Summary
Tweaks diff styling so that it's more readable in both light and dark modes.
Light mode
Dark mode