Skip to content

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

Merged
merged 3 commits into from
Apr 25, 2025
Merged

Conversation

mertbagt
Copy link
Collaborator

@mertbagt mertbagt commented Apr 24, 2025

Summary

Lilly aboiut to commit a crime, cropt

switched image links to absolute links at mapletestimony

modified the date formatting

Checklist

  • [n/a] On the frontend, I've made my strings translate-able.
  • If I've added shared components, I've added a storybook story.
  • [n/a] I've made pages responsive and look good on mobile.

Screenshots

image

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.:

  1. fire off script sendTestEmail

Copy link

vercel bot commented Apr 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
maple-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2025 7:11pm
maple-prod 🔄 Building (Inspect) Visit Preview 💬 Add feedback Apr 25, 2025 7:11pm

Copy link
Collaborator

@Mephistic Mephistic left a 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) {
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

@Mephistic
Copy link
Collaborator

in the long term, need user data

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?

@mertbagt
Copy link
Collaborator Author

I should have said user 'feedback' in terms of the css potentially getting weird on different email apps/browsers

@mertbagt mertbagt merged commit 8b3037a into codeforboston:main Apr 25, 2025
7 checks passed
@mertbagt mertbagt deleted the email-template-update branch April 25, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants