Skip to content

[8.x] [Security Solution] - remove styled-components and cleanup for timeline header actions (#206694)#206830

Merged
PhilippeOberti merged 1 commit intoelastic:8.xfrom
PhilippeOberti:backport/8.x/pr-206694
Jan 15, 2025
Merged

[8.x] [Security Solution] - remove styled-components and cleanup for timeline header actions (#206694)#206830
PhilippeOberti merged 1 commit intoelastic:8.xfrom
PhilippeOberti:backport/8.x/pr-206694

Conversation

@PhilippeOberti
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…ne header actions (elastic#206694)

## Summary

Similar to [this previous
PR](elastic#206523), this PR originally
aimed at replacing the usages styled-components with @emotion/react in
the security_solution/public/common/components/header_actions folder. I
quickly realized that a lot of props and event components were actually
not used at all, so a cleanup was welcome.

Absolutely no UI or behavior logic changes should be introduced by this
PR.

This PR will impact the tables in timeline, and the markdown use in
osquery.

The biggest code cleanup are:
- removing a couple of components related to the header actions used in
timeline
- removing random unused translations, constants or helper functions

#### Timeline query, correlation and pinned tabs

![Screenshot 2025-01-14 at 5 29
49 PM](https://github.com/user-attachments/assets/8c06c0f3-c323-4dd7-96d1-14357abc551d)

![Screenshot 2025-01-14 at 5 30
05 PM](https://github.com/user-attachments/assets/7332fbe2-8744-46d5-a5e8-bd056fba0375)

![Screenshot 2025-01-14 at 5 30
27 PM](https://github.com/user-attachments/assets/86053a20-f0e4-4f0a-8bdd-0c2678194903)

### Checklist

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

# Conflicts:
#	packages/kbn-babel-preset/styled_components_files.js
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 6536 6531 -5

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 19.1MB 19.1MB -34.8KB
Unknown metric groups

ESLint disabled in files

id before after diff
securitySolution 84 83 -1

Total ESLint disabled count

id before after diff
securitySolution 658 657 -1

@PhilippeOberti PhilippeOberti merged commit 50e4c60 into elastic:8.x Jan 15, 2025
@PhilippeOberti PhilippeOberti deleted the backport/8.x/pr-206694 branch January 21, 2025 21:33
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants