elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.65k stars 8.23k forks source link

[Security Solution] Move alert renderer to the packages #145667

Open YulNaumenko opened 2 years ago

YulNaumenko commented 2 years ago

Related to #144944 Due to the Kibana components architecture guidelines, ability to reuse ECS renderers in the Kibana plugins (triggers_actions_ui, observability, discover) and to reduce the bundle size of the security_solution asynchronous chunks we are moving existing renderers to packages. The goal of the current issue is to migrate alert renderer https://github.com/elastic/kibana/blob/main/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/alert_renderer/index.tsx

As an example to follow ExitFullScreenButton: Component and its Props Defines appearance, provides event handlers. Container and its Props Utilizes services, floats button in Kibana. Services and Provider and Hook Hook throws error if Context is missing. Not relying on Kibana contract types**. Kibana Dependencies and Provider Destructures, composes dependencies. Jest Mock and Storybook Mock and Stories

elasticmachine commented 2 years ago

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