|
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"> |
|
227 | 223 | computed: '_getToggleButtonText(_show_host_side_table)' |
228 | 224 | }, |
229 | 225 | }, |
230 | | - _summary_text: String, |
| 226 | + _summary_conclusion: String, |
| 227 | + _summary_nextstep: String, |
231 | 228 | _infeed_percent_average: String, |
232 | 229 | _infeed_percent_stddev: String, |
233 | 230 | _infeed_percent_minimum: String, |
|
236 | 233 | _steptime_ms_stddev: String, |
237 | 234 | _steptime_ms_minimum: String, |
238 | 235 | _steptime_ms_maximum: String, |
239 | | - _host_conclusion: String, |
240 | 236 | onClick: function(e) { |
241 | 237 | this.set('_show_host_side_table', !this._show_host_side_table); |
242 | 238 | }, |
|
248 | 244 | _updateView: function() { |
249 | 245 | if (this._data == null) return; |
250 | 246 | var deviceJson = this._data[0]; |
251 | | - var hostJson = this._data[1]; |
252 | | - var recommendationJson = this._data[2]; |
253 | | - this.set('_summary_text', deviceJson.p['summary_text']); |
| 247 | + var hostJson = this._data[2]; |
| 248 | + var recommendationJson = this._data[3]; |
| 249 | + var conclusion = deviceJson.p['summary_conclusion']; |
| 250 | + this.set('_summary_conclusion', conclusion); |
| 251 | + this.set('_summary_nextstep', deviceJson.p['summary_nextstep']); |
254 | 252 | this.set('_infeed_percent_average', deviceJson.p['infeed_percent_average']); |
255 | 253 | this.set('_infeed_percent_stddev', deviceJson.p['infeed_percent_standard_deviation']); |
256 | 254 | this.set('_infeed_percent_minimum', deviceJson.p['infeed_percent_minimum']); |
|
259 | 257 | this.set('_steptime_ms_stddev', deviceJson.p['steptime_ms_standard_deviation']); |
260 | 258 | this.set('_steptime_ms_minimum', deviceJson.p['steptime_ms_minimum']); |
261 | 259 | this.set('_steptime_ms_maximum', deviceJson.p['steptime_ms_maximum']); |
262 | | - this.set('_host_conclusion', recommendationJson.p['overall']); |
263 | | - this.customStyle['--summary-color'] = deviceJson.p['summary_color']; |
| 260 | + if (conclusion.includes('HIGHLY')) { |
| 261 | + this.customStyle['--summary-color'] = 'red'; |
| 262 | + } else if (conclusion.includes('MODERATE')) { |
| 263 | + this.customStyle['--summary-color'] = 'orange'; |
| 264 | + } |
264 | 265 | this.updateStyles(); |
265 | 266 | this._showDeviceStepChart(deviceJson); |
266 | 267 | this._showDeviceInfeedChart(deviceJson); |
|
0 commit comments