From: Grégoire Aubert Date: Tue, 9 Apr 2019 11:37:34 +0000 (+0200) Subject: SONAR-11889 Add new hotspots measure in project measures page X-Git-Tag: 7.8~354 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c4b15f098e3eca2867d9541aa734ebefc343afe9;p=sonarqube.git SONAR-11889 Add new hotspots measure in project measures page * Update bugs and security hotspots icons (with transparent center) --- diff --git a/server/sonar-web/src/main/js/apps/component-measures/config/domains.ts b/server/sonar-web/src/main/js/apps/component-measures/config/domains.ts index c0bed11bb9d..b339f73902c 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/config/domains.ts +++ b/server/sonar-web/src/main/js/apps/component-measures/config/domains.ts @@ -44,11 +44,13 @@ export const domains: Domains = { 'new_vulnerabilities', 'new_security_rating', 'new_security_remediation_effort', + 'new_security_hotspots', 'overall_category', 'vulnerabilities', 'security_rating', - 'security_remediation_effort' + 'security_remediation_effort', + 'security_hotspots' ] }, diff --git a/server/sonar-web/src/main/js/components/icons-components/BugIcon.tsx b/server/sonar-web/src/main/js/components/icons-components/BugIcon.tsx index 63dc6ccbd43..b57d0c3d67e 100644 --- a/server/sonar-web/src/main/js/components/icons-components/BugIcon.tsx +++ b/server/sonar-web/src/main/js/components/icons-components/BugIcon.tsx @@ -24,7 +24,8 @@ export default function BugIcon({ className, fill = 'currentColor', size }: Icon return ( diff --git a/server/sonar-web/src/main/js/components/icons-components/SecurityHotspotIcon.tsx b/server/sonar-web/src/main/js/components/icons-components/SecurityHotspotIcon.tsx index a35e2e57176..a2664628f91 100644 --- a/server/sonar-web/src/main/js/components/icons-components/SecurityHotspotIcon.tsx +++ b/server/sonar-web/src/main/js/components/icons-components/SecurityHotspotIcon.tsx @@ -23,19 +23,16 @@ import Icon, { IconProps } from './Icon'; export default function SecurityHotspotIcon({ className, fill = 'currentColor', size }: IconProps) { return ( - + - - diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index b0443129738..b074a02e6ee 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -1875,6 +1875,7 @@ metric.new_reliability_remediation_effort.name=Reliability Remediation Effort on metric.new_reliability_remediation_effort.extra_short_name=Remediation Effort metric.new_security_hotspots.description=New Security Hotspots metric.new_security_hotspots.name=New Security Hotspots +metric.new_security_hotspots.short_name=Security Hotspots metric.new_security_rating.description=Security rating on new code metric.new_security_rating.name=Security Rating on New Code metric.new_security_rating.extra_short_name=Rating