|
39 | 39 | #summary-host {
|
40 | 40 | font-weight: bold;
|
41 | 41 | }
|
42 |
| - .summary-conclusion { |
43 |
| - font-weight: bold; |
44 |
| - font-style: italic; |
45 |
| - color: var(--summary-color, black); |
46 |
| - } |
47 |
| - .host-conclusion { |
48 |
| - font-weight: bold; |
49 |
| - font-style: italic; |
50 |
| - color: green; |
51 |
| - } |
52 | 42 | .highlighted-text {
|
53 | 43 | text-decoration: underline;
|
54 | 44 | font-weight: bold;
|
|
90 | 80 | color: #ff33cc;
|
91 | 81 | text-decoration: underline;
|
92 | 82 | }
|
| 83 | + #summary_conclusion{ |
| 84 | + font-weight:bolder; |
| 85 | + font-style:italic; |
| 86 | + color: var(--summary-color, green); |
| 87 | + } |
| 88 | + #summary_nextstep{ |
| 89 | + font-weight:bolder; |
| 90 | + font-style:italic; |
| 91 | + color:green; |
| 92 | + } |
| 93 | + #recommendation_title{ |
| 94 | + font-weight:bolder; |
| 95 | + font-style:normal; |
| 96 | + color:black; |
| 97 | + } |
93 | 98 | </style>
|
94 | 99 | <div>
|
95 | 100 | <div id="section_summary">
|
96 | 101 | <div id="title_summary">
|
97 | 102 | <p class="section-header"> Section 1: Summary of input-pipeline analysis</p>
|
98 | 103 | </div>
|
99 |
| - <p id="summary"> |
100 |
| - <span>The overall performance is </span> |
101 |
| - <span class="summary-conclusion">[[_summary_text]]</span> |
102 |
| - <span>input-bounded because on average (over all steps) the device has spent </span> |
103 |
| - <span><span class="summary-conclusion">[[_infeed_percent_average]]%</span> of time </span> |
104 |
| - <span>(standard deviation = [[_infeed_percent_stddev]]) waiting for input data </span> |
105 |
| - <span>[see Section 2 below for details].</span> |
106 |
| - </p> |
107 |
| - <p id="summary-host"> |
108 |
| - Recommendation for next step: <span class="host-conclusion">[[_host_conclusion]]</span> |
109 |
| - </p> |
| 104 | + <p><span id="summary_conclusion">[[_summary_conclusion]]</span></p> |
| 105 | + <p><span id="recommendation_title">Recommendation for next step: </span><span id="summary_nextstep">[[_summary_nextstep]]</span></p> |
110 | 106 | </div>
|
111 | 107 | <div id="section_device_side_analysis">
|
112 | 108 | <div id="title_device_side_analysis">
|
|
236 | 232 | computed: '_getToggleButtonText(_show_host_side_table)'
|
237 | 233 | },
|
238 | 234 | },
|
239 |
| - _summary_text: String, |
| 235 | + _summary_conclusion: String, |
| 236 | + _summary_nextstep: String, |
240 | 237 | _infeed_percent_average: String,
|
241 | 238 | _infeed_percent_stddev: String,
|
242 | 239 | _infeed_percent_minimum: String,
|
|
245 | 242 | _steptime_ms_stddev: String,
|
246 | 243 | _steptime_ms_minimum: String,
|
247 | 244 | _steptime_ms_maximum: String,
|
248 |
| - _host_conclusion: String, |
249 | 245 | onClick: function(e) {
|
250 | 246 | this.set('_show_host_side_table', !this._show_host_side_table);
|
251 | 247 | },
|
|
269 | 265 | /* Update view according to new data */
|
270 | 266 | _updateView: function() {
|
271 | 267 | var deviceJson = this._data[0];
|
272 |
| - var hostJson = this._data[1]; |
273 |
| - var recommendationJson = this._data[2]; |
274 |
| - this.set('_summary_text', deviceJson.p['summary_text']); |
| 268 | + var hostJson = this._data[2]; |
| 269 | + var recommendationJson = this._data[3]; |
| 270 | + var conclusion = deviceJson.p['summary_conclusion']; |
| 271 | + this.set('_summary_conclusion', conclusion); |
| 272 | + this.set('_summary_nextstep', deviceJson.p['summary_nextstep']); |
275 | 273 | this.set('_infeed_percent_average', deviceJson.p['infeed_percent_average']);
|
276 | 274 | this.set('_infeed_percent_stddev', deviceJson.p['infeed_percent_standard_deviation']);
|
277 | 275 | this.set('_infeed_percent_minimum', deviceJson.p['infeed_percent_minimum']);
|
|
280 | 278 | this.set('_steptime_ms_stddev', deviceJson.p['steptime_ms_standard_deviation']);
|
281 | 279 | this.set('_steptime_ms_minimum', deviceJson.p['steptime_ms_minimum']);
|
282 | 280 | this.set('_steptime_ms_maximum', deviceJson.p['steptime_ms_maximum']);
|
283 |
| - this.set('_host_conclusion', recommendationJson.p['overall']); |
284 |
| - this.customStyle['--summary-color'] = deviceJson.p['summary_color']; |
| 281 | + if (conclusion.includes('HIGHLY')) { |
| 282 | + this.customStyle['--summary-color'] = 'red'; |
| 283 | + } else if (conclusion.includes('MODERATE')) { |
| 284 | + this.customStyle['--summary-color'] = 'orange'; |
| 285 | + } |
285 | 286 | this.updateStyles();
|
286 | 287 | this._showDeviceStepChart(deviceJson);
|
287 | 288 | this._showDeviceInfeedChart(deviceJson);
|
|
0 commit comments