Skip to content

fix: email dictated direct template signer - #2810

Merged
dguyen merged 5 commits into
documenso:mainfrom
zahedshareef:fix/direct-template-dictated-next-signer-email
May 27, 2026
Merged

dguyen merged 5 commits into
documenso:mainfrom
zahedshareef:fix/direct-template-dictated-next-signer-email

Conversation

@zahedshareef

Copy link
Copy Markdown
Contributor

Description

Fixes #2485.

Direct templates with “Dictate next signer” update the next recipient’s name/email, but the
signing request email job was not queued for that recipient.

This captures the dictated next recipient during direct-template document creation and
explicitly queues send.signing.requested.email, matching the normal sequential signing
completion flow.

Changes

  • Queue a signing-request email job for the dictated next direct-template recipient.
  • Preserve the existing direct-template recipient delivery-state update.
  • Add V1 and V2 direct-template E2E assertions that the signing-request job is queued for the
    dictated recipient.

Testing

  • npx biome check --formatter-enabled=false packages/lib/server-only/template/create-document- from-direct-template.ts packages/app-tests/e2e/templates/direct-templates.spec.ts
  • npx dotenv -e .env.example -- npm run build:app -w @documenso/remix
  • npx dotenv -e .env.example -- npm run build:server -w @documenso/remix
  • npx dotenv -e .env.example -- npx playwright test packages/app-tests/e2e/templates/direct- templates.spec.ts -g 'next signer dictation' --project=ui --config packages/app-tests/ playwright.config.ts --workers=1 --retries=0 --reporter=list --timeout=120000

@coderabbitai

coderabbitai Bot commented May 13, 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: ba623a73-6633-4b42-ae13-f1134bea128a

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.

@vercel

vercel Bot commented May 26, 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 26, 2026 8:11am
prd-openpage-api Ignored Ignored May 26, 2026 8:11am
stg-docs Skipped Skipped May 26, 2026 8:11am

Request Review

@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 26, 2026 05:28 Inactive
@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 26, 2026 06:54 Inactive
@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 26, 2026 06:55 Inactive
@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 26, 2026 08:11 Inactive

@dguyen dguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks

@dguyen
dguyen merged commit 807d094 into documenso:main May 27, 2026
8 of 9 checks passed
scoobs-mystery-bytes pushed a commit to scoobs-mystery-bytes/documenso that referenced this pull request May 30, 2026
@zahedshareef
zahedshareef deleted the fix/direct-template-dictated-next-signer-email branch June 11, 2026 15:40

This branch was previously deployed

1 inactive deployment
Preview – stg-docs — cab4e5f6 Deployed May 26, 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.

[Bug]: Email not sending in Direct Template when DICTATE NEXT SIGNER is enabled

2 participants