Skip to content

Commit 0e4ac30

Browse files
committed
webex -> webx
1 parent d3c3f72 commit 0e4ac30

File tree

11 files changed

+19
-14
lines changed

11 files changed

+19
-14
lines changed

ab-testing/config/abTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import type { ABTest } from "./types.ts";
2121

2222
const ABTests: ABTest[] = [
2323
{
24-
name: "webex-dark-mode-web",
24+
name: "webx-dark-mode-web",
2525
description: "Dark mode accessibility feature test on web",
2626
owners: ["dotcom.platform@theguardian.com"],
2727
status: "ON",

ab-testing/config/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ type AllSpace = Map<string, FastlyTestParams[]>;
66

77
type Team =
88
| "commercial"
9+
// WebX in the canonical name for the team, when the last test using webex expires we should remove webex from this union type
910
| "webex"
11+
| "webx"
1012
| "thefilter"
1113
| "fronts-and-curation"
1214
| "growth";

dotcom-rendering/src/components/Accessibility.importable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const Accessibility = () => {
138138
You are currently participating in the dark
139139
colour scheme beta.
140140
</p>
141-
<a href="/ab-tests/opt-out/webex-dark-mode-web:enable">
141+
<a href="/ab-tests/opt-out/webx-dark-mode-web:enable">
142142
Click here to opt out (this will redirect you to
143143
the homepage)
144144
</a>
@@ -149,7 +149,7 @@ export const Accessibility = () => {
149149
You are not currently participating in the dark
150150
colour scheme beta.
151151
</p>
152-
<a href="/ab-tests/opt-in/webex-dark-mode-web:enable">
152+
<a href="/ab-tests/opt-in/webx-dark-mode-web:enable">
153153
Click here to opt in (this will redirect you to
154154
the homepage)
155155
</a>

dotcom-rendering/src/components/ArticlePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export const ArticlePage = (props: WebProps | AppProps) => {
179179
You can{' '}
180180
<a
181181
style={{ color: 'inherit' }}
182-
href="/ab-tests/opt-out/webex-dark-mode-web"
182+
href="/ab-tests/opt-out/webx-dark-mode-web"
183183
>
184184
opt out anytime
185185
</a>{' '}

dotcom-rendering/src/components/FrontPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const FrontPage = ({ front, NAV }: Props) => {
112112
You can{' '}
113113
<a
114114
style={{ color: 'inherit' }}
115-
href="/ab-tests/opt-out/webex-dark-mode-web"
115+
href="/ab-tests/opt-out/webx-dark-mode-web"
116116
>
117117
opt out anytime
118118
</a>{' '}

dotcom-rendering/src/components/SportDataPageComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const SportDataPageComponent = ({ sportData }: Props) => {
8585
You can{' '}
8686
<a
8787
style={{ color: 'inherit' }}
88-
href="/ab-tests/opt-out/webex-dark-mode-web"
88+
href="/ab-tests/opt-out/webx-dark-mode-web"
8989
>
9090
opt out anytime
9191
</a>{' '}

dotcom-rendering/src/components/TagPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const TagPage = ({ tagPage, NAV }: Props) => {
102102
You can{' '}
103103
<a
104104
style={{ color: 'inherit' }}
105-
href="/ab-tests/opt-out/webex-dark-mode-web"
105+
href="/ab-tests/opt-out/webx-dark-mode-web"
106106
>
107107
opt out anytime
108108
</a>{' '}

dotcom-rendering/src/server/render.allEditorialNewslettersPage.web.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ export const renderEditorialNewslettersPage = ({
2424
const title = newslettersPage.webTitle;
2525
const NAV = extractNAV(newslettersPage.nav);
2626

27+
const darkModeAvailable =
28+
newslettersPage.config.serverSideABTests?.['webx-dark-mode-web'] ===
29+
'enable';
30+
2731
// The newsletters page is currently only supported on Web
2832
const config = {
2933
renderingTarget: 'Web',
30-
darkModeAvailable: false,
34+
darkModeAvailable,
3135
assetOrigin: ASSET_ORIGIN,
3236
editionId: newslettersPage.editionId,
3337
} satisfies Config;

dotcom-rendering/src/server/render.article.web.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const renderHtml = ({
5151
const linkedData = frontendData.linkedData;
5252

5353
const darkModeAvailable =
54-
frontendData.config.serverSideABTests?.['webex-dark-mode-web'] ===
54+
frontendData.config.serverSideABTests?.['webx-dark-mode-web'] ===
5555
'enable';
5656

5757
const renderingTarget = 'Web';
@@ -244,7 +244,7 @@ export const renderBlocks = ({
244244
const editionId = isEditionId(edition) ? edition : 'UK';
245245

246246
const darkModeAvailable =
247-
serverSideABTests?.['webex-dark-mode-web'] === 'enable';
247+
serverSideABTests?.['webx-dark-mode-web'] === 'enable';
248248

249249
const config: Config = {
250250
renderingTarget: 'Web',

dotcom-rendering/src/server/render.front.web.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const renderFront = ({
8484
const enhancedNAV = enhanceNav(NAV);
8585

8686
const darkModeAvailable =
87-
front.config.serverSideABTests?.['webex-dark-mode-web'] === 'enable';
87+
front.config.serverSideABTests?.['webx-dark-mode-web'] === 'enable';
8888

8989
// Fronts are not supported in Apps
9090
const config = {
@@ -185,7 +185,7 @@ export const renderTagPage = ({
185185
const enhancedNAV = enhanceNav(NAV);
186186

187187
const darkModeAvailable =
188-
tagPage.config.serverSideABTests?.['webex-dark-mode-web'] === 'enable';
188+
tagPage.config.serverSideABTests?.['webx-dark-mode-web'] === 'enable';
189189

190190
// Fronts are not supported in Apps
191191
const config: Config = {

0 commit comments

Comments
 (0)