diff --git a/webapp/components/interop-data-manager.js b/webapp/components/interop-data-manager.js index 383506f84b..a1778b5997 100644 --- a/webapp/components/interop-data-manager.js +++ b/webapp/components/interop-data-manager.js @@ -118,6 +118,7 @@ class InteropDataManager { this.previousInvestigationTotalScore = this.#calcInvestigationTotalScore(this.previousInvestigationScores); } + console.log(this.investigationScores); if (this.investigationScores) { this.investigationTotalScore = this.#calcInvestigationTotalScore(this.investigationScores); diff --git a/webapp/components/interop-data.js b/webapp/components/interop-data.js index 87fd2d2c2a..7ccb32bd64 100644 --- a/webapp/components/interop-data.js +++ b/webapp/components/interop-data.js @@ -865,6 +865,15 @@ export const interopData = { 'interop-2023-url', ], 'score_as_group': false + }, + { + 'name': 'Active Investigations', + 'rows': [ + 'Accessibility Testing', + 'Mobile Testing', + 'WebAssembly Testing' + ], + 'score_as_group': true } ], 'mobile_focus_areas': [ diff --git a/webapp/components/interop-summary.js b/webapp/components/interop-summary.js index 090dbc8e8e..aecc6bc55c 100644 --- a/webapp/components/interop-summary.js +++ b/webapp/components/interop-summary.js @@ -196,8 +196,8 @@ class InteropSummary extends PolymerElement { } const summaryDiv = this.shadowRoot.querySelector('.summary-container'); - // Don't display the interop score for Interop 2021 or mobile view. - if (this.year === '2021' || this.isMobileScoresView) { + // Don't display the interop score for Interop 2021. + if (this.year === '2021') { const interopDiv = this.shadowRoot.querySelector('#interopSummary'); interopDiv.style.display = 'none'; summaryDiv.style.minHeight = '275px'; @@ -213,7 +213,7 @@ class InteropSummary extends PolymerElement { shouldDisplayInvestigationNumber() { const scores = this.dataManager.getYearProp('investigationScores'); - return scores !== null && scores !== undefined && !this.isMobileScoresView; + return scores !== null && scores !== undefined; } // roundScore defines the rounding rules for the top-level scores. @@ -252,10 +252,8 @@ class InteropSummary extends PolymerElement { (this.isMobileScoresView && scoreElements.length !== scores.length + 1)) { return; } - if (!this.isMobileScoresView) { - // Update interop summary number first. - this.updateSummaryScore(scoreElements[0], scores[scores.length - 1][summaryFeatureName]); - } + // Update interop summary number first. + this.updateSummaryScore(scoreElements[0], scores[scores.length - 1][summaryFeatureName]); // Update the rest of the browser scores. for (let i = 1; i < scores.length; i++) { this.updateSummaryScore(scoreElements[i], scores[i - 1][summaryFeatureName]); diff --git a/webapp/static/interop-data.json b/webapp/static/interop-data.json index ee1dcab618..2a570f2fa1 100644 --- a/webapp/static/interop-data.json +++ b/webapp/static/interop-data.json @@ -842,6 +842,15 @@ "interop-2023-url" ], "score_as_group": false + }, + { + "name": "Active Investigations", + "rows": [ + "Accessibility Testing", + "Mobile Testing", + "WebAssembly Testing" + ], + "score_as_group": true } ], "mobile_focus_areas": [