Просмотр исходного кода

Merge pull request #24597 from overleaf/ii-flexible-group-licensing-replace-users-with-licenses-2

[web] FL "licenses" in cost summary preview

GitOrigin-RevId: f6020fe0c5903dc2b1ebb923718525403e5a2fe7
ilkin-overleaf 1 год назад
Родитель
Сommit
b9bc2b01fd

+ 1 - 2
services/web/frontend/extracted-translations.json

@@ -883,6 +883,7 @@
   "let_us_know_what_you_think": "",
   "lets_get_those_premium_features": "",
   "library": "",
+  "licenses": "",
   "limited_document_history": "",
   "limited_offer": "",
   "limited_to_n_editors": "",
@@ -1431,7 +1432,6 @@
   "search_whole_word": "",
   "search_within_selection": "",
   "searched_path_for_lines_containing": "",
-  "seats": "",
   "security": "",
   "see_changes_in_your_documents_live": "",
   "select_a_column_or_a_merged_cell_to_align": "",
@@ -1923,7 +1923,6 @@
   "user_first_name_attribute": "",
   "user_last_name_attribute": "",
   "user_sessions": "",
-  "users": "",
   "using_latex": "",
   "using_premium_features": "",
   "using_the_overleaf_editor": "",

+ 1 - 1
services/web/frontend/js/features/group-management/components/add-seats/cost-summary.tsx

@@ -65,7 +65,7 @@ function CostSummary({ subscriptionChange, totalLicenses }: CostSummaryProps) {
                     {subscriptionChange.nextInvoice.plan.name} x{' '}
                     {subscriptionChange.change.addOn.quantity -
                       subscriptionChange.change.addOn.prevQuantity}{' '}
-                    {t('seats')}
+                    {t('licenses')}
                   </span>
                   <span data-testid="price">
                     {formatCurrency(

+ 1 - 1
services/web/frontend/js/features/group-management/components/upgrade-subscription/upgrade-subscription-upgrade-summary.tsx

@@ -36,7 +36,7 @@ function UpgradeSummary({ subscriptionChange }: UpgradeSummaryProps) {
             <ListGroup.Item className="bg-transparent border-0 px-0 gap-3 card-description-secondary">
               <span className="me-auto">
                 {subscriptionChange.nextInvoice.plan.name} x {totalLicenses}{' '}
-                {t('users')}
+                {t('licenses')}
               </span>
               <span data-testid="subtotal">
                 {formatCurrency(

+ 1 - 2
services/web/locales/en.json

@@ -1165,6 +1165,7 @@
   "libraries": "Libraries",
   "library": "Library",
   "license": "License",
+  "licenses": "Licenses",
   "limited_document_history": "Limited document history",
   "limited_to_n_editors": "Limited to __count__ editor",
   "limited_to_n_editors_or_reviewers": "Limited to __count__ editor or reviewer",
@@ -1895,7 +1896,6 @@
   "search_whole_word": "Whole word",
   "search_within_selection": "Within selection",
   "searched_path_for_lines_containing": "Searched __path__ for lines containing \"__query__\"",
-  "seats": "Seats",
   "secondary_email_password_reset": "That email is registered as a secondary email. Please enter the primary email for your account.",
   "security": "Security",
   "see_changes_in_your_documents_live": "See changes in your documents, live",
@@ -2469,7 +2469,6 @@
   "user_not_found": "User not found",
   "user_sessions": "User Sessions",
   "user_wants_you_to_see_project": "__username__ would like you to join __projectname__",
-  "users": "users",
   "using_latex": "Using LaTeX",
   "using_premium_features": "Using premium features",
   "using_the_overleaf_editor": "Using the __appName__ Editor",

+ 1 - 1
services/web/test/frontend/features/group-management/components/add-seats.spec.tsx

@@ -258,7 +258,7 @@ describe('<AddSeats />', function () {
 
           cy.findByTestId('plan').within(() => {
             cy.findByText(
-              `${this.body.nextInvoice.plan.name} x ${this.adding} Seats`
+              `${this.body.nextInvoice.plan.name} x ${this.adding} Licenses`
             )
             cy.findByTestId('price').should(
               'have.text',