Repository navigation
Conversation
|
Thanks for this, @doowta. The redesign is a big step up from our old account emails, and the dark mode, Outlook and phone work really shows. Here's our review feedback. Keeping as-is
Changes before merge
All of this ships in the enclave build, so we're going to take the PR over from here and make these changes ourselves. Nothing more is needed from you. Thanks again, you've made our emails a lot better. Generated by Claude Code |
|
Continuing this in #1142, which keeps your 7 commits as-is and adds the review changes on top. Closing this one in favor of it. Thanks again, @doowta! Generated by Claude Code |
|
@doowta, here's where your redesign landed. We took it over in #1142, which keeps your 7 commits as-is and adds one commit on top. Code changes (from the review above)
What we added to the img.maple.ai bucket
Cloudflare settings we changed for img.maple.ai
Still to do: a real test send to Gmail, Outlook.com, Yahoo and Apple Mail once this is on Dev. Thanks again for the redesign! Generated by Claude Code |
Maple's six account emails in the new design, from #1114, with images and the Manrope font served from img.maple.ai. - Rendering is panic-free, and template placeholders are checked at compile time. - account_message picks Maple's redesign or the original HTML and renders only the email that is sent; unit tests cover the switch. - Other projects' emails and platform emails are unchanged. - The password-reset code stays out of the preview text. Co-authored-by: Michael Atwood <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YVmVPWXRLVo83Zxnu5ES1P
Why
blog.trymaple.aion Ghost. That image breaks when the blog moves off Ghost.What this PR adds
https://img.maple.ai/email/. Verification links, timing, sender, reply-to, and support addresses stay the same.Account emails at desktop
Hero, device photo, Pro list, and Proxy card.
Verification button, code, fallback URL, and 24-hour expiry.
Code box and expiry notice.
Clear confirmation and recovery advice.
Confirmation code and permanent-action warning.
Final confirmation and support contact.
Welcome in light and dark
Card contrast and the footer watermark.
Readable cards, aligned Pro features, and footer.
Details for reviewers (scope, safety, checks, deployment)
Files
All paths below are under
services/opensecret/.src/email.rssrc/email/maple_templates.rshttps://img.maple.ai/email/image base constant.src/email/maple_templates/layout.htmlsrc/email/maple_templates/{welcome,verification,password-reset,password-reset-confirmation,account-deletion,account-deletion-confirmation}.htmlsrc/email/non_maple_snapshots/*.jsonscripts/compare_maple_emails.pybuild.pyproduction HTML with fixed values.The templates are generated from Maple's email design source (
build.py, outside this repo).scripts/compare_maple_emails.pychecks that the Rust output matches it exactly.Scope and safety
is_maple_project()selects the redesign only when the project name is exactlyMaple. Non-Maple welcome mail remains unsent, as before. The other five non-Maple emails keep their original subjects and HTML;non_maple_html_matches_pre_edit_snapshotschecks byte-for-byte snapshots taken before this branch's edits.send_platform_*function bodies were compared withmaster(de44a30) and are byte-identical. Their senders, subjects, reply-to behavior, and HTML are unchanged.build.pysupplies HTML only, with no plain-text versions to send as a Resendtextfield. No live Resend send was made.escape_htmlcovers&,<,>, both quotes, and apostrophes before dynamic project/org names, codes, support addresses, and verification URLs enter HTML. The template fill is single-pass, so input containing{{...}}cannot introduce another template field. Tests include a hostile name and a URL containing"<>&.Subjects
Welcome to Maple!Welcome to MapleVerify Your Maple AccountVerify your Maple accountReset Your Maple PasswordReset your Maple passwordYour Maple Password Has Been ResetYour Maple password was changedAccount Deletion Request for Your Maple AccountConfirm your Maple account deletionYour Maple Account Has Been DeletedYour Maple account has been deletedPreheaders
The old templates had no explicit preheaders. The new hidden preheaders are:
{code}. It expires in 24 hours.Links and click counts
/research#pricingtohttps://www.trymaple.ai/pricing; Download the app goes from/research#downloadtohttps://www.trymaple.ai/downloads. Details stays on/research, Read the docs stays on/docs/proxy, and Start your first chat stays onhttps://trymaple.ai.https://github.com/MaplePrivacyLabs/Mapleinstead of the redirectingOpenSecretCloud/MapleURL.utm_source=email,utm_medium=email, and a campaign/content pair. Campaigns arewelcome,verify-email,password-reset,password-changed,delete-account, andaccount-deleted; content slugs aresee-plans,download-app,details,proxy-docs,footer-home, andfooter-privacyas applicable. A singlebuild.pyhelper validates values against[a-zA-Z0-9._-]{1,100}and writes&between query parameters. The Rust link tests assert the exact resulting hrefs.Images and layout
https://img.maple.ai/email/, with flat filenames. The six account templates reference these 11 files:app-icon.png,wordmark.png,footer-watermark-light.png,footer-watermark-dark.png,research-laptop.jpg,tile-welcome.png,tile-verify.png,tile-reset.png,tile-reset-done.png,tile-delete.png, andtile-deleted.png.<style>.prefers-color-scheme, with an Outlook.com dark-mode selector as well. Gmail clients that ignore dark-mode image swaps may show the light watermark; the content and alt text remain readable. Screenshots are Chrome renders from Rust HTML, with image paths pointed at local copies only for rendering. Desktop “Before” uses the currentmastertemplates (unchanged sincef8ab3e5; the branch is rebased onde44a30).Checks
From
services/opensecret/, with stateful shell hooks disabled:build.pyproduction HTML: exact byte match for all six emails. Pinned format and Clippy: passed. Full test gate on the rebased branch: 789 passed, 0 failed, 31 ignored.Deployment and domain move
https://img.maple.ai/email/(all 11 return 200 with immutable caching); they must stay there permanently, because sent emails keep loading them.trymaple.ai; marketing pages usewww.trymaple.ai, and images usehttps://img.maple.ai/email/. A later app-domain move must keep redirects for links already sent in email. This PR does not move those app URLs.Merge
Squash.