-
-
Notifications
You must be signed in to change notification settings - Fork 134
Email template update #1806
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
Email template update #1806
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Just one comment about the date thing that we already covered in Slack, but it's not a blocker - feel free to merge whenever and we can push this to prod to get the new image accessible ready for testing.
@@ -22,6 +22,15 @@ export function isDefined(v: unknown) { | |||
return v !== undefined | |||
} | |||
|
|||
export function formatDate(timestamp: Date) { |
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.
Not a blocker, but did timestamp.toLocaleDateString()
not do the trick (e.g. for today, it should print out 4/24/2025
). No complaints if this works.
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 needed to initialize the timestamp first, but yea that works and it's more consise
OOC, what user data do we need? Is there extra data we need to provide in the digest for rendering, or are you just talking about hooking this up to real data? |
I should have said user 'feedback' in terms of the css potentially getting weird on different email apps/browsers |
Summary
switched image links to absolute links at mapletestimony
modified the date formatting
Checklist
Screenshots
Known issues
email generates NaN for dates, but works fine with storybook
probably the differences in the test data
empty envelope image used for No Updates included in this PR
image won't be broken once it gets to prod
gmail can do wierd things to the css,
in the long term, need user data
various tiny details like bar length can be polished/fine tuned
Steps to test/reproduce
For each feature or bug fix, create a step by step list for how a reviewer can test it out. E.g.: