Repository navigation
fix(email): render organisation invite preview inside body - #2875
nikhil-shukl wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi maintainers, the PR title appears to follow Conventional Commits, but the |
The <Preview> element was placed between <Head /> and <Body>, so the rendered HTML emitted the hidden preview text between </head> and <body>. That is invalid markup and some email clients (e.g. SendGrid) fail to parse it, dropping the message body and producing an empty email. Moving <Preview> to be the first child of <Body> keeps the document structure valid (<html><head/><body>...</body></html>) across all 28 templates, so invitation, document and password-reset emails render their body correctly. Generalises the single-template fix from documenso#2875. Fixes documenso#2999
|
We're probably going to go with #3004 since it covers all templates for us |
Description
Moves the organisation invite email preview text inside the email
<Body>so the rendered HTML keeps valid<html><head/><body>...</body></html>structure.Related Issue
Fixes #2596
Changes Made
<Preview>inOrganisationInviteEmailTemplatefrom between<Head />and<Body>to the first child of<Body>.Testing Performed
git diff --check.npm.cmd exec --yes --package @biomejs/[email protected] -- biome check packages/email/templates/organisation-invite.tsx.Checklist
Additional Notes
This is a small targeted fix for the organisation invite email rendering path. It keeps the inbox preview behavior while avoiding invalid markup that can be fragile with email processors such as SendGrid.