fix : added text badges to streak milestone notification emails - #1391
Conversation
|
👋 Hey @tmdeveloper007, it looks like you didn't use our PR template! The section Please update your PR description to include all required sections so we can review this properly:
You can find the full template in CONTRIBUTING.md. Just edit your PR description and the |
|
👋 Hey @tmdeveloper007! Thanks for your contribution! 🎉 It looks like this PR isn't linked to any issue yet. Please edit your PR description and add a closing keyword so we can track this properly, for example:
Once you've updated the PR description the check will re-run automatically. 🙌 |
📋 GSSoC Label Validation Report✅ All label requirements met. This PR passes the pre-merge label check. 📖 Label Reference
|
|
@Ixotic27 is attempting to deploy a commit to the ixotic27-8245's projects Team on Vercel. A member of the Team first needs to authorize it. |
Ixotic27
left a comment
There was a problem hiding this comment.
LGTM! Verified and approved. Great contribution!
|
🎉 Congratulations @tmdeveloper007! Your PR has been successfully merged. 🚀 Thank you for contributing to The Leetcode City. Your work helps us build a better platform for the community.
Keep building! 💻✨ |
Ixotic27
left a comment
There was a problem hiding this comment.
LGTM! Approved and verified. Great contribution!
What does this PR do?
Removes emoji HTML entities from streak milestone notification emails and replaces them with styled text badges.
Summary of What Has Been Done
Replaced emoji HTML entities in
src/lib/notification-senders/streak.tswith styled text badges. TheMILESTONE_MESSAGESconstant now uses abadgefield (e.g. "7 DAYS", "30 DAYS") instead of emoji HTML entities. The HTML email template renders the badge as a styled monospace text element.Changes Made
src/lib/notification-senders/streak.ts:emojifield tobadgeinMILESTONE_MESSAGES🔥(fire) with "7 DAYS"🏆(trophy) with "30 DAYS"💎(gem) with "100 DAYS"👑(crown) with "1 YEAR"Impact it Made
Closes 1381
Note: Please assign this PR to the
tmdeveloper007account.