if (!this.props.leakPeriodDate) {
return null;
}
- return <ul className="overview-legend list-inline">
- <li><span className="overview-legend-nutshell"/> Nutshell</li>
- <li><span className="overview-legend-leak"/> <DomainLeakTitle label={this.props.leakPeriodLabel}
- date={this.props.leakPeriodDate}/></li>
- </ul>;
+ return <div className="overview-legend">
+ <span className="overview-legend-leak"/>
+ <DomainLeakTitle label={this.props.leakPeriodLabel} date={this.props.leakPeriodDate}/>
+ </div>;
}
});
.range(CHART_COLORS_RANGE_PERCENT);
return <div className="overview-detailed-page">
<div className="overview-domain-charts">
- <div className="overview-domain">
+ <div className="overview-domain overview-domain-fixed-width">
<div className="overview-domain-header">
<div className="overview-title">Tests Overview</div>
{this.renderLegend()}
.range(CHART_COLORS_RANGE_PERCENT);
return <div className="overview-detailed-page">
<div className="overview-domain-charts">
- <div className="overview-domain">
+ <div className="overview-domain overview-domain-fixed-width">
<div className="overview-domain-header">
<div className="overview-title">Duplications Overview</div>
{this.renderLegend()}
</div>
<DomainBubbleChart {...this.props}
xMetric="ncloc"
- yMetric="duplicated_blocks"
- sizeMetrics={['duplicated_lines']}/>
+ yMetric="duplicated_lines"
+ sizeMetrics={['duplicated_blocks']}/>
</div>
<div className="overview-domain-charts">
}
return <Domain>
- <DomainHeader title="Tests" linkTo="/tests"/>
+ <DomainHeader title="Coverage" linkTo="/tests"/>
<DomainPanel domain="coverage">
<DomainNutshell>
];
const HISTORY_METRICS_LIST = [
- 'violations',
+ 'sqale_index',
'overall_coverage',
'duplicated_lines_density',
'ncloc'
let props = _.extend({}, this.props, this.state);
return <div className="overview-domains">
- <GeneralIssues {...props} history={this.state.history['violations']}/>
+ <GeneralIssues {...props} history={this.state.history['sqale_index']}/>
<GeneralCoverage {...props} history={this.state.history['overall_coverage']}/>
<GeneralDuplications {...props} history={this.state.history['duplicated_lines_density']}/>
<GeneralSize {...props} history={this.state.history['ncloc']}/>
margin: 30px @side-padding;
}
+.overview-domain-fixed-width {
+ max-width: 560px;
+}
+
.overview-domain-header {
display: flex;
align-items: baseline;
padding: 0 10px;
}
-.overview-legend-nutshell,
.overview-legend-leak {
display: inline-block;
vertical-align: middle;
margin-right: 8px;
border: 1px solid @barBorderColor;
box-sizing: border-box;
-}
-
-.overview-legend-nutshell {
- background-color: #fff;
-}
-
-.overview-legend-leak {
background-color: #fffae7;
}
& > .overview-domain-chart {
flex: 1;
}
-
- & > .overview-domain {
- max-width: 560px;
- }
}
.overview-domain-chart {