Skip to content

fix(email): render organisation invite preview inside body - #2875

Closed
nikhil-shukl wants to merge 1 commit into
documenso:mainfrom
nikhil-shukl:codex/fix-org-invite-preview-body
Closed

nikhil-shukl wants to merge 1 commit into
documenso:mainfrom
nikhil-shukl:codex/fix-org-invite-preview-body

Conversation

@nikhil-shukl

Copy link
Copy Markdown
Contributor

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

  • Moved <Preview> in OrganisationInviteEmailTemplate from between <Head /> and <Body> to the first child of <Body>.
  • Preserved the existing preview text and email content.

Testing Performed

  • Ran git diff --check.
  • Ran npm.cmd exec --yes --package @biomejs/[email protected] -- biome check packages/email/templates/organisation-invite.tsx.

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

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.

@vercel

vercel Bot commented May 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
prd-docs Ignored Ignored May 27, 2026 6:22am
prd-openpage-api Ignored Ignored May 27, 2026 6:22am
stg-docs Skipped Skipped May 27, 2026 6:22am

Request Review

@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 27, 2026 06:22 Inactive
@coderabbitai

coderabbitai Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: c30d2dfa-fb52-4ee1-aa8e-7fa0ec606dac

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nikhil-shukl

Copy link
Copy Markdown
Contributor Author

Hi maintainers, the PR title appears to follow Conventional Commits, but the Validate PR title check is failing while trying to create a sticky PR comment:

Resource not accessible by integration - https://docs.github.com/rest/issues/comments#create-an-issue-comment

martindglaser added a commit to martindglaser/documenso that referenced this pull request Jun 21, 2026
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
@dguyen

dguyen commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

We're probably going to go with #3004 since it covers all templates for us

@dguyen dguyen closed this Jun 29, 2026

This branch was previously deployed

1 inactive deployment
Preview – stg-docs — cae3bc4a Deployed May 27, 2026 by vercel[bot]
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.

Organization Invitation Email - empty

2 participants