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 && (