diff --git a/services/web/app/src/Features/Project/ProjectController.mjs b/services/web/app/src/Features/Project/ProjectController.mjs index ee533c61ce..11ee8bd13c 100644 --- a/services/web/app/src/Features/Project/ProjectController.mjs +++ b/services/web/app/src/Features/Project/ProjectController.mjs @@ -528,7 +528,7 @@ const _ProjectController = { user: (async () => { const user = await User.findById( userId, - 'email first_name last_name referal_id signUpDate featureSwitches features featuresEpoch refProviders alphaProgram betaProgram isAdmin ace labsProgram labsExperiments completedTutorials writefull aiFeatures lastTrial' + 'email first_name last_name referal_id signUpDate featureSwitches features featuresEpoch refProviders alphaProgram betaProgram isAdmin ace labsProgram labsExperiments completedTutorials writefull aiFeatures' ).exec() // Handle case of deleted user if (!user) { @@ -642,15 +642,6 @@ const _ProjectController = { subscription == null || isStandaloneAiAddOnPlanCode(subscription.planCode) - // The test's audience: free users who've spent their trial and can't start - // another, yet still see a misleading "free trial" CTA. - const trialIneligible = - !anonymous && allowedFreeTrial && Boolean(user?.lastTrial) - - if (trialIneligible) { - splitTests.push('paywall-cta-trial-ineligible') - } - const splitTestAssignments = Object.fromEntries( await Promise.all( splitTests.map(async splitTest => [ diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 20cc6f3480..4c1ef76182 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -1662,7 +1662,6 @@ "refresh": "", "refresh_page_after_linking_dropbox": "", "refresh_page_after_starting_free_trial": "", - "refresh_page_after_subscribing": "", "refreshing": "", "refund_with_description": "", "regards": "", diff --git a/services/web/frontend/js/features/history/components/change-list/owner-paywall-prompt.tsx b/services/web/frontend/js/features/history/components/change-list/owner-paywall-prompt.tsx index c26018aafd..0a8d0e6a75 100644 --- a/services/web/frontend/js/features/history/components/change-list/owner-paywall-prompt.tsx +++ b/services/web/frontend/js/features/history/components/change-list/owner-paywall-prompt.tsx @@ -3,12 +3,10 @@ import { useCallback, useEffect, useState } from 'react' import * as eventTracking from '../../../../infrastructure/event-tracking' import StartFreeTrialButton from '../../../../shared/components/start-free-trial-button' import UpgradeBenefits from '@/shared/components/upgrade-benefits' -import { useFeatureFlag } from '@/shared/context/split-test-context' export function OwnerPaywallPrompt() { const { t } = useTranslation() const [clickedFreeTrialButton, setClickedFreeTrialButton] = useState(false) - const showSubscribeNow = useFeatureFlag('paywall-cta-trial-ineligible') useEffect(() => { eventTracking.send('subscription-funnel', 'editor-click-feature', 'history') @@ -36,15 +34,11 @@ export function OwnerPaywallPrompt() { buttonProps={{ variant: 'premium' }} handleClick={handleFreeTrialClick} > - {showSubscribeNow ? t('subscribe_now') : t('start_free_trial')} + {t('start_free_trial')}
{clickedFreeTrialButton ? ( -- {showSubscribeNow - ? t('refresh_page_after_subscribing') - : t('refresh_page_after_starting_free_trial')} -
+{t('refresh_page_after_starting_free_trial')}
) : null} ) diff --git a/services/web/frontend/js/features/pdf-preview/components/compile-time-warning-upgrade-prompt-inner.tsx b/services/web/frontend/js/features/pdf-preview/components/compile-time-warning-upgrade-prompt-inner.tsx index 7561e74cee..ff49e7cd4e 100644 --- a/services/web/frontend/js/features/pdf-preview/components/compile-time-warning-upgrade-prompt-inner.tsx +++ b/services/web/frontend/js/features/pdf-preview/components/compile-time-warning-upgrade-prompt-inner.tsx @@ -3,14 +3,12 @@ import StartFreeTrialButton from '@/shared/components/start-free-trial-button' import * as eventTracking from '../../../infrastructure/event-tracking' import { useTranslation } from 'react-i18next' import { FC } from 'react' -import { useFeatureFlag } from '@/shared/context/split-test-context' export const CompileTimeWarningUpgradePromptInner: FC<{ handleDismissWarning: () => void segmentation: eventTracking.Segmentation }> = ({ handleDismissWarning, segmentation }) => { const { t } = useTranslation() - const showSubscribeNow = useFeatureFlag('paywall-cta-trial-ineligible') return (