Ref T7964, HTML emails for Calendar event description changes should respect remarkup rules
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T7964: Verify that calendar event update emails display correct hovertags.
- Commits
- Restricted Diffusion Commit
rP28b8c8e212d4: HTML emails for Calendar event description changes should respect remarkup rules
Create event and edit description, check that email has a correctly formatted remarkup description section.
Diff Detail
- Repository
- rP Phabricator
- Branch
- calendardescriptionemail
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 7242 Build 7526: [Placeholder Plan] Wait for 30 Seconds Build 7525: arc lint + arc unit
Event Timeline
Sorry, I think I led you astray a bit here.
I think the call to addRemarkupSection() in PhabricatorApplicationTransactionEditor also needs to be converted.
src/applications/metamta/view/PhabricatorMetaMTAMailBody.php | ||
---|---|---|
46–49 | I think we can actually toss this.. | |
51–52 | ...and do addPlaintextSection() here. As written, this isn't correct -- it adds HTML to the "plaintext" sections. | |
65 | ..and addHTMLSection(...) here. | |
67–68 | ...and addHTMLSection() here too. | |
119 | Then this can be left as-is.. | |
213 | And this can be removed. |
src/applications/metamta/view/PhabricatorMetaMTAMailBody.php | ||
---|---|---|
51–52 | But it previously added "styled_text"? Seems counterintuitive to add plaintext by default in a remarkup section? |
This looks correct to me, except that I think the bold for headers got stripped out and never gets added now?
src/applications/metamta/view/PhabricatorMetaMTAMailBody.php | ||
---|---|---|
124 | It looks like we lost the bold here? |
src/applications/metamta/view/PhabricatorMetaMTAMailBody.php | ||
---|---|---|
124 | Trying to recall why I removed the phutil_tag. I think this was intentional. What's the right way to make this bold without a phutil_tag? |
There's no way to make it bold without a phutil_tag().
My guess is that you might have removed it because the header is sometimes null, so it would have rendered an empty tag. Maybe something like this?
if ($header !== null) { $header = phutil_tag(...); }
...but I'm not sure.