[web] rm annual-prices-monthly-rates split test (#26727)

* [web] rm annual-prices-monthly-rates split test

- rm monthly rates treatment
- rm unused translations
- rm unused supporting functions
- rm unused styles

GitOrigin-RevId: 5901853245cd9b01ee9e4774154d29ae8f5fcae5
This commit is contained in:
Kristina
2025-07-02 14:42:42 +02:00
committed by Copybot
parent 3f1a930046
commit 4eee7cd6ef
6 changed files with 0 additions and 57 deletions

View File

@@ -23,17 +23,6 @@ function shouldPlanChangeAtTermEnd(oldPlan, newPlan, isInTrial) {
return oldPlan.price_in_cents > newPlan.price_in_cents
}
/**
* This is duplicated in:
* - services/web/scripts/plan-prices/plans.mjs
* - services/web/modules/subscriptions/frontend/js/pages/plans/group-member-picker/group-plan-pricing.js
* @param {number} number
* @returns {number}
*/
function roundUpToNearest5Cents(number) {
return Math.ceil(number * 20) / 20
}
/**
* @import { CurrencyCode } from '../../../../types/subscription/currency'
*/
@@ -48,7 +37,6 @@ function roundUpToNearest5Cents(number) {
* @typedef {Object} LocalizedGroupPrice
* @property {PlanToPrice} price
* @property {PlanToPrice} pricePerUser
* @property {PlanToPrice} pricePerUserPerMonth
*/
/**
@@ -65,17 +53,11 @@ function generateInitialLocalizedGroupPrice(recommendedCurrency, locale) {
INITIAL_LICENSE_SIZE
].price_in_cents / 100
const collaboratorPricePerUser = collaboratorPrice / INITIAL_LICENSE_SIZE
const collaboratorPricePerUserPerMonth = roundUpToNearest5Cents(
collaboratorPrice / INITIAL_LICENSE_SIZE / 12
)
const professionalPrice =
GroupPlansData.enterprise.professional[recommendedCurrency][
INITIAL_LICENSE_SIZE
].price_in_cents / 100
const professionalPricePerUser = professionalPrice / INITIAL_LICENSE_SIZE
const professionalPricePerUserPerMonth = roundUpToNearest5Cents(
professionalPrice / INITIAL_LICENSE_SIZE / 12
)
/**
* @param {number} price
@@ -93,10 +75,6 @@ function generateInitialLocalizedGroupPrice(recommendedCurrency, locale) {
collaborator: formatPrice(collaboratorPricePerUser),
professional: formatPrice(professionalPricePerUser),
},
pricePerUserPerMonth: {
collaborator: formatPrice(collaboratorPricePerUserPerMonth),
professional: formatPrice(professionalPricePerUserPerMonth),
},
}
}

View File

@@ -1049,10 +1049,6 @@
.plans-card-price-container-mobile {
display: flex;
align-items: baseline;
.light-gray-text:has(.billed-annually-disclaimer) {
align-self: center;
}
}
.group-plans-card-price-container-mobile {

View File

@@ -1081,10 +1081,6 @@ $z-index-group-member-picker-list: 1;
.plans-card-price-container-mobile {
display: flex;
align-items: baseline;
.light-gray-text:has(.billed-annually-disclaimer) {
align-self: center;
}
}
.group-plans-card-price-container-mobile {

View File

@@ -236,7 +236,6 @@
"beta_program_opt_in_action": "Opt-In to Beta Program",
"beta_program_opt_out_action": "Opt-Out of Beta Program",
"bibliographies": "Bibliographies",
"billed_annually": "billed annually",
"billed_annually_at": "Billed annually at <0>__price__</0> <1>(includes plan and any add-ons)</1>",
"billed_monthly_at": "Billed monthly at <0>__price__</0> <1>(includes plan and any add-ons)</1>",
"billed_yearly": "billed yearly",
@@ -1626,7 +1625,6 @@
"per_month": "per month",
"per_month_billed_annually": "per month, billed annually",
"per_month_x_annually": "per month, __price__ annually",
"per_user_month": "per user / month",
"per_user_year": "per user / year",
"per_year": "per year",
"percent_is_the_percentage_of_the_line_width": "% is the percentage of the line width",

View File

@@ -64,11 +64,6 @@ const currencies = [
'USD',
]
/**
* This is duplicated in:
* - services/web/app/src/Features/Subscription/SubscriptionHelper.js
* - services/web/modules/subscriptions/frontend/js/pages/plans-new-design/group-member-picker/group-plan-pricing.js
*/
function roundUpToNearest5Cents(number) {
return Math.ceil(number * 20) / 20
}

View File

@@ -184,10 +184,6 @@ describe('SubscriptionHelper', function () {
collaborator: '5 CHF',
professional: '50 CHF',
},
pricePerUserPerMonth: {
collaborator: '0,45 CHF',
professional: '4,20 CHF',
},
})
})
})
@@ -209,10 +205,6 @@ describe('SubscriptionHelper', function () {
collaborator: '10 kr.',
professional: '100 kr.',
},
pricePerUserPerMonth: {
collaborator: '0,85 kr.',
professional: '8,35 kr.',
},
})
})
})
@@ -234,10 +226,6 @@ describe('SubscriptionHelper', function () {
collaborator: '15 kr',
professional: '150 kr',
},
pricePerUserPerMonth: {
collaborator: '1,25 kr',
professional: '12,50 kr',
},
})
})
})
@@ -261,10 +249,6 @@ describe('SubscriptionHelper', function () {
collaborator: 'kr 20',
professional: 'kr 200',
},
pricePerUserPerMonth: {
collaborator: 'kr 1.70',
professional: 'kr 16.70',
},
})
})
})
@@ -286,10 +270,6 @@ describe('SubscriptionHelper', function () {
collaborator: '$25',
professional: '$250',
},
pricePerUserPerMonth: {
collaborator: '$2.10',
professional: '$20.85',
},
})
})
})