Skip to content

Commit 224e599

Browse files
committed
Remove no boosts AB test
1 parent 2658c1b commit 224e599

File tree

3 files changed

+1
-53
lines changed

3 files changed

+1
-53
lines changed

dotcom-rendering/src/components/DecideContainer.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ type Props = {
4848
frontId?: string;
4949
collectionId: number;
5050
containerLevel?: DCRContainerLevel;
51-
isInNoBoostsAbTestVariant?: boolean;
5251
};
5352

5453
export const DecideContainer = ({
@@ -64,7 +63,6 @@ export const DecideContainer = ({
6463
frontId,
6564
collectionId,
6665
containerLevel,
67-
isInNoBoostsAbTestVariant,
6866
}: Props) => {
6967
switch (containerType) {
7068
case 'dynamic/fast':
@@ -270,7 +268,6 @@ export const DecideContainer = ({
270268
aspectRatio={aspectRatio}
271269
containerLevel={containerLevel}
272270
collectionId={collectionId}
273-
isInNoBoostsAbTestVariant={isInNoBoostsAbTestVariant}
274271
/>
275272
);
276273
case 'scrollable/small':

dotcom-rendering/src/components/FlexibleGeneral.tsx

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import type { ResponsiveFontSize } from './CardHeadline';
2121
import type { Loading } from './CardPicture';
2222
import { FeatureCard } from './FeatureCard';
2323
import { FrontCard } from './FrontCard';
24-
import { Hide } from './Hide';
2524
import type { Alignment } from './SupportingContent';
2625

2726
type Props = {
@@ -33,7 +32,6 @@ type Props = {
3332
aspectRatio: AspectRatio;
3433
containerLevel?: DCRContainerLevel;
3534
collectionId: number;
36-
isInNoBoostsAbTestVariant?: boolean;
3735
};
3836

3937
type RowLayout = 'oneCardHalfWidth' | 'oneCardFullWidth' | 'twoCard';
@@ -582,7 +580,6 @@ export const FlexibleGeneral = ({
582580
aspectRatio,
583581
containerLevel = 'Primary',
584582
collectionId,
585-
isInNoBoostsAbTestVariant,
586583
}: Props) => {
587584
const splash = [...groupedTrails.splash].slice(0, 1).map((snap) => ({
588585
...snap,
@@ -616,48 +613,7 @@ export const FlexibleGeneral = ({
616613
{groupedCards.map((row, i) => {
617614
switch (row.layout) {
618615
case 'oneCardFullWidth':
619-
return isInNoBoostsAbTestVariant ? (
620-
<>
621-
<Hide when="above" breakpoint="tablet">
622-
<HalfWidthCardLayout
623-
key={row.cards[0]?.uniqueId}
624-
cards={row.cards}
625-
containerPalette={containerPalette}
626-
showAge={showAge}
627-
absoluteServerTimes={
628-
absoluteServerTimes
629-
}
630-
imageLoading={imageLoading}
631-
isFirstRow={!splash.length && i === 0}
632-
isFirstStandardRow={i === 0}
633-
aspectRatio={aspectRatio}
634-
isLastRow={
635-
i === groupedCards.length - 1
636-
}
637-
containerLevel={containerLevel}
638-
/>
639-
</Hide>
640-
<Hide when="below" breakpoint="tablet">
641-
<FullWidthCardLayout
642-
key={row.cards[0]?.uniqueId}
643-
cards={row.cards}
644-
containerPalette={containerPalette}
645-
showAge={showAge}
646-
absoluteServerTimes={
647-
absoluteServerTimes
648-
}
649-
imageLoading={imageLoading}
650-
aspectRatio={aspectRatio}
651-
isFirstRow={!splash.length && i === 0}
652-
isLastRow={
653-
i === groupedCards.length - 1
654-
}
655-
containerLevel={containerLevel}
656-
collectionId={collectionId}
657-
/>
658-
</Hide>
659-
</>
660-
) : (
616+
return (
661617
<FullWidthCardLayout
662618
key={row.cards[0]?.uniqueId}
663619
cards={row.cards}

dotcom-rendering/src/layouts/FrontLayout.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ export const FrontLayout = ({ front, NAV }: Props) => {
136136

137137
const { absoluteServerTimes = false } = front.config.switches;
138138

139-
const isInNoBoostsVariant = abTests.noBoostsVariant === 'variant';
140-
141139
const fallbackAspectRatio = (collectionType: DCRContainerType) => {
142140
switch (collectionType) {
143141
case 'scrollable/feature':
@@ -636,9 +634,6 @@ export const FrontLayout = ({ front, NAV }: Props) => {
636634
sectionId={ophanName}
637635
collectionId={index + 1}
638636
containerLevel={collection.containerLevel}
639-
isInNoBoostsAbTestVariant={
640-
pageId === 'uk' && isInNoBoostsVariant
641-
}
642637
/>
643638
</FrontSection>
644639

0 commit comments

Comments
 (0)