]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11889 Add new hotspots measure in project measures page
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Tue, 9 Apr 2019 11:37:34 +0000 (13:37 +0200)
committerSonarTech <sonartech@sonarsource.com>
Tue, 23 Apr 2019 18:21:11 +0000 (20:21 +0200)
* Update bugs and security hotspots icons (with transparent center)

server/sonar-web/src/main/js/apps/component-measures/config/domains.ts
server/sonar-web/src/main/js/components/icons-components/BugIcon.tsx
server/sonar-web/src/main/js/components/icons-components/SecurityHotspotIcon.tsx
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index c0bed11bb9d21957205fa17257b85ce904e2db37..b339f73902ca7f1a4bdfc3dfb8ba916575b9ba8b 100644 (file)
@@ -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'
     ]
   },
 
index 63dc6ccbd4305f63f99bea5aeab81a8c257c0773..b57d0c3d67e675f8a0f63a3dc627f48aa7a5e28a 100644 (file)
@@ -24,7 +24,8 @@ export default function BugIcon({ className, fill = 'currentColor', size }: Icon
   return (
     <Icon className={className} size={size}>
       <path
-        d="M11 9h1.3l.5.8.8-.5-.8-1.3H11v-.3l2-2.3V3h-1v2l-1 1.2V5c-.1-.8-.7-1.5-1.4-1.9L11 1.8l-.7-.7-1.8 1.6-1.8-1.6-.7.7 1.5 1.3C6.7 3.5 6.1 4.2 6 5v1.1L5 5V3H4v2.3l2 2.3V8H4.2l-.7 1.2.8.5.4-.7H6v.3l-2 1.9V14h1v-2.4l1-1C6 12 7.1 13 8.4 13h.8c.7 0 1.4-.3 1.8-.9.3-.4.3-.9.2-1.4l.9.9V14h1v-2.8l-2-1.9V9zm-2 2H8V6h1v5z"
+        d="M8.01 10.9885h1v-5h-1v5zm3-2h1.265l.46.771.775-.543-.733-1.228H11.01v-.316l2-2.343v-2.341h-1v1.972l-1 1.172v-1.144h-.029c-.101-.826-.658-1.52-1.436-1.853l1.472-1.349-.676-.736-1.831 1.678-1.831-1.678-.676.736 1.472 1.349c-.778.333-1.335 1.027-1.436 1.853H6.01v1.144l-1-1.172v-1.972h-1v2.341l2 2.343v.316H4.243l-.733 1.228.775.543.46-.771H6.01v.287l-2 1.912v2.801h1v-2.374l1.003-.959c.018 1.289 1.07 2.333 2.363 2.333h.768c.741 0 1.418-.347 1.767-.907.258-.411.304-.887.16-1.365l.939.898v2.374h1v-2.801l-2-1.912v-.287z"
+        fillRule="evenodd"
         style={{ fill }}
       />
     </Icon>
index a35e2e5717620613cce88f148351d3a223136789..a2664628f91c7e72c6c97195e14479020e56882d 100644 (file)
@@ -23,19 +23,16 @@ import Icon, { IconProps } from './Icon';
 export default function SecurityHotspotIcon({ className, fill = 'currentColor', size }: IconProps) {
   return (
     <Icon className={className} size={size}>
-      <g style={{ fill }}>
+      <g fill="none" fillRule="evenodd">
         <path
-          d="M10.238 2.416c-0.432-0.895-1.259-1.504-2.202-1.504-1.386 0-2.521 1.318-2.521 2.927v5.481"
-          fill="none"
+          d="M10.2764 2.3205c-.437-.905-1.273-1.521-2.227-1.521-1.402 0-2.549 1.333-2.549 2.959v5.541"
           stroke={fill}
           strokeLinecap="round"
-          strokeWidth="1.1429"
+          strokeWidth="1.14"
         />
-        <path d="M8.537 10.372v1.199h-1.099v-1.199c-0.638-0.228-1.099-0.832-1.099-1.546 0-0.909 0.739-1.649 1.648-1.649s1.649 0.74 1.649 1.649c0 0.715-0.461 1.32-1.099 1.546zM10.734 4.979h-5.494c-1.21 0-2.199 0.989-2.199 2.197v4.395c0 1.21 0.989 2.199 2.199 2.199h5.494c1.209 0 2.197-0.989 2.197-2.199v-4.395c0-1.209-0.989-2.197-2.197-2.197z" />
-        <path d="M4.030 6.352h6.923v6.923h-6.923z" />
         <path
-          d="M7.504 10.283c0-0.423 0.048-0.757 0.144-1.002s0.251-0.457 0.465-0.637c0.215-0.18 0.377-0.344 0.489-0.493s0.167-0.313 0.167-0.493c0-0.438-0.189-0.656-0.565-0.656-0.174 0-0.314 0.064-0.421 0.191s-0.164 0.3-0.17 0.518h-1.469c0.006-0.58 0.189-1.031 0.548-1.354s0.864-0.485 1.513-0.485c0.646 0 1.147 0.149 1.501 0.447s0.532 0.723 0.532 1.274c0 0.241-0.048 0.459-0.144 0.656s-0.249 0.398-0.46 0.604l-0.5 0.465c-0.142 0.136-0.241 0.276-0.296 0.42s-0.086 0.325-0.091 0.545h-1.243zM7.326 11.604c0-0.215 0.078-0.39 0.233-0.528s0.349-0.207 0.58-0.207c0.232 0 0.425 0.068 0.58 0.207s0.233 0.313 0.233 0.528-0.078 0.39-0.233 0.528c-0.155 0.138-0.349 0.207-0.58 0.207s-0.425-0.068-0.58-0.207c-0.155-0.138-0.233-0.313-0.233-0.528z"
-          fill="#fff"
+          d="M5.2227 5.0215h5.555c1.222 0 2.222 1 2.222 2.222v4.444c0 1.223-1 2.223-2.222 2.223h-5.555c-1.223 0-2.223-1-2.223-2.223v-4.444c0-1.222 1-2.222 2.223-2.222zm2.15279 5.73895h1.25683c.00586-.22266.03663-.4065.09229-.55151.05566-.14502.15527-.28638.29883-.42408l.50537-.47021c.21387-.20801.36914-.41162.46582-.61084.09668-.19922.14502-.42041.14502-.66358 0-.55664-.17944-.98583-.53833-1.2876C9.24243 6.45089 8.73633 6.3 8.083 6.3c-.65626 0-1.16602.16333-1.5293.48999-.36328.32666-.54785.78296-.55371 1.3689h1.48535c.00586-.21973.06299-.39405.17139-.52295.1084-.1289.25049-.19336.42627-.19336.38086 0 .57129.22119.57129.66357 0 .18164-.0564.3479-.1692.49878-.11279.15088-.27758.31714-.49438.49878-.2168.18164-.37353.39624-.47021.6438-.09668.24756-.14502.5852-.14502 1.01294zm-.18018 1.33594c0 .2168.07837.39477.23511.53393.15674.13916.3523.20874.58667.20874.23438 0 .42993-.06958.58667-.20874.15674-.13916.2351-.31714.2351-.53393 0-.2168-.07836-.39478-.2351-.53394-.15674-.13916-.3523-.20874-.58667-.20874-.23438 0-.42993.06958-.58667.20874-.15674.13916-.2351.31714-.2351.53394z"
+          style={{ fill }}
         />
       </g>
     </Icon>
index b0443129738d92ecd748bc506b243d3c7932309e..b074a02e6ee8c4ed9a1c7ac6443549732ba4d6b6 100644 (file)
@@ -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