From 22480df17fd3ba458e9d3da53c84e2411716d591 Mon Sep 17 00:00:00 2001 From: James C Scott III Date: Wed, 17 Jul 2024 09:54:29 -0400 Subject: [PATCH] Address final feedback in RFC 190 (#3907) During the review of [RFC 190](https://github.com/web-platform-tests/rfcs/pull/190), we agreed that we should: - Remove the button when in interop and allow this to be reachable by query parameter only. This change does that by removing the button added in https://github.com/web-platform-tests/wpt.fyi/pull/3753 The idea is to allow users to accomplish their workflows with view=test without confusing others. Another RFC would be needed to add a button. Additionally, since this RFC has been accepted, we can remove the feature flag gating it. --- webapp/components/wpt-flags.js | 6 ------ webapp/views/wpt-results.js | 22 +--------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/webapp/components/wpt-flags.js b/webapp/components/wpt-flags.js index 5b47c2c4bd5..6263f5f00ce 100644 --- a/webapp/components/wpt-flags.js +++ b/webapp/components/wpt-flags.js @@ -47,7 +47,6 @@ Object.defineProperty(wpt, 'ClientSideFeatures', { 'queryBuilder', 'queryBuilderSHA', 'showBSF', - 'showViewEqTest', 'structuredQueries', 'triageMetadataUI', 'webPlatformTestsLive', @@ -259,11 +258,6 @@ class WPTFlagsEditor extends FlagsEditorClass(/*environmentFlags*/ false) { Enable Browser Specific Failures graph - - - Enable view=test query parameter - - `; } diff --git a/webapp/views/wpt-results.js b/webapp/views/wpt-results.js index d1796d0d747..a22e6e7e4b5 100644 --- a/webapp/views/wpt-results.js +++ b/webapp/views/wpt-results.js @@ -262,9 +262,6 @@ class WPTResults extends AmendMetadataMixin(Pluralizer(WPTColors(WPTFlags(PathIn @@ -1010,10 +1007,6 @@ class WPTResults extends AmendMetadataMixin(Pluralizer(WPTColors(WPTFlags(PathIn return canViewInteropScores && !pathIsATestFile; } - testViewButtonClass(view) { - return (view === VIEW_ENUM.Test) ? 'selected' : 'unselected'; - } - interopButtonClass(view) { return (view === VIEW_ENUM.Interop) ? 'selected' : 'unselected'; } @@ -1029,18 +1022,6 @@ class WPTResults extends AmendMetadataMixin(Pluralizer(WPTColors(WPTFlags(PathIn this.view = VIEW_ENUM.Interop; } - clickTestView() { - if (!this.showViewEqTest) { - // Do nothing if the `showViewEqTest` feature flag is not enabled. - return; - } - - if (this.isTestView()) { - return; - } - this.view = VIEW_ENUM.Test; - } - clickDefault() { if (this.isDefaultView()) { return; @@ -1085,8 +1066,7 @@ class WPTResults extends AmendMetadataMixin(Pluralizer(WPTColors(WPTFlags(PathIn } isTestView() { - // If the `showViewEqTest` feature flag is not active, return false immediately. - return this.showViewEqTest && this.view === VIEW_ENUM.Test; + return this.view === VIEW_ENUM.Test; } getTotalsClass(totalInfo) {