From 46c7341cf8530956501e7a4f7abc559534b0f3ab Mon Sep 17 00:00:00 2001 From: Domagoj Kriskovic Date: Mon, 14 Apr 2025 11:00:01 +0200 Subject: [PATCH] Update share modal copy for reviewer role (#24694) * Update share modal copy for reviewer role * fix ShareProjectModal test * use "limited_to_n_collaborators_per_project" GitOrigin-RevId: f5afcb18a3921a6b1132a4c323af9d8395a7d07b --- .../web/frontend/extracted-translations.json | 24 +++++++++---------- .../components/access-levels-changed.tsx | 6 ++--- .../collaborators-limit-upgrade.tsx | 6 +++-- .../components/edit-member.tsx | 4 ++-- .../components/send-invites-notice.tsx | 10 +++++--- .../view-only-access-modal-content.tsx | 4 ++-- services/web/locales/en.json | 24 +++++++++---------- .../components/share-project-modal.test.jsx | 8 +++---- 8 files changed, 44 insertions(+), 42 deletions(-) diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 4eadb9b175..77457ed74d 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -73,7 +73,7 @@ "add_error_assist_annual_to_your_projects": "", "add_error_assist_to_your_projects": "", "add_files": "", - "add_more_editors": "", + "add_more_collaborators": "", "add_more_licenses_to_my_plan": "", "add_more_managers": "", "add_new_email": "", @@ -903,11 +903,9 @@ "licenses": "", "limited_document_history": "", "limited_offer": "", + "limited_to_n_collaborators_per_project": "", + "limited_to_n_collaborators_per_project_plural": "", "limited_to_n_editors": "", - "limited_to_n_editors_or_reviewers": "", - "limited_to_n_editors_or_reviewers_per_project": "", - "limited_to_n_editors_or_reviewers_per_project_plural": "", - "limited_to_n_editors_or_reviewers_plural": "", "limited_to_n_editors_per_project": "", "limited_to_n_editors_per_project_plural": "", "limited_to_n_editors_plural": "", @@ -1190,7 +1188,7 @@ "pick_up_where_you_left_off": "", "plan": "", "plan_tooltip": "", - "please_ask_the_project_owner_to_upgrade_more_editors": "", + "please_ask_the_project_owner_to_upgrade_more_collaborators": "", "please_ask_the_project_owner_to_upgrade_to_track_changes": "", "please_change_primary_to_remove": "", "please_check_your_inbox_to_confirm": "", @@ -1733,10 +1731,10 @@ "this_is_a_labs_experiment_for_the_new_overleaf_editor_some_features_are_still_in_progress": "", "this_is_a_new_feature": "", "this_is_the_file_that_references_pulled_from_your_reference_manager_will_be_added_to": "", - "this_project_already_has_maximum_editors": "", + "this_project_already_has_maximum_collaborators": "", "this_project_contains_a_file_called_output": "", + "this_project_exceeded_collaborator_limit": "", "this_project_exceeded_compile_timeout_limit_on_free_plan": "", - "this_project_exceeded_editor_limit": "", "this_project_has_more_than_max_collabs": "", "this_project_is_public": "", "this_project_is_public_read_only": "", @@ -1923,7 +1921,7 @@ "upgrade_now": "", "upgrade_plan": "", "upgrade_summary": "", - "upgrade_to_add_more_editors_and_access_collaboration_features": "", + "upgrade_to_add_more_collaborators_and_access_collaboration_features": "", "upgrade_to_get_feature": "", "upgrade_to_review": "", "upgrade_to_track_changes": "", @@ -2069,8 +2067,8 @@ "you_can_now_enable_sso": "", "you_can_now_log_in_sso": "", "you_can_request_a_maximum_of_limit_fixes_per_day": "", - "you_can_select_or_invite": "", - "you_can_select_or_invite_plural": "", + "you_can_select_or_invite_collaborator": "", + "you_can_select_or_invite_collaborator_plural": "", "you_can_still_use_your_premium_features": "", "you_cant_add_or_change_password_due_to_sso": "", "you_cant_join_this_group_subscription": "", @@ -2118,8 +2116,8 @@ "your_plan_is_limited_to_n_editors": "", "your_plan_is_limited_to_n_editors_plural": "", "your_premium_plan_is_paused": "", + "your_project_exceeded_collaborator_limit": "", "your_project_exceeded_compile_timeout_limit_on_free_plan": "", - "your_project_exceeded_editor_limit": "", "your_project_near_compile_timeout_limit": "", "your_project_need_more_time_to_compile": "", "your_projects": "", @@ -2140,7 +2138,7 @@ "youre_signed_in_as_logout": "", "youve_added_more_licenses": "", "youve_added_x_more_licenses_to_your_subscription_invite_people": "", - "youve_lost_edit_access": "", + "youve_lost_collaboration_access": "", "youve_paused_your_subscription": "", "youve_unlinked_all_users": "", "youve_upgraded_your_plan": "", diff --git a/services/web/frontend/js/features/share-project-modal/components/access-levels-changed.tsx b/services/web/frontend/js/features/share-project-modal/components/access-levels-changed.tsx index e0ac152a58..37c9259b73 100644 --- a/services/web/frontend/js/features/share-project-modal/components/access-levels-changed.tsx +++ b/services/web/frontend/js/features/share-project-modal/components/access-levels-changed.tsx @@ -29,11 +29,11 @@ export default function AccessLevelsChanged({ } content={ somePendingEditorsResolved ? ( -

{t('your_project_exceeded_editor_limit')}

+

{t('your_project_exceeded_collaborator_limit')}

) : (

- {t('this_project_exceeded_editor_limit')}{' '} - {t('you_can_select_or_invite', { + {t('this_project_exceeded_collaborator_limit')}{' '} + {t('you_can_select_or_invite_collaborator', { count: features.collaborators, })}

diff --git a/services/web/frontend/js/features/share-project-modal/components/collaborators-limit-upgrade.tsx b/services/web/frontend/js/features/share-project-modal/components/collaborators-limit-upgrade.tsx index 450e42669d..4b63c63e08 100644 --- a/services/web/frontend/js/features/share-project-modal/components/collaborators-limit-upgrade.tsx +++ b/services/web/frontend/js/features/share-project-modal/components/collaborators-limit-upgrade.tsx @@ -15,10 +15,12 @@ export default function CollaboratorsLimitUpgrade() {