-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] Onboarding redesign (#192247)
## Summary Issue: #189487 This PR is the final implementation of the Onboarding page redesign. It has been developed in collaboration with @angorayc and @agusruidiazgd, using this branch as a feature branch. It already includes 2 smaller PRs that have already been reviewed and approved by the @elastic/security-threat-hunting-explore team: - semd#8 - semd#9 ### Changes - Onboarding page architecture refactor ([issue](#174766)) - Fixes #183765 (from [this Meta issue](#183760)) --- - The progress bar has been removed <img width="903" alt="progress bar" src="https://github.com/user-attachments/assets/f16f3b6d-609f-4178-b83e-3b2106ba56ea"> --- - Card styles updated: - Icons updated to custom SVGs to have the correct color - Icon with circle background - Card internal content border removed | Old | New | | - | - | |<img width="1172" alt="Old styles" src="https://github.com/user-attachments/assets/5a75cd84-a30d-4621-88e3-17d837165016">|<img width="1172" alt="New styles" src="https://github.com/user-attachments/assets/8059bcbc-2f3d-4c7e-ba4f-041a58b51372">| --- - Completed card styles updated: - Icon with green circle background | Old | New | | - | - | |<img width="1172" alt="Old styles complete" src="https://github.com/user-attachments/assets/3258c7be-4ffe-4d25-9cdb-d4fce66ce451">|<img width="1172" alt="New styles complete" src="https://github.com/user-attachments/assets/7dac6ec0-d78d-4881-ae84-3b46562c6d7d">| --- - Improved "Add data with integrations" card | Old | New | | - | - | |<img width="1174" alt="old integrations card" src="https://github.com/user-attachments/assets/3c65c4f5-004b-4619-aa92-26ec0656a8e5">|<img width="1174" alt="new integrations card" src="https://github.com/user-attachments/assets/634e5249-b169-4c93-865e-b82453db90bf">| --- - New "Configure AI assistant" card in a new "Discover Elastic AI" group https://github.com/user-attachments/assets/39bd0dd4-88ba-47df-a77b-6b9b2a185cef --------- Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Angela Chuang <[email protected]> Co-authored-by: Agustina Nahir Ruidiaz <[email protected]>
- Loading branch information
1 parent
7f24e38
commit d39c75a
Showing
272 changed files
with
5,949 additions
and
8,476 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
55 changes: 0 additions & 55 deletions
55
x-pack/plugins/security_solution/public/app/components/onboarding/onboarding_page_service.ts
This file was deleted.
Oops, something went wrong.
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
30 changes: 30 additions & 0 deletions
30
...y_solution/public/common/components/centered_loading_spinner/centered_loading_spinner.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,30 @@ | ||
/* | ||
* 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, { useMemo } from 'react'; | ||
import { EuiLoadingSpinner, useEuiTheme, type EuiLoadingSpinnerProps } from '@elastic/eui'; | ||
|
||
interface CenteredLoadingSpinnerProps extends EuiLoadingSpinnerProps { | ||
topOffset?: string; | ||
} | ||
|
||
export const CenteredLoadingSpinner = React.memo<CenteredLoadingSpinnerProps>( | ||
({ topOffset, ...euiLoadingSpinnerProps }) => { | ||
const { euiTheme } = useEuiTheme(); | ||
const style = useMemo( | ||
() => ({ | ||
display: 'flex', | ||
margin: `${euiTheme.size.xl} auto`, | ||
...(topOffset && { marginTop: topOffset }), | ||
}), | ||
[topOffset, euiTheme] | ||
); | ||
|
||
return <EuiLoadingSpinner {...euiLoadingSpinnerProps} style={style} />; | ||
} | ||
); | ||
CenteredLoadingSpinner.displayName = 'CenteredLoadingSpinner'; |
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
26 changes: 0 additions & 26 deletions
26
x-pack/plugins/security_solution/public/common/components/landing_page/index.test.tsx
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
x-pack/plugins/security_solution/public/common/components/landing_page/index.tsx
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...ty_solution/public/common/components/landing_page/onboarding/__mocks__/product_switch.tsx
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
...s/security_solution/public/common/components/landing_page/onboarding/__mocks__/storage.ts
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...rity_solution/public/common/components/landing_page/onboarding/__mocks__/toggle_panel.tsx
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
x-pack/plugins/security_solution/public/common/components/landing_page/onboarding/badge.ts
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
...plugins/security_solution/public/common/components/landing_page/onboarding/badges.test.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.