Perf dashboard should automatically select ranges for A/B testing
[WebKit-https.git] / Websites / perf.webkit.org / public / v2 / index.html
index 9a88d21..5bb63f1 100755 (executable)
                     {{#if chartData}}
                         {{interactive-chart
                             chartData=chartData
-                            ranges=analyticRanges
+                            ranges=ranges
                             domain=mainPlotDomain
                             interactive=true
                             chartPointRadius=2
         <div class="rangeBarsContainerInlineStyle">
             {{#each rangeBars}}
                 {{#link-to linkRoute linkId title=label}}
-                    <span class="rangeBar" {{bind-attr style=inlineStyle}}></span>
+                    <span {{bind-attr class=":rangeBar status" style=inlineStyle}}></span>
                 {{/link-to}}
             {{/each}}
         </div>
                     {{/each}}
                 </section>
             {{/if}}
+            {{#if chosenMovingAverageStrategy.isSegmentation}}
+                <section class="stat-option">
+                    <h1>A/B Test Range Selection</h1>
+                    <label>Type: {{view Ember.Select
+                        content=testRangeSelectionStrategies
+                        optionValuePath='content'
+                        optionLabelPath='content.label'
+                        selection=chosenTestRangeSelectionStrategy}}</label>
+                    {{#if chosenTestRangeSelectionStrategy.description}}
+                        <p class="description">{{chosenTestRangeSelectionStrategy.description}}</p>
+                    {{/if}}
+                </section>
+            {{/if}}
             {{#if chosenEnvelopingStrategy.execute}}
                 <section class="stat-option">
                     <h1>Anomaly Detection</h1>
                 <div class="svg-container">
                     {{interactive-chart
                         chartData=pane.chartData
-                        ranges=pane.analyticRanges
+                        ranges=pane.ranges
                         domain=overviewDomain
                         interactive=true
                         chartPointRadius=2