Changeset 196787 in webkit


Ignore:
Timestamp:
Feb 18, 2016 4:51:46 PM (8 years ago)
Author:
rniwa@webkit.org
Message:

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.

Location:
trunk/Websites/perf.webkit.org
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/perf.webkit.org/ChangeLog

    r196768 r196787  
     12016-02-18  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Statistically significant A/B testing results should be color coded in details view
     4        https://bugs.webkit.org/show_bug.cgi?id=154414
     5
     6        Reviewed by Chris Dumez.
     7
     8        Color code the statistically significant comparisions in TestGroupResultsTable as done in the analysis
     9        results viewer.
     10
     11        * public/v3/components/customizable-test-group-form.js:
     12        (CustomizableTestGroupForm.cssTemplate): Build fix after r196768.
     13        * public/v3/components/test-group-results-table.js:
     14        (TestGroupResultsTable.prototype.buildRowGroups): Add the status as a class name.
     15        (TestGroupResultsTable.cssTemplate): Added styles to color-code statistically significant results.
     16
    1172016-02-17  Ryosuke Niwa  <rniwa@webkit.org>
    218
  • trunk/Websites/perf.webkit.org/public/v3/components/customizable-test-group-form.js

    r196768 r196787  
    130130    static cssTemplate()
    131131    {
    132         return super.cssTemplate() + `
     132        return `
    133133            .customize-link {
    134134                color: #333;
  • trunk/Websites/perf.webkit.org/public/v3/components/test-group-results-table.js

    r196463 r196787  
    6666
    6767                var row = new ResultsTableRow(`${startConfig} to ${endConfig}`, null);
    68                 row.setLabelForWholeRow(result.fullLabel);
     68                var element = ComponentBase.createElement;
     69                row.setLabelForWholeRow(element('span', {class: 'results-label ' + result.status}, result.fullLabel));
    6970                comparisonRows.push(row);
    7071            }
     
    7576        return groups;
    7677    }
     78
     79    static cssTemplate()
     80    {
     81        return super.cssTemplate() + `
     82            .results-label {
     83                padding: 0.1rem;
     84                width: 100%;
     85                height: 100%;
     86            }
     87
     88            .results-label .failed {
     89                color: rgb(128, 51, 128);
     90            }
     91            .results-label .unchanged {
     92                color: rgb(128, 128, 128);
     93            }
     94            .results-label.worse {
     95                color: rgb(255, 102, 102);
     96                font-weight: bold;
     97            }
     98            .results-label.better {
     99                color: rgb(102, 102, 255);
     100                font-weight: bold;
     101            }
     102        `;
     103    }
    77104}
    78105
Note: See TracChangeset for help on using the changeset viewer.