From 27f96dbc46feaba8c46c800f70c5593d9b4a9965 Mon Sep 17 00:00:00 2001 From: George B <705427+georgeblahblah@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:14:59 +0000 Subject: [PATCH 1/2] Expose `dark-mode-apps` switch on client side Only switches with `exposeClientSide=true` are passed to DCR. --- common/app/conf/switches/FeatureSwitches.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/app/conf/switches/FeatureSwitches.scala b/common/app/conf/switches/FeatureSwitches.scala index fa2757ec20c5..b02865bf4c07 100644 --- a/common/app/conf/switches/FeatureSwitches.scala +++ b/common/app/conf/switches/FeatureSwitches.scala @@ -530,7 +530,7 @@ trait FeatureSwitches { safeState = Off, // This is a random date in the future but this switch should be removed far before then sellByDate = Some(LocalDate.of(2024, 6, 5)), - exposeClientSide = false, + exposeClientSide = true, ) val UserFeaturesDcr = Switch( From 93a5dd526dd14c8224fb80a97ec9b1acc44c2329 Mon Sep 17 00:00:00 2001 From: George B <705427+georgeblahblah@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:46:46 +0000 Subject: [PATCH 2/2] Rename switch --- common/app/conf/switches/FeatureSwitches.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/app/conf/switches/FeatureSwitches.scala b/common/app/conf/switches/FeatureSwitches.scala index b02865bf4c07..1af94904f39d 100644 --- a/common/app/conf/switches/FeatureSwitches.scala +++ b/common/app/conf/switches/FeatureSwitches.scala @@ -524,7 +524,7 @@ trait FeatureSwitches { val DarkModeInApps = Switch( SwitchGroup.Feature, - "dark-mode-apps", + "dark-mode-in-apps", "If this switch is on, we will allow dark mode in apps articles", owners = Seq(Owner.withEmail("dotcom.platform@theguardian.com")), safeState = Off,