From 3fbca710166bc435d3c957088e253044a1588e9e Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 16 Nov 2016 18:02:24 +0100 Subject: SONAR-8382 apply feedback --- .../main/js/apps/about/components/AboutIssues.js | 34 ++++++++++++++-------- .../main/js/apps/about/components/AboutProjects.js | 3 +- .../main/js/apps/about/components/AboutScanners.js | 7 +++-- server/sonar-web/src/main/js/apps/about/styles.css | 10 +++++-- 4 files changed, 34 insertions(+), 20 deletions(-) (limited to 'server/sonar-web/src/main/js') diff --git a/server/sonar-web/src/main/js/apps/about/components/AboutIssues.js b/server/sonar-web/src/main/js/apps/about/components/AboutIssues.js index d097d4bca08..f762de45f26 100644 --- a/server/sonar-web/src/main/js/apps/about/components/AboutIssues.js +++ b/server/sonar-web/src/main/js/apps/about/components/AboutIssues.js @@ -29,38 +29,48 @@ export default class AboutIssues extends React.Component { }; render () { + const displayNumbers = this.props.bugs > 0 || this.props.vulnerabilities > 0 || this.props.codeSmells > 0; + return (

Track incoming issues using the SonarQube Quality Model

- - {formatMeasure(this.props.bugs, 'SHORT_INT')} - + {displayNumbers && ( + + {formatMeasure(this.props.bugs, 'SHORT_INT')} + + )}

Bugs

- Bugs track code that is demonstrably wrong or highly likely to be yielding unexpected behavior. + Bugs track code that is demonstrably wrong or highly likely to yield unexpected behavior.

- - {formatMeasure(this.props.vulnerabilities, 'SHORT_INT')} - + {displayNumbers && ( + + {formatMeasure(this.props.vulnerabilities, 'SHORT_INT')} + + )}

Vulnerabilities

- Vulnerabilities are raised on code that potentially vulnerable to exploitation by hackers. + Vulnerabilities are raised on code that is potentially vulnerable to exploitation by hackers.

- - {formatMeasure(this.props.codeSmells, 'SHORT_INT')} - + {displayNumbers && ( + + {formatMeasure(this.props.codeSmells, 'SHORT_INT')} + + )}

Code Smells

diff --git a/server/sonar-web/src/main/js/apps/about/components/AboutProjects.js b/server/sonar-web/src/main/js/apps/about/components/AboutProjects.js index d79982b5c8a..af7852bb772 100644 --- a/server/sonar-web/src/main/js/apps/about/components/AboutProjects.js +++ b/server/sonar-web/src/main/js/apps/about/components/AboutProjects.js @@ -18,7 +18,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; -import { Link } from 'react-router'; import { formatMeasure } from '../../../helpers/measures'; export default class AboutProjects extends React.Component { @@ -33,7 +32,7 @@ export default class AboutProjects extends React.Component { return (

{count > 0 ? ( - {label} + {label} ) : 'Put your projects'} {' '} under continuous
code quality management diff --git a/server/sonar-web/src/main/js/apps/about/components/AboutScanners.js b/server/sonar-web/src/main/js/apps/about/components/AboutScanners.js index 2ae938b32ca..efc5d092a21 100644 --- a/server/sonar-web/src/main/js/apps/about/components/AboutScanners.js +++ b/server/sonar-web/src/main/js/apps/about/components/AboutScanners.js @@ -41,7 +41,8 @@ export default class AboutScanners extends React.Component { alt="SonarQube Scanner"/>

- This Java-based command-line tool can analyze any languages SonarQube supports. + The SonarQube Scanner is a Java-based command-line tool that can analyze any languages SonarQube + supports.

- Built in collaboration with Microsoft this is the recommended way to launch a SonarQube analysis on - MSBuild projects and solutions. + Built in collaboration with Microsoft, the SonarQube Scanner for MSBuild is the recommended way to + launch a SonarQube analysis on MSBuild projects and solutions.