-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Redesign Weekly Email #6438
Redesign Weekly Email #6438
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6438 +/- ##
=======================================
Coverage 27.09% 27.09%
=======================================
Files 291 291
Lines 26682 26682
Branches 3948 3948
=======================================
Hits 7229 7229
Misses 19186 19186
Partials 267 267 Continue to review full report at Codecov.
|
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.
Could you add it in :
- screenshots (mobile + laptop)
- could you remove out commented out code unless it's needed for some reason
thanks. looks pretty good! i hope it renders well across mail clients. i know that mail client availability is kind of a sticking point |
@thelostone-mc I have removed the commented code and have also included the screenshots in the opening comment. Should I do anything else? |
51610a5
to
3a26f48
Compare
@danlipert Even after rebasing onto the latest master, I couldn't find any changes regarding how the content for this email is loaded. Am I missing something? Did you only mean the original way of fetching the content that was used before I entered the dummy data?:
|
@danlipert I have rebased onto the latest master and also removed the dummy code. Please review. |
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.
I loaded this in my local and it had some obvious design issues and the kudos section is duplicated. How was this tested? I think using the dummy data instead of getting it from the Marketing > RoundupEmail model may have given some false confidence
app/retail/emails.py
Outdated
@@ -1085,11 +1085,13 @@ def render_new_bounty_roundup(to_email): | |||
'invert_footer': False, | |||
'hide_header': False, | |||
'highlights': highlights, | |||
'kudos_friday': kudos_friday, |
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.
Kudos already get inserted into the intro, which is rendered into the template as part of the intro block (see Line 1028 in this file, Line 89 in the template) - correct? Don't the kudos show up twice?
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.
I wasn't aware that the kudos is inserted into the intro. I'd understood that only the textual content is what's loaded into the intro. It would be helpful if you could provide a sample email content that would typically be entered in the RoundupEmail model.
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.
I shall have removed the code that passes and inserts the kudos_friday again into the template.
@danlipert If you could provide the content of the (or any) sample email that you used in the RoundupEmail for testing it would be helpful, I guess. I don't have a sample email in the dev environment. I'd tested it using the dummy data that I inserted in commit 794aed9c2ab8c4eb03260e6c0e77f2a6f17e1360 |
@danlipert One of the design issues that you may have seen could be because I've used a class Please see these lines of:
|
This looks pretty good - I'm going to merge it @sebastiantf but can you please do a followup PR to fix the kudos cards layout? check this screenshot from production: |
@sebastiantf we're deploying it today so please do a followup PR |
Ok @danlipert. And also, I see in the screenshot you've posted above that the author image at the end of the intro is still in full size. I had defined a You'll have to use a div with .regards class in the intro around the image to make it rounded. |
@danlipert Please see #6526. I have the kudos aligned. |
Make kudos center aligned. Follow-up to #6438
@danlipert Did you try generating an email from this PR? It seems there are issues with the email not being rendered properly on email clients due to a lack of support. This is what I got when generating an email and viewing it on Gmail: [image moved to #6534] The width is actually too much which may not be clear from the above screenshot. Scrollbars are showing up due to the width being too much: [image moved to #6534] I am creating a WIP PR solving these issues: #6534 |
@sebastiantf sounds good, appreciate it - I did not try testing it via sending an email, just took a look at the in-browser preview url at localhost:8000/_administration/email/roundup |
@danlipert #6534 is ready for review. I see that the new version was released about an hour ago. I'm not sure how you send out the emails, but I suggest sending out the weekly emails only after applying the changes in #6534 and testing it out. |
Description
This PR updates the Weekly Email template according to the new layout provided here at #6208
Note: Some dummy data for the email content has been added in
emails.py
. It can be used to refer the modifications made to the template in this PR. But the dummy data shall have to be excluded from production.Note: But the
kudos_friday
andhide_bottom_logo
params lines will have to be included.Refers/Fixes
Fixes #6208
Screenshots
Laptop:
Mobile: