Skip to content
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

Eui Refresh #204007

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

Eui Refresh #204007

wants to merge 33 commits into from

Conversation

CAWilson94
Copy link
Contributor

@CAWilson94 CAWilson94 commented Dec 12, 2024

Summary

This PR covers required updates for EUI refresh.
The updates should only cover Entity Owned components.

This PR does not include severity color changes - this will be added in a follow-up once tokens are decided. @angorayc is working on a shared security solution colors hook, which will replace the EA-specific hook (previous criticality colors hook has been reverted for this reason).


Testing

Running Kibana with the Borealis theme
In order to run Kibana with Borealis, you'll need to do the following:

Set the following in kibana.dev.yml: uiSettings.experimental.themeSwitcherEnabled: true

Run Kibana with the following environment variable set:
KBN_OPTIMIZER_THEMES="borealislight,borealisdark,v8light,v8dark" yarn start

This will expose a toggle under Stack Management > Advanced Settings > Theme version, which you can use to toggle between Amsterdam and Borealis.


More details about each section #199715
Main change for color utility function - file_picker_step.tsx which shows on Entity Risk Score Page

Borealis Updates Light & Dark Theme

Screenshots

Quite a few here:
https://docs.google.com/document/d/1tKPoqCPbccX94cqgPyHKBdr9_K3kmqveQGkcGo_Q8k4/edit?usp=sharing

Quick Walkthrough Video

video1950532074.mp4

@CAWilson94 CAWilson94 self-assigned this Dec 12, 2024
low_impact: '#54B399',
unassigned: euiLightVars.euiColorMediumShade,
};
import { useCriticalityLevelColors } from '../../hooks/use_criticality_level_colors';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this to a hook in the hooks folder. Noticed some hooks in asset_criticality aren’t in hooks; both locations make sense, but this follows a better convention.

import { RiskSeverity } from '../../../../../common/search_strategy';
import { RiskScoreLevel } from '.';
import { SEVERITY_COLOR } from '../../../../overview/components/detection_response/utils';
import { RISK_SEVERITY_COLOUR } from '../../../common/utils';
Copy link
Contributor Author

@CAWilson94 CAWilson94 Dec 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated RISK_SEVERITY_COLOUR to match updates previously made to index from SEVERITY --> RISK_SEVERITY

</RiskBadge>
));
}> = React.memo(({ severity, hideBackgroundColor = false, 'data-test-subj': dataTestSubj }) => {
const { euiTheme } = useEuiTheme();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the change

const { euiTheme } = useEuiTheme();
return (
<RiskBadge
color={euiTheme.colors.danger}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

along with this change, the others I think just formatter

@CAWilson94 CAWilson94 added ci:project-deploy-security Create a Security Serverless Project Team:Cloud Security Cloud Security team related Team:Entity Analytics Security Entity Analytics Team EUI Visual Refresh v9.0.0 backport:skip This commit does not require backporting labels Dec 16, 2024
@CAWilson94 CAWilson94 marked this pull request as ready for review December 16, 2024 09:59
@CAWilson94 CAWilson94 requested a review from a team as a code owner December 16, 2024 09:59
@CAWilson94 CAWilson94 requested a review from machadoum December 16, 2024 09:59
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-entity-analytics (Team:Entity Analytics)

@CAWilson94 CAWilson94 added the release_note:feature Makes this part of the condensed release notes label Dec 16, 2024
@CAWilson94 CAWilson94 requested a review from a team as a code owner December 16, 2024 17:05
@CAWilson94 CAWilson94 requested a review from codearos December 16, 2024 17:22
Copy link
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the Threat Hunting Investigations team

@CAWilson94 CAWilson94 requested a review from angorayc January 8, 2025 07:57
@elasticmachine
Copy link
Contributor

elasticmachine commented Jan 8, 2025

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
securitySolution 22.2MB 22.2MB +2.7KB

History

cc @CAWilson94

@@ -27,6 +27,14 @@ jest.mock('uuid', () => ({
v4: jest.fn().mockReturnValue('2cc5663b-f062-43f8-8688-fc8166c2ca8e'),
}));

const riskColors = {
Copy link
Contributor

@mgadewoll mgadewoll Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: To clarify - Will these also be updated with the shared colors? As these are currently not accounting for themes 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:project-deploy-security Create a Security Serverless Project EUI Visual Refresh release_note:feature Makes this part of the condensed release notes Team:Cloud Security Cloud Security team related Team:Entity Analytics Security Entity Analytics Team v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants