forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][SIEM migrations] Onboarding UI improvements (elas…
…tic#204320) ## Summary Part of: elastic/security-team#10667 #### Improvements - Implementation of the Onboarding card to create migrations using the flyout - Migration complete summary panel implemented - Migration ready panel improved to detect missing resources - Migration processing improved - Migration missing resources panel implemented - All migration panels and refactored to be reusable by translation table using the - `RuleMigrationDataInputWrapper` implemented to reuse the Flyout from the translation table - Request poll interval increased from 5 to 10 seconds due to event loop usage. > [!NOTE] > This feature needs `siemMigrationsEnabled` experimental flag enabled to work. ## Screenshots Lookups input ![Lookups](https://github.com/user-attachments/assets/73f91e10-7252-44d1-ab0d-89880c78a2b3) Translation "complete" panel ![Translation summary](https://github.com/user-attachments/assets/6fbb451d-c7b3-4a23-a2df-083c91948cbd) Translation "created" panel (w/ and w/o missing macros) ![Ready panels](https://github.com/user-attachments/assets/f8334af2-ccc1-473c-8548-772a9d656aba) Translation processing (preparing) ![preparing panel](https://github.com/user-attachments/assets/0156caba-c6c9-43c1-881a-8bf631f3a8ab) Translation processing (translating) ![translating panel](https://github.com/user-attachments/assets/db523e4b-4858-482f-bfe9-1e36f715fa20) --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
523372f
commit 303eee8
Showing
68 changed files
with
1,852 additions
and
640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...solutions/security/plugins/security_solution/public/common/components/panel_text/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export { PanelText, type PanelTextProps } from './panel_text'; |
35 changes: 35 additions & 0 deletions
35
...ons/security/plugins/security_solution/public/common/components/panel_text/panel_text.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
import React, { type PropsWithChildren } from 'react'; | ||
import { css, type CSSInterpolation } from '@emotion/css'; | ||
import { EuiText, useEuiTheme, COLOR_MODES_STANDARD, type EuiTextProps } from '@elastic/eui'; | ||
|
||
export interface PanelTextProps extends PropsWithChildren<EuiTextProps> { | ||
subdued?: true; | ||
semiBold?: true; | ||
} | ||
export const PanelText = React.memo<PanelTextProps>(({ children, subdued, semiBold, ...props }) => { | ||
const { euiTheme, colorMode } = useEuiTheme(); | ||
const isDarkMode = colorMode === COLOR_MODES_STANDARD.dark; | ||
|
||
let color; | ||
if (subdued && !isDarkMode) { | ||
color = 'subdued'; | ||
} | ||
|
||
const style: CSSInterpolation = {}; | ||
if (semiBold) { | ||
style.fontWeight = euiTheme.font.weight.semiBold; | ||
} | ||
|
||
return ( | ||
<EuiText {...props} color={color} className={css(style)}> | ||
{children} | ||
</EuiText> | ||
); | ||
}); | ||
PanelText.displayName = 'PanelText'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
...c/onboarding/components/onboarding_body/cards/siem_migrations/start_migration/context.tsx
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
...onboarding_body/cards/siem_migrations/start_migration/panels/migration_progress_panel.tsx
This file was deleted.
Oops, something went wrong.
68 changes: 0 additions & 68 deletions
68
...ts/onboarding_body/cards/siem_migrations/start_migration/panels/migration_ready_panel.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.