Skip to content

Intent to ship email fixes #747#1147

Merged
jaredlockhart merged 13 commits intomozilla:masterfrom
glasserc:747-intent-to-ship-email
Apr 15, 2019
Merged

Intent to ship email fixes #747#1147
jaredlockhart merged 13 commits intomozilla:masterfrom
glasserc:747-intent-to-ship-email

Conversation

@glasserc
Copy link
Contributor

@glasserc glasserc commented Apr 4, 2019

No description provided.

glasserc added 4 commits April 4, 2019 13:57
- No need to pass all these template arguments separately since
  they're largely available on the experiment themselves.

- Do some weird stuff to try to minimize number of extra blank lines
  when risk/technical complexity are absent.

- Disable autoescaping since this is a text email.

- Add tests.
@jaredlockhart jaredlockhart self-requested a review April 4, 2019 19:28
@jaredlockhart
Copy link
Collaborator

@glasserc Can you please include screenshots of all the releant UI changes? Thanks!

Copy link
Collaborator

@jaredlockhart jaredlockhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome @glasserc this is great. I like the modal, I like the behaviour. A couple changes listed below.

@glasserc
Copy link
Contributor Author

glasserc commented Apr 4, 2019

Oops, yeah, screenshots...

Screenshot from 2019-04-04 16-10-54
Screenshot from 2019-04-04 16-11-04
Screenshot from 2019-04-04 16-10-59
Screenshot from 2019-04-04 16-11-06

@glasserc
Copy link
Contributor Author

glasserc commented Apr 8, 2019

Screenshot from 2019-04-08 11-54-45

glasserc added 7 commits April 8, 2019 12:51
Thanks @jaredkerim for pointing this out.
Thanks @jaredkerim for the suggestion.
Thanks @jaredkerim for the suggestion.
Thanks @jaredkerim for the suggestion.
These utility methods in the test suite do not need 100% coverage.
Adding a CC requires using the EmailMessage API directly instead of
the send_mail wrapper.
Copy link
Collaborator

@jaredlockhart jaredlockhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome this looks good @glasserc! I like the patterns you used here, we should probably adopt them for more parts of the project (text templates for emails, API calls from modals).

if (resp.status == 200) {
// Rather than trying to update the DOM to match the new state,
// just refresh the page.
location.reload();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jaredlockhart jaredlockhart merged commit c058676 into mozilla:master Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants