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

Merge pull request #18032 from overleaf/dp-compromised-password-copy

Update copy and spacing of compromised password page to match latest designs

GitOrigin-RevId: c918e6a32e07c00087452b2c5e1f0521f3677cd0
David 2 лет назад
Родитель
Сommit
10d218fe8f

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

@@ -140,6 +140,7 @@
   "change_or_cancel-or": "",
   "change_or_cancel-or": "",
   "change_owner": "",
   "change_owner": "",
   "change_password": "",
   "change_password": "",
+  "change_password_in_account_settings": "",
   "change_plan": "",
   "change_plan": "",
   "change_primary_email_address_instructions": "",
   "change_primary_email_address_instructions": "",
   "change_project_owner": "",
   "change_project_owner": "",
@@ -481,7 +482,6 @@
   "go_next_page": "",
   "go_next_page": "",
   "go_page": "",
   "go_page": "",
   "go_prev_page": "",
   "go_prev_page": "",
-  "go_to_account_settings": "",
   "go_to_code_location_in_pdf": "",
   "go_to_code_location_in_pdf": "",
   "go_to_overleaf": "",
   "go_to_overleaf": "",
   "go_to_pdf_location_in_code": "",
   "go_to_pdf_location_in_code": "",
@@ -886,7 +886,6 @@
   "plan_tooltip": "",
   "plan_tooltip": "",
   "please_ask_the_project_owner_to_upgrade_to_track_changes": "",
   "please_ask_the_project_owner_to_upgrade_to_track_changes": "",
   "please_change_primary_to_remove": "",
   "please_change_primary_to_remove": "",
-  "please_change_your_password_by_going_to_your_account_settings": "",
   "please_check_your_inbox": "",
   "please_check_your_inbox": "",
   "please_check_your_inbox_to_confirm": "",
   "please_check_your_inbox_to_confirm": "",
   "please_compile_pdf_before_download": "",
   "please_compile_pdf_before_download": "",

+ 1 - 8
services/web/frontend/js/features/compromised-password/components/compromised-password-root.tsx

@@ -29,17 +29,10 @@ export function CompromisedPasswordCard() {
             ]}
             ]}
           />
           />
         </p>
         </p>
-        <p>
-          <Trans
-            i18nKey="please_change_your_password_by_going_to_your_account_settings"
-            /* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
-            components={[<a href="/user/settings" />]}
-          />
-        </p>
       </div>
       </div>
 
 
       <Button className="btn-primary" href="/user/settings">
       <Button className="btn-primary" href="/user/settings">
-        {t('go_to_account_settings')}
+        {t('change_password_in_account_settings')}
       </Button>
       </Button>
     </div>
     </div>
   )
   )

+ 2 - 1
services/web/frontend/stylesheets/modules/overleaf-integration.less

@@ -162,9 +162,10 @@
   background: @white;
   background: @white;
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
-  gap: 16px;
+  gap: 12px;
 
 
   .compromised-password-header {
   .compromised-password-header {
     margin-top: 0;
     margin-top: 0;
+    margin-bottom: 4px;
   }
   }
 }
 }

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

@@ -213,6 +213,7 @@
   "change_or_cancel-or": "or",
   "change_or_cancel-or": "or",
   "change_owner": "Change owner",
   "change_owner": "Change owner",
   "change_password": "Change Password",
   "change_password": "Change Password",
+  "change_password_in_account_settings": "Change password in Account Settings",
   "change_plan": "Change plan",
   "change_plan": "Change plan",
   "change_primary_email_address_instructions": "To change your primary email, please add your new primary email address first (by clicking <0>Add another email</0>) and confirm it. Then click the <0>Make Primary</0> button. <1>Learn more</1> about managing your __appName__ emails.",
   "change_primary_email_address_instructions": "To change your primary email, please add your new primary email address first (by clicking <0>Add another email</0>) and confirm it. Then click the <0>Make Primary</0> button. <1>Learn more</1> about managing your __appName__ emails.",
   "change_project_owner": "Change Project Owner",
   "change_project_owner": "Change Project Owner",
@@ -1320,7 +1321,6 @@
   "plans_and_pricing": "Plans and Pricing",
   "plans_and_pricing": "Plans and Pricing",
   "please_ask_the_project_owner_to_upgrade_to_track_changes": "Please ask the project owner to upgrade to use track changes",
   "please_ask_the_project_owner_to_upgrade_to_track_changes": "Please ask the project owner to upgrade to use track changes",
   "please_change_primary_to_remove": "Please change your primary email in order to remove",
   "please_change_primary_to_remove": "Please change your primary email in order to remove",
-  "please_change_your_password_by_going_to_your_account_settings": "Please change your password by going to your <0>Account Settings</0>.",
   "please_check_your_inbox": "Please check your inbox",
   "please_check_your_inbox": "Please check your inbox",
   "please_check_your_inbox_to_confirm": "Please check your email inbox to confirm your <0>__institutionName__</0> affiliation.",
   "please_check_your_inbox_to_confirm": "Please check your email inbox to confirm your <0>__institutionName__</0> affiliation.",
   "please_compile_pdf_before_download": "Please compile your project before downloading the PDF",
   "please_compile_pdf_before_download": "Please compile your project before downloading the PDF",
@@ -2214,7 +2214,7 @@
   "your_message_to_collaborators": "Send a message to your collaborators",
   "your_message_to_collaborators": "Send a message to your collaborators",
   "your_new_plan": "Your new plan",
   "your_new_plan": "Your new plan",
   "your_password_has_been_successfully_changed": "Your password has been successfully changed",
   "your_password_has_been_successfully_changed": "Your password has been successfully changed",
-  "your_password_was_detected": "Your password was detected on a <0>public list of known compromised passwords</0>. This makes your account vulnerable.",
+  "your_password_was_detected": "Your password is on a <0>public list of known compromised passwords</0>. Keep your account safe by changing your password now.",
   "your_plan": "Your plan",
   "your_plan": "Your plan",
   "your_plan_is_changing_at_term_end": "Your plan is changing to <0>__pendingPlanName__</0> at the end of the current billing period.",
   "your_plan_is_changing_at_term_end": "Your plan is changing to <0>__pendingPlanName__</0> at the end of the current billing period.",
   "your_project_exceeded_compile_timeout_limit_on_free_plan": "Your project exceeded the compile timeout limit on our free plan.",
   "your_project_exceeded_compile_timeout_limit_on_free_plan": "Your project exceeded the compile timeout limit on our free plan.",