-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: send individuals emails with pluggable component #7
base: jv/pluggable-component-slot
Are you sure you want to change the base?
feat: send individuals emails with pluggable component #7
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## jv/pluggable-component-slot #7 +/- ##
==============================================================
Coverage ? 83.31%
==============================================================
Files ? 53
Lines ? 773
Branches ? 147
==============================================================
Hits ? 644
Misses ? 129
Partials ? 0 ☔ View full report in Codecov by Sentry. |
5556a2b
to
36a3b69
Compare
|
||
return ( | ||
<Container className="col-12 my-5"> | ||
<Form.Label className="mt-3" data-testid="learners-email-input-label">{intl.formatMessage(messages.individualEmailsLabelLearnersInputLabel)}</Form.Label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Form.Label className="mt-3" data-testid="learners-email-input-label">{intl.formatMessage(messages.individualEmailsLabelLearnersInputLabel)}</Form.Label> | |
<Form.Label className="mt-3" data-testid="learners-email-input-label"> | |
{intl.formatMessage(messages.individualEmailsLabelLearnersInputLabel)} | |
</Form.Label> |
placeholder={intl.formatMessage(messages.individualEmailsLabelLearnersInputPlaceholder)} | ||
onChange={handleSelectedLearnerEmail} | ||
renderMenuItemChildren={({ name, email, username }) => ( | ||
<span data-testid="autocomplete-email-option">{name ? `${name} -` : name} {username ? `${username} -` : username} {email}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case the variables doesn't exist the value should be an empty string, not the variable
/> | ||
{emailList.length > 0 && ( | ||
<Container className="email-list"> | ||
<Form.Label className="col-12" data-testid="learners-email-list-label">{intl.formatMessage(messages.individualEmailsLabelLearnersListLabel)}</Form.Label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Form.Label className="col-12" data-testid="learners-email-list-label">{intl.formatMessage(messages.individualEmailsLabelLearnersListLabel)}</Form.Label> | |
<Form.Label className="col-12" data-testid="learners-email-list-label"> | |
{intl.formatMessage(messages.individualEmailsLabelLearnersListLabel)} | |
</Form.Label> |
width: 100%; | ||
display: flex; | ||
flex-wrap: wrap; | ||
border: 1px solid #ccc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manage colors as variables. If they are be used in other components, make a separate file
Hi @johnvente, I tested the changes, and work correctly! 💯 |
381cfd2
to
2884398
Compare
2884398
to
a6dfabb
Compare
2b8e68b
to
0d94489
Compare
e3e2ce8
to
ffa1797
Compare
Description
This feature will allow sending emails to expected emails of students in the course using pluggable component
Demo
Plugin loaded:
How to test it
If you are using devstack
Go to http://localhost:1984/courses/course-v1:edX+DemoX+Demo_Course/bulk_email Or
http://localhost:1984/courses/{{id_course}}/bulk_email
Select the checkbox called "Individual learners"
In the input with this label "Add individual learner" search an student with email/name/username and click on the user that you wish
Fill out the fields Subject and Body