-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
base: main
Are you sure you want to change the base?
Eui Refresh #204007
Conversation
…risk severity updated to use RISK_SEVERITY_COLOUR instead of SEVERITY_COLOUR
low_impact: '#54B399', | ||
unassigned: euiLightVars.euiColorMediumShade, | ||
}; | ||
import { useCriticalityLevelColors } from '../../hooks/use_criticality_level_colors'; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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
…n in place, to change references WiP
…uiTheme hook for colors
… - WiP consider moving back to static mapping if eui can allow
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
Pinging @elastic/security-entity-analytics (Team:Entity Analytics) |
…regardless of availability within euicolorVis library
… themes; ordering on criticality colors matching
x-pack/plugins/security_solution/public/entity_analytics/common/utils.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/entity_analytics/common/utils.ts
Outdated
Show resolved
Hide resolved
...c/entity_analytics/components/asset_criticality_file_uploader/components/validation_step.tsx
Outdated
Show resolved
Hide resolved
...ns/security_solution/public/entity_analytics/components/risk_summary_flyout/risk_summary.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/entity_analytics/components/severity/common/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/entity_analytics/components/severity/common/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/entity_analytics/common/utils.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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
...rity/plugins/security_solution/public/entity_analytics/hooks/use_criticality_level_colors.ts
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @CAWilson94 |
@@ -27,6 +27,14 @@ jest.mock('uuid', () => ({ | |||
v4: jest.fn().mockReturnValue('2cc5663b-f062-43f8-8688-fc8166c2ca8e'), | |||
})); | |||
|
|||
const riskColors = { |
There was a problem hiding this comment.
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 😅
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