blob: f3b24542fed47f3a029f6d7117c030440744ed05 [file] [log] [blame]
Blink Reformat4c46d092018-04-07 15:32:37 +00001// Copyright 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Paul Lewiscf2ef222019-11-22 14:55:35 +00005export default class StatusView {
Patrick Hulcea087f622018-05-18 00:37:53 +00006 /**
cjamcl@google.comaa1532c2019-05-31 03:01:24 +00007 * @param {!Audits.AuditController} controller
Patrick Hulcea087f622018-05-18 00:37:53 +00008 */
9 constructor(controller) {
10 this._controller = controller;
11
Blink Reformat4c46d092018-04-07 15:32:37 +000012 this._statusView = null;
Patrick Hulcea087f622018-05-18 00:37:53 +000013 this._statusHeader = null;
Blink Reformat4c46d092018-04-07 15:32:37 +000014 this._progressWrapper = null;
15 this._progressBar = null;
16 this._statusText = null;
Connor Clark99508362019-08-20 19:52:23 +000017 this._cancelButton = null;
Blink Reformat4c46d092018-04-07 15:32:37 +000018
Patrick Hulcea087f622018-05-18 00:37:53 +000019 this._inspectedURL = '';
Blink Reformat4c46d092018-04-07 15:32:37 +000020 this._textChangedAt = 0;
Paul Lewiscf2ef222019-11-22 14:55:35 +000021 this._fastFactsQueued = FastFacts.slice();
Blink Reformat4c46d092018-04-07 15:32:37 +000022 this._currentPhase = null;
23 this._scheduledTextChangeTimeout = null;
24 this._scheduledFastFactTimeout = null;
Patrick Hulcea087f622018-05-18 00:37:53 +000025
26 this._dialog = new UI.Dialog();
Patrick Hulce8d387f12018-05-29 18:54:54 +000027 this._dialog.setDimmed(true);
28 this._dialog.setCloseOnEscape(false);
Patrick Hulcea087f622018-05-18 00:37:53 +000029 this._dialog.setOutsideClickCallback(event => event.consume(true));
30 this._render();
Blink Reformat4c46d092018-04-07 15:32:37 +000031 }
32
Patrick Hulcea087f622018-05-18 00:37:53 +000033 _render() {
cjamcl@google.comaa1532c2019-05-31 03:01:24 +000034 const dialogRoot = UI.createShadowRootWithCoreStyles(this._dialog.contentElement, 'audits/auditsDialog.css');
35 const auditsViewElement = dialogRoot.createChild('div', 'audits-view vbox');
Blink Reformat4c46d092018-04-07 15:32:37 +000036
Patrick Hulcea087f622018-05-18 00:37:53 +000037 const cancelButton = UI.createTextButton(ls`Cancel`, this._cancel.bind(this));
38 const fragment = UI.Fragment.build`
cjamcl@google.comaa1532c2019-05-31 03:01:24 +000039 <div class="audits-view vbox">
Patrick Hulcea087f622018-05-18 00:37:53 +000040 <h2 $="status-header">Auditing your web page\u2026</h2>
cjamcl@google.comaa1532c2019-05-31 03:01:24 +000041 <div class="audits-status vbox" $="status-view">
42 <div class="audits-progress-wrapper" $="progress-wrapper">
43 <div class="audits-progress-bar" $="progress-bar"></div>
Patrick Hulcea087f622018-05-18 00:37:53 +000044 </div>
cjamcl@google.comaa1532c2019-05-31 03:01:24 +000045 <div class="audits-status-text" $="status-text"></div>
Patrick Hulcea087f622018-05-18 00:37:53 +000046 </div>
47 ${cancelButton}
48 </div>
49 `;
Blink Reformat4c46d092018-04-07 15:32:37 +000050
Patrick Hulcea087f622018-05-18 00:37:53 +000051 auditsViewElement.appendChild(fragment.element());
Patrick Hulcea087f622018-05-18 00:37:53 +000052
53 this._statusView = fragment.$('status-view');
54 this._statusHeader = fragment.$('status-header');
55 this._progressWrapper = fragment.$('progress-wrapper');
56 this._progressBar = fragment.$('progress-bar');
57 this._statusText = fragment.$('status-text');
John Emau69c38762019-11-25 18:17:47 -080058 // Use StatusPhases array index as progress bar value
59 UI.ARIAUtils.markAsProgressBar(this._progressBar, 0, Audits.StatusView.StatusPhases.length - 1);
Connor Clark99508362019-08-20 19:52:23 +000060 this._cancelButton = cancelButton;
John Emau463280d2019-07-19 00:37:40 +000061 UI.ARIAUtils.markAsStatus(this._statusText);
Patrick Hulcea087f622018-05-18 00:37:53 +000062
63 this._dialog.setDefaultFocusedElement(cancelButton);
64 this._dialog.setSizeBehavior(UI.GlassPane.SizeBehavior.SetExactWidthMaxHeight);
65 this._dialog.setMaxContentSize(new UI.Size(500, 400));
Blink Reformat4c46d092018-04-07 15:32:37 +000066 }
67
Patrick Hulcea087f622018-05-18 00:37:53 +000068 _reset() {
Blink Reformat4c46d092018-04-07 15:32:37 +000069 this._resetProgressBarClasses();
70 clearTimeout(this._scheduledFastFactTimeout);
71
72 this._textChangedAt = 0;
Paul Lewiscf2ef222019-11-22 14:55:35 +000073 this._fastFactsQueued = FastFacts.slice();
Blink Reformat4c46d092018-04-07 15:32:37 +000074 this._currentPhase = null;
75 this._scheduledTextChangeTimeout = null;
76 this._scheduledFastFactTimeout = null;
77 }
78
79 /**
Patrick Hulcea087f622018-05-18 00:37:53 +000080 * @param {!Element} dialogRenderElement
Blink Reformat4c46d092018-04-07 15:32:37 +000081 */
Patrick Hulcea087f622018-05-18 00:37:53 +000082 show(dialogRenderElement) {
83 this._reset();
84 this.updateStatus(ls`Loading\u2026`);
Blink Reformat4c46d092018-04-07 15:32:37 +000085
Patrick Hulcea087f622018-05-18 00:37:53 +000086 const parsedURL = this._inspectedURL.asParsedURL();
87 const pageHost = parsedURL && parsedURL.host;
88 const statusHeader = pageHost ? ls`Auditing ${pageHost}` : ls`Auditing your web page`;
Connor Clark99508362019-08-20 19:52:23 +000089 this._renderStatusHeader(statusHeader);
Patrick Hulcea087f622018-05-18 00:37:53 +000090 this._dialog.show(dialogRenderElement);
91 }
92
Connor Clark99508362019-08-20 19:52:23 +000093 /**
94 * @param {string=} statusHeader
95 */
96 _renderStatusHeader(statusHeader) {
97 this._statusHeader.textContent = `${statusHeader}\u2026`;
98 }
99
Patrick Hulcea087f622018-05-18 00:37:53 +0000100 hide() {
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000101 if (this._dialog.isShowing()) {
Patrick Hulcea087f622018-05-18 00:37:53 +0000102 this._dialog.hide();
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000103 }
Patrick Hulcea087f622018-05-18 00:37:53 +0000104 }
105
106 /**
107 * @param {string=} url
108 */
109 setInspectedURL(url = '') {
110 this._inspectedURL = url;
Blink Reformat4c46d092018-04-07 15:32:37 +0000111 }
112
113 /**
114 * @param {?string} message
115 */
116 updateStatus(message) {
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000117 if (!message || !this._statusText) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000118 return;
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000119 }
Blink Reformat4c46d092018-04-07 15:32:37 +0000120
121 if (message.startsWith('Cancel')) {
122 this._commitTextChange(Common.UIString('Cancelling\u2026'));
123 clearTimeout(this._scheduledFastFactTimeout);
124 return;
125 }
126
127 const nextPhase = this._getPhaseForMessage(message);
John Emau69c38762019-11-25 18:17:47 -0800128 const nextPhaseIndex = Audits.StatusView.StatusPhases.indexOf(nextPhase);
129 const currentPhaseIndex = Audits.StatusView.StatusPhases.indexOf(this._currentPhase);
Blink Reformat4c46d092018-04-07 15:32:37 +0000130 if (!nextPhase && !this._currentPhase) {
131 this._commitTextChange(Common.UIString('Lighthouse is warming up\u2026'));
132 clearTimeout(this._scheduledFastFactTimeout);
John Emau69c38762019-11-25 18:17:47 -0800133 } else if (nextPhase && (!this._currentPhase || currentPhaseIndex < nextPhaseIndex)) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000134 this._currentPhase = nextPhase;
John Emau69c38762019-11-25 18:17:47 -0800135 const text = this._getMessageForPhase(nextPhase);
136 this._scheduleTextChange(text);
Blink Reformat4c46d092018-04-07 15:32:37 +0000137 this._scheduleFastFactCheck();
138 this._resetProgressBarClasses();
139 this._progressBar.classList.add(nextPhase.progressBarClass);
John Emau69c38762019-11-25 18:17:47 -0800140 UI.ARIAUtils.setProgressBarValue(this._progressBar, nextPhaseIndex, text);
Blink Reformat4c46d092018-04-07 15:32:37 +0000141 }
142 }
143
Patrick Hulcea087f622018-05-18 00:37:53 +0000144 _cancel() {
cjamcl@google.comaa1532c2019-05-31 03:01:24 +0000145 this._controller.dispatchEventToListeners(Audits.Events.RequestAuditCancel);
Patrick Hulcea087f622018-05-18 00:37:53 +0000146 }
147
Blink Reformat4c46d092018-04-07 15:32:37 +0000148 /**
cjamcl@google.comaa1532c2019-05-31 03:01:24 +0000149 * @param {!Audits.StatusView.StatusPhases} phase
Blink Reformat4c46d092018-04-07 15:32:37 +0000150 * @return {string}
151 */
152 _getMessageForPhase(phase) {
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000153 if (phase.message) {
Mandy Chenef16e332019-09-08 05:02:45 +0000154 return phase.message;
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000155 }
Blink Reformat4c46d092018-04-07 15:32:37 +0000156
cjamcl@google.comaa1532c2019-05-31 03:01:24 +0000157 const deviceType = Audits.RuntimeSettings.find(item => item.setting.name === 'audits.device_type').setting.get();
158 const throttling = Audits.RuntimeSettings.find(item => item.setting.name === 'audits.throttling').setting.get();
Paul Lewiscf2ef222019-11-22 14:55:35 +0000159 const match = LoadingMessages.find(item => {
Blink Reformat4c46d092018-04-07 15:32:37 +0000160 return item.deviceType === deviceType && item.throttling === throttling;
161 });
162
Mandy Chenef16e332019-09-08 05:02:45 +0000163 return match ? match.message : ls`Lighthouse is loading your page`;
Blink Reformat4c46d092018-04-07 15:32:37 +0000164 }
165
166 /**
167 * @param {string} message
cjamcl@google.comaa1532c2019-05-31 03:01:24 +0000168 * @return {?Audits.StatusView.StatusPhases}
Blink Reformat4c46d092018-04-07 15:32:37 +0000169 */
170 _getPhaseForMessage(message) {
Paul Lewiscf2ef222019-11-22 14:55:35 +0000171 return StatusPhases.find(phase => message.startsWith(phase.statusMessagePrefix));
Blink Reformat4c46d092018-04-07 15:32:37 +0000172 }
173
174 _resetProgressBarClasses() {
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000175 if (!this._progressBar) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000176 return;
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000177 }
Blink Reformat4c46d092018-04-07 15:32:37 +0000178
cjamcl@google.comaa1532c2019-05-31 03:01:24 +0000179 this._progressBar.className = 'audits-progress-bar';
Blink Reformat4c46d092018-04-07 15:32:37 +0000180 }
181
182 _scheduleFastFactCheck() {
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000183 if (!this._currentPhase || this._scheduledFastFactTimeout) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000184 return;
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000185 }
Blink Reformat4c46d092018-04-07 15:32:37 +0000186
187 this._scheduledFastFactTimeout = setTimeout(() => {
188 this._updateFastFactIfNecessary();
189 this._scheduledFastFactTimeout = null;
190
191 this._scheduleFastFactCheck();
192 }, 100);
193 }
194
195 _updateFastFactIfNecessary() {
196 const now = performance.now();
Paul Lewiscf2ef222019-11-22 14:55:35 +0000197 if (now - this._textChangedAt < fastFactRotationInterval) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000198 return;
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000199 }
200 if (!this._fastFactsQueued.length) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000201 return;
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000202 }
Blink Reformat4c46d092018-04-07 15:32:37 +0000203
204 const fastFactIndex = Math.floor(Math.random() * this._fastFactsQueued.length);
205 this._scheduleTextChange(ls`\ud83d\udca1 ${this._fastFactsQueued[fastFactIndex]}`);
206 this._fastFactsQueued.splice(fastFactIndex, 1);
207 }
208
209 /**
210 * @param {string} text
211 */
212 _commitTextChange(text) {
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000213 if (!this._statusText) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000214 return;
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000215 }
Blink Reformat4c46d092018-04-07 15:32:37 +0000216 this._textChangedAt = performance.now();
217 this._statusText.textContent = text;
218 }
219
220 /**
221 * @param {string} text
222 */
223 _scheduleTextChange(text) {
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000224 if (this._scheduledTextChangeTimeout) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000225 clearTimeout(this._scheduledTextChangeTimeout);
Tim van der Lippe1d6e57a2019-09-30 11:55:34 +0000226 }
Blink Reformat4c46d092018-04-07 15:32:37 +0000227
228 const msSinceLastChange = performance.now() - this._textChangedAt;
Paul Lewiscf2ef222019-11-22 14:55:35 +0000229 const msToTextChange = minimumTextVisibilityDuration - msSinceLastChange;
Blink Reformat4c46d092018-04-07 15:32:37 +0000230
231 this._scheduledTextChangeTimeout = setTimeout(() => {
232 this._commitTextChange(text);
233 }, Math.max(msToTextChange, 0));
234 }
235
236 /**
237 * @param {!Error} err
Blink Reformat4c46d092018-04-07 15:32:37 +0000238 */
Patrick Hulcea087f622018-05-18 00:37:53 +0000239 renderBugReport(err) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000240 console.error(err);
241 clearTimeout(this._scheduledFastFactTimeout);
242 clearTimeout(this._scheduledTextChangeTimeout);
243 this._resetProgressBarClasses();
244 this._progressBar.classList.add('errored');
245
246 this._commitTextChange('');
Paul Irishf2659072019-03-24 19:08:52 +0000247 this._statusText.createChild('p').createTextChild(Common.UIString('Ah, sorry! We ran into an error.'));
Paul Lewiscf2ef222019-11-22 14:55:35 +0000248 if (KnownBugPatterns.some(pattern => pattern.test(err.message))) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000249 const message = Common.UIString(
Lorne Mitchell7aa2c6c2019-04-03 03:50:10 +0000250 'Try to navigate to the URL in a fresh Chrome profile without any other tabs or extensions open and try again.');
Blink Reformat4c46d092018-04-07 15:32:37 +0000251 this._statusText.createChild('p').createTextChild(message);
252 } else {
Paul Irishf2659072019-03-24 19:08:52 +0000253 this._renderBugReportBody(err, this._inspectedURL);
Blink Reformat4c46d092018-04-07 15:32:37 +0000254 }
255 }
256
257 /**
Connor Clark99508362019-08-20 19:52:23 +0000258 * @param {string} statusHeader
259 * @param {string} text
260 */
261 renderText(statusHeader, text) {
262 this._renderStatusHeader(statusHeader);
263 this._commitTextChange(text);
264 }
265
266 /**
267 * @param {boolean} show
268 */
269 toggleCancelButton(show) {
270 this._cancelButton.style.visibility = show ? 'visible' : 'hidden';
271 }
272
273 /**
Blink Reformat4c46d092018-04-07 15:32:37 +0000274 * @param {!Error} err
275 * @param {string} auditURL
276 */
Paul Irishf2659072019-03-24 19:08:52 +0000277 _renderBugReportBody(err, auditURL) {
Blink Reformat4c46d092018-04-07 15:32:37 +0000278 const issueBody = `
Paul Irishf2659072019-03-24 19:08:52 +0000279${err.message}
Blink Reformat4c46d092018-04-07 15:32:37 +0000280\`\`\`
Paul Irishf2659072019-03-24 19:08:52 +0000281Channel: DevTools
282Initial URL: ${auditURL}
283Chrome Version: ${navigator.userAgent.match(/Chrome\/(\S+)/)[1]}
284Stack Trace: ${err.stack}
Blink Reformat4c46d092018-04-07 15:32:37 +0000285\`\`\`
Paul Irishf2659072019-03-24 19:08:52 +0000286`;
287 this._statusText.createChild('p').createTextChild(
288 ls`If this issue is reproducible, please report it at the Lighthouse GitHub repo.`);
289 this._statusText.createChild('code', 'monospace').createTextChild(issueBody.trim());
Blink Reformat4c46d092018-04-07 15:32:37 +0000290 }
Paul Lewiscf2ef222019-11-22 14:55:35 +0000291}
Blink Reformat4c46d092018-04-07 15:32:37 +0000292
Paul Lewiscf2ef222019-11-22 14:55:35 +0000293/** @const */
294export const fastFactRotationInterval = 6000;
295
296/** @const */
297export const minimumTextVisibilityDuration = 3000;
Blink Reformat4c46d092018-04-07 15:32:37 +0000298
299/** @type {!Array.<!RegExp>} */
Tim van der Lippec96ccd92019-11-29 16:23:54 +0000300const KnownBugPatterns = [
Blink Reformat4c46d092018-04-07 15:32:37 +0000301 /PARSING_PROBLEM/,
302 /DOCUMENT_REQUEST/,
303 /READ_FAILED/,
304 /TRACING_ALREADY_STARTED/,
305 /^You must provide a url to the runner/,
306 /^You probably have multiple tabs open/,
307];
308
John Emau69c38762019-11-25 18:17:47 -0800309/** @typedef {{message: string, progressBarClass: string}} */
Paul Lewiscf2ef222019-11-22 14:55:35 +0000310export const StatusPhases = [
Blink Reformat4c46d092018-04-07 15:32:37 +0000311 {
312 id: 'loading',
313 progressBarClass: 'loading',
314 statusMessagePrefix: 'Loading page',
Blink Reformat4c46d092018-04-07 15:32:37 +0000315 },
316 {
317 id: 'gathering',
318 progressBarClass: 'gathering',
Mandy Chenef16e332019-09-08 05:02:45 +0000319 message: ls`Lighthouse is gathering information about the page to compute your score.`,
cjamcl@google.comf2f8c092019-05-30 22:01:56 +0000320 statusMessagePrefix: 'Gathering',
Blink Reformat4c46d092018-04-07 15:32:37 +0000321 },
322 {
323 id: 'auditing',
324 progressBarClass: 'auditing',
Mandy Chenef16e332019-09-08 05:02:45 +0000325 message: ls`Almost there! Lighthouse is now generating your report.`,
cjamcl@google.comf2f8c092019-05-30 22:01:56 +0000326 statusMessagePrefix: 'Auditing',
Blink Reformat4c46d092018-04-07 15:32:37 +0000327 }
328];
329
330/** @typedef {{message: string, deviceType: string, throttling: string}} */
Tim van der Lippec96ccd92019-11-29 16:23:54 +0000331const LoadingMessages = [
Blink Reformat4c46d092018-04-07 15:32:37 +0000332 {
333 deviceType: 'mobile',
334 throttling: 'on',
Mandy Chenef16e332019-09-08 05:02:45 +0000335 message: ls`Lighthouse is loading your page with throttling to measure performance on a mobile device on 3G.`,
Blink Reformat4c46d092018-04-07 15:32:37 +0000336 },
337 {
338 deviceType: 'desktop',
339 throttling: 'on',
Mandy Chenef16e332019-09-08 05:02:45 +0000340 message: ls`Lighthouse is loading your page with throttling to measure performance on a slow desktop on 3G.`,
Blink Reformat4c46d092018-04-07 15:32:37 +0000341 },
342 {
343 deviceType: 'mobile',
344 throttling: 'off',
Mandy Chenef16e332019-09-08 05:02:45 +0000345 message: ls`Lighthouse is loading your page with mobile emulation.`,
Blink Reformat4c46d092018-04-07 15:32:37 +0000346 },
347 {
348 deviceType: 'desktop',
349 throttling: 'off',
Mandy Chenef16e332019-09-08 05:02:45 +0000350 message: ls`Lighthouse is loading your page.`,
Blink Reformat4c46d092018-04-07 15:32:37 +0000351 },
352];
353
Tim van der Lippec96ccd92019-11-29 16:23:54 +0000354const FastFacts = [
Paul Lewiscf2ef222019-11-22 14:55:35 +0000355 ls
356`1MB takes a minimum of 5 seconds to download on a typical 3G connection [Source: WebPageTest and DevTools 3G definition].`,
357 ls`Rebuilding Pinterest pages for performance increased conversion rates by 15% [Source: WPO Stats]`,
358 ls`BBC has seen a loss of 10% of their users for every extra second of page load [Source: WPO Stats]`, ls
359`By reducing the response size of JSON needed for displaying comments, Instagram saw increased impressions [Source: WPO Stats]`,
360 ls`Walmart saw a 1% increase in revenue for every 100ms improvement in page load [Source: WPO Stats]`, ls
361`If a site takes >1 second to become interactive, users lose attention, and their perception of completing the page task is broken [Source: Google Developers Blog]`,
362 ls`75% of global mobile users in 2016 were on 2G or 3G [Source: GSMA Mobile]`,
363 ls`The average user device costs less than 200 USD. [Source: International Data Corporation]`,
364 ls`53% of all site visits are abandoned if page load takes more than 3 seconds [Source: Google DoubleClick blog]`,
365 ls
366`19 seconds is the average time a mobile web page takes to load on a 3G connection [Source: Google DoubleClick blog]`,
367 ls
368`14 seconds is the average time a mobile web page takes to load on a 4G connection [Source: Google DoubleClick blog]`,
369 ls
370`70% of mobile pages take nearly 7 seconds for the visual content above the fold to display on the screen. [Source: Think with Google]`,
371 ls
372`As page load time increases from one second to seven seconds, the probability of a mobile site visitor bouncing increases 113%. [Source: Think with Google]`,
373 ls
374`As the number of elements on a page increases from 400 to 6,000, the probability of conversion drops 95%. [Source: Think with Google]`,
375 ls`70% of mobile pages weigh over 1MB, 36% over 2MB, and 12% over 4MB. [Source: Think with Google]`, ls
376 `Lighthouse only simulates mobile performance; to measure performance on a real device, try WebPageTest.org [Source: Lighthouse team]`,
Blink Reformat4c46d092018-04-07 15:32:37 +0000377];
378
Paul Lewiscf2ef222019-11-22 14:55:35 +0000379 /* Legacy exported object */
380 self.Audits = self.Audits || {};
381
382 /* Legacy exported object */
383 Audits = Audits || {};
384
385 /**
Tim van der Lippec96ccd92019-11-29 16:23:54 +0000386* @constructor
387*/
Paul Lewiscf2ef222019-11-22 14:55:35 +0000388 Audits.StatusView = StatusView;
389
Paul Lewiscf2ef222019-11-22 14:55:35 +0000390 /** @typedef {{message: string, progressBarClass: string, order: number}} */
391 Audits.StatusView.StatusPhases = StatusPhases;