From 0661873004a9a149910b0dad9e35b0790ddb01b9 Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Wed, 27 Aug 2025 10:07:30 -0700 Subject: [PATCH 1/3] patch: use fallback/original variant for non-EN AB tests --- src/components/AB/TestWrapper.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/AB/TestWrapper.tsx b/src/components/AB/TestWrapper.tsx index 47a0a81c861..a12e0c8d125 100644 --- a/src/components/AB/TestWrapper.tsx +++ b/src/components/AB/TestWrapper.tsx @@ -1,7 +1,10 @@ +import { getLocale } from "next-intl/server" import type { ReactNode } from "react" import { IS_PREVIEW_DEPLOY, IS_PROD } from "@/lib/utils/env" +import { DEFAULT_LOCALE } from "@/lib/constants" + import { ClientABTestWrapper } from "./ClientABTestWrapper" import { ABTestDebugPanel } from "./TestDebugPanel" import { ABTestTracker } from "./TestTracker" @@ -20,6 +23,9 @@ const ABTestWrapper = async ({ variants, fallback, }: ABTestWrapperProps) => { + const locale = await getLocale() + if (locale !== DEFAULT_LOCALE) return <>{fallback || variants[0]}> + try { // Get deterministic assignment const assignment = await getABTestAssignment(testKey) From ee2bd00df8b4eda671736de527403458be3fc51d Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Wed, 27 Aug 2025 10:12:53 -0700 Subject: [PATCH 2/3] feat: add enableAllLocales boolean to override en-only testing --- src/components/AB/TestWrapper.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/AB/TestWrapper.tsx b/src/components/AB/TestWrapper.tsx index a12e0c8d125..34b1f6f4e61 100644 --- a/src/components/AB/TestWrapper.tsx +++ b/src/components/AB/TestWrapper.tsx @@ -16,15 +16,18 @@ type ABTestWrapperProps = { testKey: string variants: ABTestVariants fallback?: ReactNode + enableAllLocales?: boolean } const ABTestWrapper = async ({ testKey, variants, fallback, + enableAllLocales, }: ABTestWrapperProps) => { const locale = await getLocale() - if (locale !== DEFAULT_LOCALE) return <>{fallback || variants[0]}> + if (locale !== DEFAULT_LOCALE && !enableAllLocales) + return <>{fallback || variants[0]}> try { // Get deterministic assignment From 123e20c922831716302ee8fe787fea8c37cdc632 Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Wed, 27 Aug 2025 10:17:30 -0700 Subject: [PATCH 3/3] patch: h2 font size on feedback card --- src/components/FeedbackCard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/FeedbackCard.tsx b/src/components/FeedbackCard.tsx index 563a7f652f8..09993defda0 100644 --- a/src/components/FeedbackCard.tsx +++ b/src/components/FeedbackCard.tsx @@ -69,7 +69,9 @@ const FeedbackCard = ({ prompt, isArticle, ...props }: FeedbackCardProps) => { dir={dir} >
{t("feedback-widget-thank-you-subtitle")}{" "}