+2016-02-18 Ryosuke Niwa <rniwa@webkit.org>
+
+ Statistically significant A/B testing results should be color coded in details view
+ https://bugs.webkit.org/show_bug.cgi?id=154414
+
+ Reviewed by Chris Dumez.
+
+ Color code the statistically significant comparisions in TestGroupResultsTable as done in the analysis
+ results viewer.
+
+ * public/v3/components/customizable-test-group-form.js:
+ (CustomizableTestGroupForm.cssTemplate): Build fix after r196768.
+ * public/v3/components/test-group-results-table.js:
+ (TestGroupResultsTable.prototype.buildRowGroups): Add the status as a class name.
+ (TestGroupResultsTable.cssTemplate): Added styles to color-code statistically significant results.
+
2016-02-17 Ryosuke Niwa <rniwa@webkit.org>
v3 UI should allow custom revisions for A/B testing
continue;
var row = new ResultsTableRow(`${startConfig} to ${endConfig}`, null);
- row.setLabelForWholeRow(result.fullLabel);
+ var element = ComponentBase.createElement;
+ row.setLabelForWholeRow(element('span', {class: 'results-label ' + result.status}, result.fullLabel));
comparisonRows.push(row);
}
}
return groups;
}
+
+ static cssTemplate()
+ {
+ return super.cssTemplate() + `
+ .results-label {
+ padding: 0.1rem;
+ width: 100%;
+ height: 100%;
+ }
+
+ .results-label .failed {
+ color: rgb(128, 51, 128);
+ }
+ .results-label .unchanged {
+ color: rgb(128, 128, 128);
+ }
+ .results-label.worse {
+ color: rgb(255, 102, 102);
+ font-weight: bold;
+ }
+ .results-label.better {
+ color: rgb(102, 102, 255);
+ font-weight: bold;
+ }
+ `;
+ }
}
ComponentBase.defineElement('test-group-results-table', TestGroupResultsTable);