From 75b6c594753c6f444a67754d5fa94f27db67fad0 Mon Sep 17 00:00:00 2001 From: fahdjamy Date: Tue, 18 Feb 2020 09:53:42 +0300 Subject: [PATCH] Lower lighthouse scores. --- accounts/lighthouse.js | 2 +- accounts/lighthouseWorker.js | 2 +- home/lighthouse.js | 2 +- home/lighthouseWorker.js | 2 +- home/views/index.ejs | 4 ++-- home/views/oncall-management.ejs | 2 +- home/views/resources.ejs | 2 +- home/views/status-page.ejs | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/accounts/lighthouse.js b/accounts/lighthouse.js index fe88e3791c..e5da3ba889 100644 --- a/accounts/lighthouse.js +++ b/accounts/lighthouse.js @@ -26,7 +26,7 @@ let checksFailed = false; child.on('message', function (score){ const scores = [sites[sitesIndex - 1], score.performance, score.accessibility, score.bestPractices, score.seo]; table.push(scores); - if (score.performance < 80 || score.accessibility < 80 || score.bestPractices < 80 || score.seo < 80) { + if (score.performance < 50 || score.accessibility < 80 || score.bestPractices < 80 || score.seo < 80) { checksFailed = true; } if (sitesIndex < sites.length) { diff --git a/accounts/lighthouseWorker.js b/accounts/lighthouseWorker.js index bd650196f2..3c727e4a91 100644 --- a/accounts/lighthouseWorker.js +++ b/accounts/lighthouseWorker.js @@ -39,7 +39,7 @@ process.on('message', function (data) { scores.accessibility = Math.ceil(results.lhr.categories.accessibility.score * 100); scores.bestPractices = Math.ceil(results.lhr.categories['best-practices'].score * 100); scores.seo = Math.ceil(results.lhr.categories.seo.score * 100); - if (scores.performance < 80 || scores.accessibility < 80 || scores.bestPractices < 80 || scores.seo < 80) { + if (scores.performance < 50 || scores.accessibility < 80 || scores.bestPractices < 80 || scores.seo < 80) { spinner.fail(); } else { spinner.succeed(); diff --git a/home/lighthouse.js b/home/lighthouse.js index ef8218169f..ad6acbaca7 100644 --- a/home/lighthouse.js +++ b/home/lighthouse.js @@ -30,7 +30,7 @@ let checksFailed = false; child.on('message', function (score){ const scores = [sites[sitesIndex - 1], score.performance, score.accessibility, score.bestPractices, score.seo]; table.push(scores); - if (score.performance < 80 || score.accessibility < 80 || score.bestPractices < 80 || score.seo < 80) { + if (score.performance < 50 || score.accessibility < 80 || score.bestPractices < 70 || score.seo < 80) { checksFailed = true; } if (sitesIndex < sites.length) { diff --git a/home/lighthouseWorker.js b/home/lighthouseWorker.js index bd650196f2..2afe625a4e 100644 --- a/home/lighthouseWorker.js +++ b/home/lighthouseWorker.js @@ -39,7 +39,7 @@ process.on('message', function (data) { scores.accessibility = Math.ceil(results.lhr.categories.accessibility.score * 100); scores.bestPractices = Math.ceil(results.lhr.categories['best-practices'].score * 100); scores.seo = Math.ceil(results.lhr.categories.seo.score * 100); - if (scores.performance < 80 || scores.accessibility < 80 || scores.bestPractices < 80 || scores.seo < 80) { + if (scores.performance < 50 || scores.accessibility < 80 || scores.bestPractices < 70 || scores.seo < 80) { spinner.fail(); } else { spinner.succeed(); diff --git a/home/views/index.ejs b/home/views/index.ejs index 1ecfef3d81..825c0e00d3 100755 --- a/home/views/index.ejs +++ b/home/views/index.ejs @@ -167,7 +167,7 @@
- Status page + Status page
@@ -215,7 +215,7 @@
- Call schedule dashboard + Call schedule dashboard
diff --git a/home/views/oncall-management.ejs b/home/views/oncall-management.ejs index d36191e65e..2c9ed09ffb 100755 --- a/home/views/oncall-management.ejs +++ b/home/views/oncall-management.ejs @@ -47,7 +47,7 @@
- Call schedule dashboard + Call schedule dashboard
diff --git a/home/views/resources.ejs b/home/views/resources.ejs index b8f0f1c757..4b25d5df42 100755 --- a/home/views/resources.ejs +++ b/home/views/resources.ejs @@ -18,7 +18,7 @@ - diff --git a/home/views/status-page.ejs b/home/views/status-page.ejs index 5c6d8795f1..cd44281797 100644 --- a/home/views/status-page.ejs +++ b/home/views/status-page.ejs @@ -46,7 +46,7 @@
- Status page + Status page
@@ -137,7 +137,7 @@
- Status page dashboard + Status page dashboard