Skip to content

CS-60 [Improvement] [Feature] - Send onboarding email for new employee#2102

Open
github-actions[bot] wants to merge 9 commits intomainfrom
chas/send-onboarding-email-to-employee
Open

CS-60 [Improvement] [Feature] - Send onboarding email for new employee#2102
github-actions[bot] wants to merge 9 commits intomainfrom
chas/send-onboarding-email-to-employee

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 4, 2026

This is an automated pull request to merge chas/send-onboarding-email-to-employee into dev.
It was created by the [Auto Pull Request] action.

@vercel
Copy link

vercel bot commented Feb 4, 2026

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

Project Deployment Actions Updated (UTC)
app Ready Ready Preview, Comment Feb 6, 2026 3:34pm
portal Ready Ready Preview, Comment Feb 6, 2026 3:34pm

Request Review

@cursor
Copy link

cursor bot commented Feb 4, 2026

PR Summary

Medium Risk
Introduces new email-sending side effects in the member-add server action and changes client success/failure accounting, so misconfigurations or email provider errors could affect invite delivery and user feedback.

Overview
Adds an onboarding/invite email when adding employees via addEmployeeWithoutInvite: it now looks up the organization name, builds an invite link from NEXT_PUBLIC_PORTAL_URL, calls sendInviteMemberEmail, and returns emailSent/emailError without failing member creation if the email send fails.

Updates InviteMembersModal (manual + CSV flows) to handle the new action response, separating member-add failures from email-send failures and showing a warning toast when users were added but invite emails could not be sent. Also updates .env.example to point NEXT_PUBLIC_PORTAL_URL to http://localhost:3002.

Written by Cursor Bugbot for commit 868cf12. This will update automatically on new commits. Configure here.

@chasprowebdev chasprowebdev changed the title [dev] [chasprowebdev] chas/send-onboarding-email-to-employee CS-60 [Improvement] [Feature] - Send onboarding email for new employee Feb 4, 2026
@linear
Copy link

linear bot commented Feb 4, 2026

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants