Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

remove a/b test feature flag

Steven Teyeb9bfd0b4188
diff --git a/apps/web/lib/edge-config/get-feature-flags.ts b/apps/web/lib/edge-config/get-feature-flags.ts
index 0607ff2a0a..6ece7e3936 100644
--- a/apps/web/lib/edge-config/get-feature-flags.ts
+++ b/apps/web/lib/edge-config/get-feature-flags.ts
@@ -17,7 +17,6 @@ export const getFeatureFlags = async ({
const workspaceFeatures: Record<BetaFeatures, boolean> = {
noDubLink: false,
- abTesting: false,
analyticsSettingsSiteVisitTracking: false,
emailCampaigns: false,
};
diff --git a/apps/web/lib/types.ts b/apps/web/lib/types.ts
index ed4042f0f7..dc04019970 100644
--- a/apps/web/lib/types.ts
+++ b/apps/web/lib/types.ts
@@ -203,7 +203,6 @@ export type PlanProps = (typeof plans)[number];
export type BetaFeatures =
| "noDubLink"
- | "abTesting"
| "analyticsSettingsSiteVisitTracking"
| "emailCampaigns";
diff --git a/apps/web/ui/links/link-builder/link-feature-buttons.tsx b/apps/web/ui/links/link-builder/link-feature-buttons.tsx
index bbf2130651..b46834331e 100644
--- a/apps/web/ui/links/link-builder/link-feature-buttons.tsx
+++ b/apps/web/ui/links/link-builder/link-feature-buttons.tsx
@@ -26,9 +26,7 @@ export function LinkFeatureButtons({
<PasswordModal />
<UTMModal />
<TargetingModal />
- <ExpirationModal />
- {flags?.abTesting && <ABTestingModal />}
-
+ <ExpirationModal /> <ABTestingModal />
<div className={cn("flex min-w-0 items-center gap-2", className)}>
<UTMButton />
<div className="contents max-[380px]:hidden">
@@ -40,7 +38,7 @@ export function LinkFeatureButtons({
variant === "page" && "max-[960px]:hidden",
)}
>
- {flags?.abTesting && <ABTestingButton />}
+ <ABTestingButton />
<PasswordButton />
<ExpirationButton />
</div>
diff --git a/apps/web/ui/links/link-builder/more-dropdown.tsx b/apps/web/ui/links/link-builder/more-dropdown.tsx
index 8ddd460e60..d1ab13512f 100644
--- a/apps/web/ui/links/link-builder/more-dropdown.tsx
+++ b/apps/web/ui/links/link-builder/more-dropdown.tsx
@@ -20,7 +20,7 @@ export function MoreDropdown({
}: {
variant?: "page" | "modal";
}) {
- const { domains, flags, defaultProgramId } = useWorkspace();
+ const { domains, defaultProgramId } = useWorkspace();
const { isMobile } = useMediaQuery();
const [openPopover, setOpenPopover] = useState(false);
const { watch, setValue } = useFormContext<LinkFormData>();
@@ -30,7 +30,6 @@ export function MoreDropdown({
const options = useMemo(() => {
return [...(isMobile ? MOBILE_MORE_ITEMS : []), ...MORE_ITEMS].filter(
(option) => {
- if (option.key === "testVariants") return flags?.abTesting;
if (option.key === "partnerId") return Boolean(defaultProgramId);
if (option.key === "linkRetentionCleanupDisabledAt")
return (
@@ -42,7 +41,7 @@ export function MoreDropdown({
return true;
},
);
- }, [data, isMobile, domains, flags, defaultProgramId, variant]);
+ }, [data, isMobile, domains, defaultProgramId, variant]);
const { ABTestingModal, setShowABTestingModal } = useABTestingModal();
const { PasswordModal, setShowPasswordModal } = usePasswordModal();
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 6e5d343c12..4599c044d7 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/utils",
"description": "Utility functions and constants for Dub",
- "version": "0.1.44",
+ "version": "0.1.45",
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsx
index 545b6b991a..c97fee0f98 100644
--- a/packages/utils/src/constants/pricing.tsx
+++ b/packages/utils/src/constants/pricing.tsx
@@ -213,7 +213,7 @@ export const PLANS = [
},
{
id: "tests",
- text: "A/B testing (beta)",
+ text: "A/B testing",
},
{
id: "roles",