From ac62e83958330e4d3e02867090b20fbc1458dbf4 Mon Sep 17 00:00:00 2001 From: mariagrimaldi Date: Tue, 8 Dec 2020 11:44:36 -0400 Subject: [PATCH 01/20] feat: remove edX branding on account deletion --- .../student_account/components/StudentAccountDeletion.jsx | 8 +------- .../components/StudentAccountDeletionModal.jsx | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/lms/static/js/student_account/components/StudentAccountDeletion.jsx b/lms/static/js/student_account/components/StudentAccountDeletion.jsx index 1341faa9ee73..e4fc4b3f4b91 100644 --- a/lms/static/js/student_account/components/StudentAccountDeletion.jsx +++ b/lms/static/js/student_account/components/StudentAccountDeletion.jsx @@ -38,13 +38,7 @@ export class StudentAccountDeletion extends React.Component { render() { const { deletionModalOpen, socialAuthConnected, isActive } = this.state; - const loseAccessText = StringUtils.interpolate( - gettext('You may also lose access to verified certificates and other program credentials like MicroMasters certificates. If you want to make a copy of these for your records before proceeding with deletion, follow the instructions for {htmlStart}printing or downloading a certificate{htmlEnd}.'), - { - htmlStart: '', - htmlEnd: '', - }, - ); + const loseAccessText = gettext('You may also lose access to verified certificates and other program credentials. You can make a copy of these for your records before proceeding with deletion.') const showError = socialAuthConnected || !isActive; diff --git a/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx b/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx index e2a83c61ff12..8d9f86f21f78 100644 --- a/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx +++ b/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx @@ -94,13 +94,7 @@ class StudentAccountDeletionConfirmationModal extends React.Component { validationMessage, } = this.state; const { onClose } = this.props; - const loseAccessText = StringUtils.interpolate( - gettext('You may also lose access to verified certificates and other program credentials like MicroMasters certificates. If you want to make a copy of these for your records before proceeding with deletion, follow the instructions for {htmlStart}printing or downloading a certificate{htmlEnd}.'), - { - htmlStart: '', - htmlEnd: '', - }, - ); + const loseAccessText = gettext('You may also lose access to verified certificates and other program credentials. You can make a copy of these for your records before proceeding with deletion.') const noteDeletion = StringUtils.interpolate( gettext('You have selected “Delete my account.” Deletion of your account and personal data is permanent and cannot be undone. {platformName} will not be able to recover your account or the data that is deleted.'), From 99147d25e7b5986fe2c065a9f04771929a3b6795 Mon Sep 17 00:00:00 2001 From: Maria Grimaldi Date: Tue, 23 Jan 2024 16:11:49 -0400 Subject: [PATCH 02/20] refactor: address PR reviews --- .../student_account/components/StudentAccountDeletion.jsx | 8 +++----- .../components/StudentAccountDeletionModal.jsx | 4 +++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lms/static/js/student_account/components/StudentAccountDeletion.jsx b/lms/static/js/student_account/components/StudentAccountDeletion.jsx index e4fc4b3f4b91..93544c11664c 100644 --- a/lms/static/js/student_account/components/StudentAccountDeletion.jsx +++ b/lms/static/js/student_account/components/StudentAccountDeletion.jsx @@ -107,11 +107,9 @@ export class StudentAccountDeletion extends React.Component { {bodyDeletion} {bodyDeletion2}

-

+

+ {loseAccessText} +

{bodyDeletion2}

{/* eslint-disable-next-line react/no-danger */} -

+

+ {loseAccessText} +

)} From acd2a917409fde08058ea0891a5bf591a8c79f57 Mon Sep 17 00:00:00 2001 From: Maria Grimaldi Date: Wed, 21 Feb 2024 13:31:57 -0400 Subject: [PATCH 03/20] refactor: address PR reviews --- .../js/student_account/components/StudentAccountDeletion.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lms/static/js/student_account/components/StudentAccountDeletion.jsx b/lms/static/js/student_account/components/StudentAccountDeletion.jsx index 93544c11664c..e108f0924034 100644 --- a/lms/static/js/student_account/components/StudentAccountDeletion.jsx +++ b/lms/static/js/student_account/components/StudentAccountDeletion.jsx @@ -107,9 +107,7 @@ export class StudentAccountDeletion extends React.Component { {bodyDeletion} {bodyDeletion2}

-

- {loseAccessText} -

+

{loseAccessText}

Date: Wed, 21 Feb 2024 15:02:29 -0400 Subject: [PATCH 04/20] refactor: address PR reviews --- .../components/StudentAccountDeletionModal.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx b/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx index b8d7f712025a..dceffc9ff4c4 100644 --- a/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx +++ b/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx @@ -162,9 +162,7 @@ class StudentAccountDeletionConfirmationModal extends React.Component { {bodyDeletion2}

{/* eslint-disable-next-line react/no-danger */} -

- {loseAccessText} -

+

{loseAccessText}

)} From c0020a87691d0962028770e6ba987887ea643548 Mon Sep 17 00:00:00 2001 From: Blue Date: Mon, 26 Feb 2024 10:21:49 +0500 Subject: [PATCH 05/20] fix: replace username with name in contact us form (#34252) Description: Replace username with name in contact us form VAN-1822 --- .../support/static/support/jsx/logged_in_user.jsx | 6 ++++-- lms/templates/support/contact_us.html | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx b/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx index 974ddb28efce..e6cac8116842 100644 --- a/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx +++ b/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx @@ -131,13 +131,14 @@ function LoggedInUser({

{StringUtils.interpolate( - gettext('What can we help you with, {username}?'), - { username: userInformation.username }, + gettext('What can we help you with, {fullName}?'), + { fullName: userInformation.fullName }, )}

@@ -176,6 +177,7 @@ LoggedInUser.propTypes = { reDirectUser: PropTypes.func.isRequired, userInformation: PropTypes.shape({ course_id: PropTypes.string, + fullName: PropTypes.string, username: PropTypes.string, email: PropTypes.string, // eslint-disable-next-line react/forbid-prop-types diff --git a/lms/templates/support/contact_us.html b/lms/templates/support/contact_us.html index 4a93d6023829..05cbe4f9f5e3 100644 --- a/lms/templates/support/contact_us.html +++ b/lms/templates/support/contact_us.html @@ -41,6 +41,7 @@ % if user.is_authenticated: context['user'] = { + 'fullName': "${user.profile.name | n, js_escaped_string}", 'username': "${user.username | n, js_escaped_string}", 'email': "${user.email | n, js_escaped_string}", 'course_id': "${course_id | n, js_escaped_string}" From c61df904c1d2a5f523f1da44460c21e17ec087ee Mon Sep 17 00:00:00 2001 From: ayesha waris <73840786+ayesha-waris@users.noreply.github.com> Date: Mon, 26 Feb 2024 16:21:18 +0500 Subject: [PATCH 06/20] fix: Error message does not show when user clicks Dismiss button (#34277) --- cms/templates/course_outline.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/templates/course_outline.html b/cms/templates/course_outline.html index fbcb2941b24f..b3eca807e076 100644 --- a/cms/templates/course_outline.html +++ b/cms/templates/course_outline.html @@ -90,7 +90,7 @@

${_("This course was created as a re-run. Some manual