Skip to content

[comp] Production Deploy#3107

Merged
tofikwest merged 3 commits into
releasefrom
main
Jun 11, 2026
Merged

[comp] Production Deploy#3107
tofikwest merged 3 commits into
releasefrom
main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Fixes the Trust Portal “Access Granted” email so NDA wording only appears when an NDA was actually signed. Prevents confusing copy for allow‑list bypasses and aligns resend behavior.

  • Bug Fixes
    • Email template: added ndaBypassed prop to hide NDA sentences when true.
    • Email service: threaded ndaBypassed into sendAccessGrantedEmail.
    • TrustAccessService: approveWithoutNda sends ndaBypassed: true; signNda sends false; resendAccessGrantEmail derives it from ndaAgreement?.status !== 'signed'.
    • Tests: added template render tests and service tests covering bypass, sign, and resend paths.

Written for commit dd38195. Summary will update on new commits.

Review in cubic

github-actions Bot and others added 3 commits June 11, 2026 18:05
… is bypassed

Trust Portal access auto-granted via the allow list (allowedDomains /
allowedEmails) bypasses NDA signing, but the "Access Granted" confirmation
email still rendered NDA-signed copy ("Your NDA has been signed", "download
your signed NDA"). Both the bypass path (approveWithoutNda) and the signing
path (signNda) call the same sendAccessGrantedEmail, so bypassed recipients
saw wording about an NDA they never signed.

Add an optional `ndaBypassed` flag threaded from the call sites through
sendAccessGrantedEmail into the AccessGrantedEmail template, which omits the
NDA sentences when set. approveWithoutNda passes true, signNda passes false,
and resendAccessGrantEmail derives it from the grant's linked NDA agreement
(grant.ndaAgreement?.status !== 'signed').

Tests: template render tests for both copy variants, plus service-level tests
asserting the flag on all three call sites (bypass, resend, signNda).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…-email

fix(trust-portal): use NDA-free copy in access-granted email when NDA is bypassed
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
comp-framework-editor (staging) Ready Ready Preview, Comment Jun 11, 2026 6:53pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app (staging) Skipped Skipped Jun 11, 2026 6:53pm
portal (staging) Skipped Skipped Jun 11, 2026 6:53pm

Request Review

@tofikwest tofikwest merged commit 3412745 into release Jun 11, 2026
12 checks passed
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.78.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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