diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index e11bb8002a..828fedb323 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -62,6 +62,9 @@ "add_additional_certificate": "", "add_affiliation": "", "add_ai_assist": "", + "add_ai_assist_annual_and_get_unlimited_access": "", + "add_ai_assist_monthly_and_get_unlimited_access": "", + "add_ai_assist_to_your_plan": "", "add_another_address_line": "", "add_another_email": "", "add_another_token": "", @@ -72,8 +75,6 @@ "add_company_details": "", "add_email_address": "", "add_email_to_claim_features": "", - "add_error_assist_annual_to_your_projects": "", - "add_error_assist_to_your_projects": "", "add_files": "", "add_more_collaborators": "", "add_more_licenses_to_my_plan": "", diff --git a/services/web/frontend/js/features/subscription/components/dashboard/states/active/active-new.tsx b/services/web/frontend/js/features/subscription/components/dashboard/states/active/active-new.tsx index 2bd8639f6a..2f01474251 100644 --- a/services/web/frontend/js/features/subscription/components/dashboard/states/active/active-new.tsx +++ b/services/web/frontend/js/features/subscription/components/dashboard/states/active/active-new.tsx @@ -16,7 +16,7 @@ import isInFreeTrial from '../../../../util/is-in-free-trial' import AddOns from '@/features/subscription/components/dashboard/states/active/add-ons' import { AI_ADD_ON_CODE, - AI_STANDALONE_PLAN_CODE, + AI_ASSIST_STANDALONE_MONTHLY_PLAN_CODE, isStandaloneAiPlanCode, } from '@/features/subscription/data/add-on-codes' import getMeta from '@/utils/meta' @@ -74,7 +74,11 @@ export function ActiveSubscriptionNew({ const handlePlanChange = () => setModalIdShown('change-plan') const handleManageOnWritefull = () => setModalIdShown('manage-on-writefull') const handleCancelClick = (addOnCode: string) => { - if ([AI_STANDALONE_PLAN_CODE, AI_ADD_ON_CODE].includes(addOnCode)) { + if ( + [AI_ASSIST_STANDALONE_MONTHLY_PLAN_CODE, AI_ADD_ON_CODE].includes( + addOnCode + ) + ) { setModalIdShown('cancel-ai-add-on') } } diff --git a/services/web/frontend/js/features/subscription/components/dashboard/states/active/add-ons.tsx b/services/web/frontend/js/features/subscription/components/dashboard/states/active/add-ons.tsx index bd23fabad3..9d7a511ab0 100644 --- a/services/web/frontend/js/features/subscription/components/dashboard/states/active/add-ons.tsx +++ b/services/web/frontend/js/features/subscription/components/dashboard/states/active/add-ons.tsx @@ -6,8 +6,8 @@ import MaterialIcon from '@/shared/components/material-icon' import { ADD_ON_NAME, AI_ADD_ON_CODE, - AI_STANDALONE_ANNUAL_PLAN_CODE, - AI_STANDALONE_PLAN_CODE, + AI_ASSIST_STANDALONE_ANNUAL_PLAN_CODE, + AI_ASSIST_STANDALONE_MONTHLY_PLAN_CODE, } from '@/features/subscription/data/add-on-codes' import sparkle from '@/shared/svgs/sparkle.svg' import { PaidSubscription } from '../../../../../../../../types/subscription/dashboard/subscription' @@ -32,8 +32,8 @@ type AddOnProps = { function resolveAddOnName(addOnCode: string) { switch (addOnCode) { case AI_ADD_ON_CODE: - case AI_STANDALONE_ANNUAL_PLAN_CODE: - case AI_STANDALONE_PLAN_CODE: + case AI_ASSIST_STANDALONE_ANNUAL_PLAN_CODE: + case AI_ASSIST_STANDALONE_MONTHLY_PLAN_CODE: return ADD_ON_NAME } } @@ -156,11 +156,12 @@ function AddOns({ const hasAiAssistViaWritefull = getMeta('ol-hasAiAssistViaWritefull') const addOnsDisplayPrices = onStandalonePlan ? { - [AI_STANDALONE_PLAN_CODE]: subscription.payment.displayPrice, + [AI_ASSIST_STANDALONE_MONTHLY_PLAN_CODE]: + subscription.payment.displayPrice, } : subscription.payment.addOnDisplayPricesWithoutAdditionalLicense const addOnsToDisplay = onStandalonePlan - ? [{ addOnCode: AI_STANDALONE_PLAN_CODE }] + ? [{ addOnCode: AI_ASSIST_STANDALONE_MONTHLY_PLAN_CODE }] : subscription.addOns?.filter(addOn => addOn.addOnCode !== LICENSE_ADD_ON) const hasAddons = diff --git a/services/web/frontend/js/features/subscription/components/preview-subscription-change/root.tsx b/services/web/frontend/js/features/subscription/components/preview-subscription-change/root.tsx index cb9565e9e4..705af73e27 100644 --- a/services/web/frontend/js/features/subscription/components/preview-subscription-change/root.tsx +++ b/services/web/frontend/js/features/subscription/components/preview-subscription-change/root.tsx @@ -108,7 +108,7 @@ function PreviewSubscriptionChange() { {aiAddOnChange && (
AI Assist Annual and get unlimited* access to Overleaf and Writefull AI features.", + "add_ai_assist_monthly_and_get_unlimited_access": "Add AI Assist Monthly and get unlimited* access to Overleaf and Writefull AI features.", + "add_ai_assist_to_your_plan": "Add AI Assist to your plan and get unlimited* access to Overleaf and Writefull AI features.", "add_another_address_line": "Add another address line", "add_another_email": "Add another email", "add_another_token": "Add another token", @@ -87,8 +90,6 @@ "add_email": "Add Email", "add_email_address": "Add email address", "add_email_to_claim_features": "Add an institutional email address to claim your features.", - "add_error_assist_annual_to_your_projects": "Add Error Assist Annual to your projects and get unlimited AI help to fix LaTeX errors faster.", - "add_error_assist_to_your_projects": "Add Error Assist to your projects and get unlimited AI help to fix LaTeX errors faster.", "add_files": "Add Files", "add_more_collaborators": "Add more collaborators", "add_more_licenses_to_my_plan": "Add more licenses to my plan", @@ -818,7 +819,6 @@ "generic_something_went_wrong": "Sorry, something went wrong", "get_collaborative_benefits": "Get the collaborative benefits from __appName__, even if you prefer to work offline", "get_discounted_plan": "Get discounted plan", - "get_error_assist": "Get Error Assist", "get_exclusive_access_to_labs": "Get exclusive access to early-stage experiments when you join Overleaf Labs. All we ask in return is your honest feedback to help us develop and improve.", "get_in_touch": "Get in touch", "get_in_touch_having_problems": "Get in touch with support if you’re having problems",