-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Make anonymous comments clearer in alert emails #3417
Conversation
Manually testing this was a bit awkward. I ended up changing this line to have
|
Codecov Report
@@ Coverage Diff @@
## master #3417 +/- ##
==========================================
- Coverage 82.51% 82.48% -0.04%
==========================================
Files 325 325
Lines 21632 21633 +1
Branches 3263 3264 +1
==========================================
- Hits 17849 17843 -6
- Misses 2744 2750 +6
- Partials 1039 1040 +1
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.
Nice and neat. Agreed that it's a bit awkward to test manually. I guess you could have the $q
on L106 fetch updates from the report being displayed and fallback to the existing behaviour if there weren't any.
@davea This works really well, thanks! I've added an extra commit to the end of this PR which does this, would you mind taking a look? |
39a3ff0
to
7c52e55
Compare
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.
Looks good! :)
(don't forget to check that fixamingata
template and ack the cobrand-templates check)
When showing a list of comments in HTML emails we previously didn't show anything for updates that were left anonymously. This led to some confusion about which text related to which update. This change means that anonymous comments will show the text "Posted anonymously" next to them, which should make things clearer.
If the problem being used for the alert-update email preview has comments associated with it, use those instead of 5 random comments.
7c52e55
to
1f0e516
Compare
When showing a list of comments in HTML emails we previously didn't show anything for updates that were left anonymously. This led to some confusion about which text related to which update.
This change means that anonymous comments will show the text "Posted anonymously" next to them, which should make things a bit clearer.
Fixes https://github.com/mysociety/fixmystreet-commercial/issues/2236