Add HTML workspace invite email dispatch for issue 442#529
Open
parthpatidar03 wants to merge 1 commit into
Open
Add HTML workspace invite email dispatch for issue 442#529parthpatidar03 wants to merge 1 commit into
parthpatidar03 wants to merge 1 commit into
Conversation
Author
param20h
approved these changes
Jun 11, 2026
Owner
|
issuesss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes #442
📝 What does this PR do?
When a user is invited to a workspace, the backend now immediately dispatches a branded HTML invitation email with workspace details and a one-click acceptance link.
Changes:
send_workspace_invite_email()tobackend/app/email_service.py— builds a table-based HTML email with:backend/app/routes/workspaces.pyto callsend_workspace_invite_email()instead of the old hand-rolled plain-text body🗂️ Type of Change
🧪 How was this tested?
9 unit tests added in
backend/tests/test_workspace_invite_email.py:test_delegates_to_send_emailsend_emailcalled exactly oncetest_subject_contains_workspace_nametest_html_body_contains_invite_linktest_html_body_contains_workspace_nametest_html_body_contains_expirytest_personal_message_included_in_htmltest_no_personal_message_omits_blocktest_plain_text_body_contains_invite_linktest_recipient_passed_to_send_email✅ Self-Review Checklist
dev, notmainmainbranch or any HuggingFace deployment config