From 9d55e60d626d9cc08fa5c6ba2b69161fee43e6bc Mon Sep 17 00:00:00 2001 From: Rickyanto Ang Date: Wed, 16 Oct 2024 15:45:56 +0700 Subject: [PATCH] [Cloud Security] Fix for Contextual Flyout UI bugs from Bug Hunt (#196393) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary This PR is to address the small UI enhancements for Contextual Flyouts Screenshot 2024-10-15 at 10 10 20 AM Screenshot 2024-10-15 at 10 10 52 AM List of UI updates: - Fixed Color for Misconfiguration and Vulneabilities Preview Title - Fixed Size and Font for Posture Score text in Misconfiguration Preview component and Vulnerabilities in Vulnerabilities Preview component - Fixed Size for number in Misconfiguration Preview and Vulnerabilities Preview component - Fixed Paddings for Misconfiguration and Vulnerabilities Preview component - Fixed Padding between 2 preview components - Fixed Width size for severity column (cherry picked from commit f049dc048d910293ddb880f98b155fb35ce3120f) --- .../vulnerabilities_findings_details_table.tsx | 6 +++--- .../cloud_security_posture/components/entity_insight.tsx | 4 ++-- .../misconfiguration/misconfiguration_preview.tsx | 9 ++++----- .../vulnerabilities/vulnerabilities_preview.tsx | 9 ++++----- 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/x-pack/plugins/security_solution/public/cloud_security_posture/components/csp_details/vulnerabilities_findings_details_table.tsx b/x-pack/plugins/security_solution/public/cloud_security_posture/components/csp_details/vulnerabilities_findings_details_table.tsx index d004ffe45d5dd..f3422564186ed 100644 --- a/x-pack/plugins/security_solution/public/cloud_security_posture/components/csp_details/vulnerabilities_findings_details_table.tsx +++ b/x-pack/plugins/security_solution/public/cloud_security_posture/components/csp_details/vulnerabilities_findings_details_table.tsx @@ -154,7 +154,7 @@ export const VulnerabilitiesFindingsDetailsTable = memo(({ queryName }: { queryN 'xpack.securitySolution.flyout.left.insights.vulnerability.table.ruleColumnName', { defaultMessage: 'CVSS' } ), - width: '12.5%', + width: '15%', }, { field: 'vulnerability', @@ -171,7 +171,7 @@ export const VulnerabilitiesFindingsDetailsTable = memo(({ queryName }: { queryN 'xpack.securitySolution.flyout.left.insights.vulnerability.table.ruleColumnName', { defaultMessage: 'Severity' } ), - width: '12.5%', + width: '20%', }, { field: 'vulnerability', @@ -182,7 +182,7 @@ export const VulnerabilitiesFindingsDetailsTable = memo(({ queryName }: { queryN 'xpack.securitySolution.flyout.left.insights.vulnerability.table.ruleColumnName', { defaultMessage: 'Package' } ), - width: '50%', + width: '40%', }, ]; diff --git a/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx b/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx index 7d9027c25a9e0..eee9af194ca37 100644 --- a/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx +++ b/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx @@ -64,14 +64,14 @@ export const EntityInsight = ({ insightContent.push( <> - + ); if (isVulnerabilitiesFindingForHost && hasVulnerabilitiesFindings) insightContent.push( <> - + ); return ( diff --git a/x-pack/plugins/security_solution/public/cloud_security_posture/components/misconfiguration/misconfiguration_preview.tsx b/x-pack/plugins/security_solution/public/cloud_security_posture/components/misconfiguration/misconfiguration_preview.tsx index 686ee93c260f7..0aae29395602e 100644 --- a/x-pack/plugins/security_solution/public/cloud_security_posture/components/misconfiguration/misconfiguration_preview.tsx +++ b/x-pack/plugins/security_solution/public/cloud_security_posture/components/misconfiguration/misconfiguration_preview.tsx @@ -84,12 +84,12 @@ const MisconfigurationPreviewScore = ({ -

{`${Math.round((passedFindings / (passedFindings + failedFindings)) * 100)}%`}

+

{`${Math.round((passedFindings / (passedFindings + failedFindings)) * 100)}%`}

- + ), link: hasMisconfigurationFindings ? link : undefined, }} diff --git a/x-pack/plugins/security_solution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_preview.tsx b/x-pack/plugins/security_solution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_preview.tsx index 216ca41fc0fed..2c162ba9db894 100644 --- a/x-pack/plugins/security_solution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_preview.tsx +++ b/x-pack/plugins/security_solution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_preview.tsx @@ -48,12 +48,12 @@ const VulnerabilitiesCount = ({ -

{vulnerabilitiesTotal}

+

{vulnerabilitiesTotal}

- + ), link, }}