Skip to content

fix: migrate emails to jobs - #3024

Merged
dguyen merged 9 commits into
mainfrom
fix/migrate-emails-to-jobs
Jun 25, 2026
Merged

dguyen merged 9 commits into
mainfrom
fix/migrate-emails-to-jobs

Conversation

@dguyen

@dguyen dguyen commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Description

Migrate emails on hotpaths into background jobs.

Copilot AI review requested due to automatic review settings June 25, 2026 01:13
@vercel

vercel Bot commented Jun 25, 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 Jun 25, 2026 3:21am
prd-openpage-api Ignored Ignored Jun 25, 2026 3:21am
stg-docs Skipped Skipped Jun 25, 2026 3:21am

Request Review

@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Document email delivery now uses queued jobs for pending, deleted, reminder, and recipient-removed flows. The jobs client registers the new definitions, and the document completion, deletion, recipient-removal, and resend paths enqueue those jobs instead of sending emails inline.

Changes

Document email jobs migration

Layer / File(s) Summary
Job contracts and registry
packages/lib/jobs/definitions/emails/send-document-pending-email.ts, packages/lib/jobs/definitions/emails/send-document-deleted-emails.ts, packages/lib/jobs/definitions/emails/send-document-reminder-email.ts, packages/lib/jobs/definitions/emails/send-recipient-removed-email.ts, packages/lib/jobs/client.ts
New job definitions for pending, deleted, reminder, and recipient-removed emails are added, and the jobs client registers them.
Pending email queueing
packages/lib/server-only/document/complete-document-with-token.ts, packages/ee/server-only/signing/csc/execute-tsp-sign.ts, packages/lib/jobs/definitions/emails/send-document-pending-email.handler.ts
Document completion and CSC signing enqueue send.document.pending.email, and the job handler loads the envelope and sends the pending email when recipients remain.
Deleted email queueing
packages/lib/server-only/document/delete-document.ts, packages/lib/jobs/definitions/emails/send-document-deleted-emails.handler.ts
Document deletion enqueues send.document.deleted.emails, and the job handler renders and sends the cancellation email to each recipient.
Recipient-removed email queueing
packages/lib/server-only/recipient/set-document-recipients.ts, packages/lib/server-only/recipient/delete-envelope-recipient.ts, packages/lib/jobs/definitions/emails/send-recipient-removed-email.handler.ts
Recipient removal paths enqueue send.recipient.removed.email, and the job handler loads envelope context, checks limits, and sends the removal email.
Reminder email queueing
packages/lib/server-only/document/resend-document.ts, packages/lib/jobs/definitions/emails/send-document-reminder-email.handler.ts
Resend-document enqueues send.document.reminder.email, and the job handler sends the reminder, updates send status, and writes the audit log.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

  • documenso/documenso#1472: Both PRs extend packages/lib/jobs/client.ts by adding new email job definitions to the jobsClient initialization array.
  • documenso/documenso#2892: Both PRs touch the reminder-email path in packages/lib/server-only/document/resend-document.ts.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: moving email sending to jobs.
Description check ✅ Passed The description is directly related to the change and matches the migration to background jobs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/migrate-emails-to-jobs

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR moves several synchronous email sends (recipient removal, document reminders, document deletion notifications, and “pending/waiting for others” emails) off request hot paths by enqueueing background jobs via the jobs client, and introduces the corresponding job definitions/handlers to perform the actual sends asynchronously.

Changes:

  • Replaced inline email rendering/sending in server-only request flows with jobs.triggerJob(...) calls.
  • Added new email job definitions + handlers for recipient-removed, document-reminder, document-pending, and document-deleted email workflows.
  • Registered the new email jobs in packages/lib/jobs/client.ts so they can be triggered and executed.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/lib/server-only/recipient/set-document-recipients.ts Enqueues recipient-removed emails instead of sending inline when recipients are deleted.
packages/lib/server-only/recipient/delete-envelope-recipient.ts Enqueues recipient-removed email as a job when deleting a recipient.
packages/lib/server-only/document/resend-document.ts Enqueues document reminder emails as jobs during resend flow (after gating + quota checks).
packages/lib/server-only/document/delete-document.ts Enqueues document-deleted notification emails as a job with a self-contained payload (since envelope is hard-deleted).
packages/lib/server-only/document/complete-document-with-token.ts Enqueues the “document pending” email as a job instead of calling sendPendingEmail inline.
packages/lib/jobs/definitions/emails/send-recipient-removed-email.ts Adds a job definition for recipient-removed email.
packages/lib/jobs/definitions/emails/send-recipient-removed-email.handler.ts Implements the recipient-removed email send logic in a job handler (with org gating + rate limits).
packages/lib/jobs/definitions/emails/send-document-reminder-email.ts Adds a job definition for document reminder emails.
packages/lib/jobs/definitions/emails/send-document-reminder-email.handler.ts Implements the reminder email send + audit log updates inside the job handler.
packages/lib/jobs/definitions/emails/send-document-pending-email.ts Adds a job definition for “document pending” emails.
packages/lib/jobs/definitions/emails/send-document-pending-email.handler.ts Implements the job handler that delegates to sendPendingEmail.
packages/lib/jobs/definitions/emails/send-document-deleted-emails.ts Adds a job definition for document-deleted notification emails.
packages/lib/jobs/definitions/emails/send-document-deleted-emails.handler.ts Implements the document-deleted notification email send logic inside a job handler.
packages/lib/jobs/client.ts Registers the new email job definitions in the jobs client.
packages/ee/server-only/signing/csc/execute-tsp-sign.ts Switches pending email send to enqueue the new document-pending job in the EE TSP signing flow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 10

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
packages/lib/server-only/document/resend-document.ts (2)

166-184: 🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift

Do not emit DOCUMENT_REMINDER_SENT before the reminder job succeeds.

The webhook now fires after enqueue, but the handler can later fail or no-op. Move this webhook emission into the job after sendMail, status update, and audit logging succeed.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/lib/server-only/document/resend-document.ts` around lines 166 - 184,
The DOCUMENT_REMINDER_SENT webhook is emitted too early in resend-document flow;
move the triggerWebhook call out of the resendDocument path and into the
reminder job handler so it only fires after sendMail, the status update, and
audit logging all succeed. Use the existing resendDocument / jobs.triggerJob
flow and the job implementation that performs the reminder send to place the
webhook alongside the successful completion path, ensuring it is skipped if the
job fails or no-ops.

136-143: 🚀 Performance & Scalability | 🟠 Major | 🏗️ Heavy lift

Avoid resolving email transport on the enqueue path.

Line 136 still calls getEmailContext, which resolves sender/transport in packages/lib/server-only/email/get-email-context.ts:91-186, even though this path only needs organisationId, claims, and emailsDisabled. Extract/use a lightweight policy context here so email transport setup stays inside the job.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/lib/server-only/document/resend-document.ts` around lines 136 - 143,
The resend document enqueue path is still invoking getEmailContext in
resend-document.ts, which unnecessarily resolves email transport instead of only
the policy fields needed here. Update the resend flow to use a lightweight
context/helper that returns just organisationId, claims, and emailsDisabled, and
keep the full email transport resolution inside the job path; use the
resendDocument flow and getEmailContext as the key symbols when refactoring.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@packages/lib/jobs/definitions/emails/send-document-deleted-emails.handler.ts`:
- Around line 38-65: The send-document-deleted flow in
send-document-deleted-emails.handler.ts currently sends all recipients inside
one io.runTask batch, so a partial failure can cause already-sent recipients to
be emailed again on retry. Refactor the logic around io.runTask, Promise.all,
and emailTransport.sendMail to make each recipient send idempotent, either by
creating a separate per-recipient task/job or by persisting send completion
before retrying. Use the existing send-document-deleted-emails handler and
recipient loop as the main location for the change.
- Around line 36-60: The subject translation in
send-document-deleted-emails.handler uses i18n._() before the locale is active,
so update the flow to activate the instance returned by
getI18nInstance(emailLanguage) before building the subject. Use the i18n
variable in sendDocumentDeletedEmailsHandler to call activate() immediately
after retrieval, then keep using i18n._(msg`Document Cancelled`) so the email
subject resolves in the correct language.

In
`@packages/lib/jobs/definitions/emails/send-document-reminder-email.handler.ts`:
- Around line 65-78: The recipient lookup in
send-document-reminder-email.handler is too broad and can match a recipient from
a different envelope. Update the recipient fetch in the job handler so it is
scoped through the envelope relationship (or otherwise filtered by the current
envelope) before proceeding, using the existing `recipientId`, `envelope`, and
`prisma.recipient.findFirst`/related lookup logic to ensure only the recipient
belonging to that envelope is used.
- Around line 83-87: The recipient eligibility guard in
send-document-reminder-email.handler should mirror the original enqueue-time
NOT_SIGNED check instead of allowing every status except SIGNED. Update the
logic around the recipient.status/signingStatus check in the
send-document-reminder-email handler so the delayed job re-validates the same
SigningStatus.NOT_SIGNED predicate used by the queue path, while keeping the CC
and email validity checks intact.

In
`@packages/lib/jobs/definitions/emails/send-recipient-removed-email.handler.ts`:
- Around line 29-30: The send-recipient-removed-email job only checks for a
non-empty recipientEmail, so malformed payloads can still reach sendMail and
trigger retries. In send-recipient-removed-email.handler.ts, update the handler
around the existing recipientEmail guard to use the same recipient email
validator already used elsewhere before calling sendMail, and return early when
validation fails. Keep the existing envelope/recipientEmail checks in place, but
add the validator-based no-op path so invalid job payloads are skipped instead
of sent.
- Around line 59-65: The quota check in send-recipient-removed-email.handler
should be made idempotent across retries because
assertOrganisationRatesAndLimits currently triggers state-mutating quota updates
before the email is actually sent. Update the sendRecipientRemovedEmail flow to
pass a stable per-notification idempotency key or deduplication token into
checkMonthlyQuota/checkOrganisationRateLimits (or move the increment to a
post-send success path) so repeated job attempts do not increment emailCount
multiple times; use the existing sendRecipientRemovedEmail and
assertOrganisationRatesAndLimits entry points to keep the fix localized.

In `@packages/lib/server-only/document/delete-document.ts`:
- Around line 205-222: The delete flow in delete-document.ts currently enqueues
send.document.deleted.emails after the hard-delete transaction, so a failure in
jobs.triggerJob can break the request after the document is already deleted.
Update the deleteDocument path to make this notification durable with the
delete, either by using a transactional outbox or by catching and logging the
enqueue failure so the document deletion completion is not rolled back by a
post-commit job error. Use the jobs.triggerJob call and the surrounding
deleteDocument logic as the fix points.

In `@packages/lib/server-only/recipient/delete-envelope-recipient.ts`:
- Around line 143-153: After the recipient deletion has committed in
delete-envelope-recipient.ts, the jobs.triggerJob call can still fail and
incorrectly surface the whole delete as failed; update the flow around
triggerJob so enqueue errors are caught and logged without undoing the committed
deletion, or make the job enqueue part of the same transaction. Use the
delete-recipient logic in deleteEnvelopeRecipient and the
send.recipient.removed.email job trigger to locate the fix.

In `@packages/lib/server-only/recipient/set-document-recipients.ts`:
- Around line 275-297: The removed-recipient notification enqueue in
set-document-recipients should not make the API fail after the delete
transaction has already committed. Update the Promise.all job dispatch in the
removedRecipients flow to catch and log individual jobs.triggerJob failures (or
route through an outbox/transactional enqueue) so a rejected
send.recipient.removed.email job does not surface as a mutation failure once
recipients and audit logs are persisted.
- Around line 289-293: The recipient-removal email payload is using a different
inviter name fallback in this path than in deleteEnvelopeRecipient, which can
change the email copy depending on how the recipient was removed. Update the
set-document-recipients flow to include team.name in the user/team select and
pass the same inviterName fallback used by deleteEnvelopeRecipient:
envelope.team?.name || user.name || undefined. Keep the change aligned with the
existing recipient email payload where inviterName is set.

---

Outside diff comments:
In `@packages/lib/server-only/document/resend-document.ts`:
- Around line 166-184: The DOCUMENT_REMINDER_SENT webhook is emitted too early
in resend-document flow; move the triggerWebhook call out of the resendDocument
path and into the reminder job handler so it only fires after sendMail, the
status update, and audit logging all succeed. Use the existing resendDocument /
jobs.triggerJob flow and the job implementation that performs the reminder send
to place the webhook alongside the successful completion path, ensuring it is
skipped if the job fails or no-ops.
- Around line 136-143: The resend document enqueue path is still invoking
getEmailContext in resend-document.ts, which unnecessarily resolves email
transport instead of only the policy fields needed here. Update the resend flow
to use a lightweight context/helper that returns just organisationId, claims,
and emailsDisabled, and keep the full email transport resolution inside the job
path; use the resendDocument flow and getEmailContext as the key symbols when
refactoring.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: c56fe992-cd91-4e42-9e1f-c1d8b8002dc1

📥 Commits

Reviewing files that changed from the base of the PR and between 187b612 and 02feb73.

📒 Files selected for processing (15)
  • packages/ee/server-only/signing/csc/execute-tsp-sign.ts
  • packages/lib/jobs/client.ts
  • packages/lib/jobs/definitions/emails/send-document-deleted-emails.handler.ts
  • packages/lib/jobs/definitions/emails/send-document-deleted-emails.ts
  • packages/lib/jobs/definitions/emails/send-document-pending-email.handler.ts
  • packages/lib/jobs/definitions/emails/send-document-pending-email.ts
  • packages/lib/jobs/definitions/emails/send-document-reminder-email.handler.ts
  • packages/lib/jobs/definitions/emails/send-document-reminder-email.ts
  • packages/lib/jobs/definitions/emails/send-recipient-removed-email.handler.ts
  • packages/lib/jobs/definitions/emails/send-recipient-removed-email.ts
  • packages/lib/server-only/document/complete-document-with-token.ts
  • packages/lib/server-only/document/delete-document.ts
  • packages/lib/server-only/document/resend-document.ts
  • packages/lib/server-only/recipient/delete-envelope-recipient.ts
  • packages/lib/server-only/recipient/set-document-recipients.ts

Comment on lines +289 to +293
envelopeId: envelope.id,
recipientEmail: recipient.email,
recipientName: recipient.name,
inviterName: user.name || undefined,
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Keep inviterName consistent across removal paths.

This path sends only user.name, while deleteEnvelopeRecipient uses envelope.team?.name || user.name || undefined for the same job. Include team.name in the select and pass the same fallback to avoid different email copy depending on how the recipient was removed.

Proposed fix
       team: {
         select: {
+          name: true,
           organisation: {
             select: {
               organisationClaim: true,
@@
-              inviterName: user.name || undefined,
+              inviterName: envelope.team.name || user.name || undefined,
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/lib/server-only/recipient/set-document-recipients.ts` around lines
289 - 293, The recipient-removal email payload is using a different inviter name
fallback in this path than in deleteEnvelopeRecipient, which can change the
email copy depending on how the recipient was removed. Update the
set-document-recipients flow to include team.name in the user/team select and
pass the same inviterName fallback used by deleteEnvelopeRecipient:
envelope.team?.name || user.name || undefined. Keep the change aligned with the
existing recipient email payload where inviterName is set.

@vercel
vercel Bot temporarily deployed to Preview – stg-docs June 25, 2026 01:33 Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/lib/server-only/document/resend-document.ts (1)

164-182: 🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift

Move the “sent” webhook to the successful job path.

Line 164 only enqueues the reminder job, but Lines 177-182 still emit DOCUMENT_REMINDER_SENT synchronously. That can notify webhook consumers before the email is sent, or even when the job later no-ops/fails. Emit this from the handler after sendMail succeeds instead.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/lib/server-only/document/resend-document.ts` around lines 164 - 182,
The DOCUMENT_REMINDER_SENT webhook is being emitted too early in
resend-document.ts, while the reminder email is only queued and not yet
guaranteed sent. Move the webhook trigger out of the current synchronous path
and into the successful job execution path in the send.document.reminder.email
handler, after sendMail completes successfully, using the existing
triggerWebhook and sendMail flow to locate the change.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@packages/lib/server-only/document/resend-document.ts`:
- Around line 164-182: The DOCUMENT_REMINDER_SENT webhook is being emitted too
early in resend-document.ts, while the reminder email is only queued and not yet
guaranteed sent. Move the webhook trigger out of the current synchronous path
and into the successful job execution path in the send.document.reminder.email
handler, after sendMail completes successfully, using the existing
triggerWebhook and sendMail flow to locate the change.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: bfba06f1-871f-48f8-85e4-c075103b842c

📥 Commits

Reviewing files that changed from the base of the PR and between 02feb73 and cc6031c.

📒 Files selected for processing (3)
  • packages/lib/jobs/definitions/emails/send-document-reminder-email.handler.ts
  • packages/lib/jobs/definitions/emails/send-document-reminder-email.ts
  • packages/lib/server-only/document/resend-document.ts

@vercel
vercel Bot temporarily deployed to Preview – stg-docs June 25, 2026 01:45 Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/lib/jobs/definitions/emails/send-document-pending-email.handler.ts`:
- Line 16: The send-document pending email handler is calling the mail side
effect directly instead of using the job IO task wrapper. Update the run
function in send-document-pending-email.handler to keep io and execute the
sendMail flow inside io.runTask, matching the reminder handler pattern so
retries don’t resend after a successful send. Use the run entrypoint and the
mail-sending helper in this handler as the main symbols to locate the change.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: dc4d362d-4b3b-4b29-b645-63b736076c68

📥 Commits

Reviewing files that changed from the base of the PR and between cc6031c and 6bb419a.

📒 Files selected for processing (2)
  • packages/lib/jobs/definitions/emails/send-document-pending-email.handler.ts
  • packages/lib/jobs/definitions/emails/send-document-reminder-email.handler.ts

@vercel
vercel Bot temporarily deployed to Preview – stg-docs June 25, 2026 01:54 Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

♻️ Duplicate comments (1)
packages/lib/jobs/definitions/emails/send-document-deleted-emails.handler.ts (1)

37-38: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Activate i18n before translating the subject.

i18n._(...) is used for the subject before emailLanguage is activated, so subject localization can be wrong.

Proposed fix
   const assetBaseUrl = NEXT_PUBLIC_WEBAPP_URL() || 'http://localhost:3000';
   const i18n = await getI18nInstance(emailLanguage);
+  i18n.activate(emailLanguage);

Also applies to: 64-64

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/lib/jobs/definitions/emails/send-document-deleted-emails.handler.ts`
around lines 37 - 38, In send-document-deleted-emails.handler, the subject is
translated with i18n._(...) before the selected emailLanguage is activated, so
update the flow in the email subject-building logic to activate the language on
the i18n instance first and only then call the translation helper. Make the
change around getI18nInstance(emailLanguage) and the subject generation code so
the localized subject always uses the requested language, including the later
subject translation site mentioned in the comment.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@packages/lib/jobs/definitions/emails/send-document-deleted-emails.handler.ts`:
- Around line 45-55: The cancellation email content is identical for every
recipient, so the current per-recipient rendering in
send-document-deleted-emails.handler.ts is doing unnecessary work. Move the
DocumentCancelTemplate creation plus the renderEmailWithI18N calls for both html
and text outside the recipient loop, then reuse the same rendered values when
sending to each recipient. Use the existing createElement,
DocumentCancelTemplate, and renderEmailWithI18N symbols to locate and refactor
this flow.
- Line 40: The task name in sendDocumentDeletedEmails is leaking PII because
io.runTask uses recipient.email as part of the identifier. Update the
send-document-deleted-emails handler to use a non-PII stable identifier for each
task, such as the recipient index or a hashed value, and keep the logic in
sendDocumentDeletedEmails / io.runTask otherwise unchanged.

---

Duplicate comments:
In
`@packages/lib/jobs/definitions/emails/send-document-deleted-emails.handler.ts`:
- Around line 37-38: In send-document-deleted-emails.handler, the subject is
translated with i18n._(...) before the selected emailLanguage is activated, so
update the flow in the email subject-building logic to activate the language on
the i18n instance first and only then call the translation helper. Make the
change around getI18nInstance(emailLanguage) and the subject generation code so
the localized subject always uses the requested language, including the later
subject translation site mentioned in the comment.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2604ed91-6baf-4b27-aa2e-4db68129e0b2

📥 Commits

Reviewing files that changed from the base of the PR and between 6bb419a and 17014fe.

📒 Files selected for processing (1)
  • packages/lib/jobs/definitions/emails/send-document-deleted-emails.handler.ts

const i18n = await getI18nInstance(emailLanguage);

for (const recipient of recipients) {
await io.runTask(`send-document-deleted-emails-${recipient.email}`, async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Do not include recipient email in task names.

Using recipient.email in io.runTask identifiers can leak PII via logs/telemetry/task metadata. Use a non-PII stable key (e.g., index or hashed email).

Proposed fix
-    await io.runTask(`send-document-deleted-emails-${recipient.email}`, async () => {
+    await io.runTask(`send-document-deleted-emails-${index}`, async () => {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
await io.runTask(`send-document-deleted-emails-${recipient.email}`, async () => {
await io.runTask(`send-document-deleted-emails-${index}`, async () => {
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/lib/jobs/definitions/emails/send-document-deleted-emails.handler.ts`
at line 40, The task name in sendDocumentDeletedEmails is leaking PII because
io.runTask uses recipient.email as part of the identifier. Update the
send-document-deleted-emails handler to use a non-PII stable identifier for each
task, such as the recipient index or a hashed value, and keep the logic in
sendDocumentDeletedEmails / io.runTask otherwise unchanged.

@vercel
vercel Bot temporarily deployed to Preview – stg-docs June 25, 2026 01:58 Inactive
@vercel
vercel Bot temporarily deployed to Preview – stg-docs June 25, 2026 02:02 Inactive
@vercel
vercel Bot temporarily deployed to Preview – stg-docs June 25, 2026 02:09 Inactive
@vercel
vercel Bot temporarily deployed to Preview – stg-docs June 25, 2026 03:21 Inactive
@dguyen
dguyen merged commit 9c5eb43 into main Jun 25, 2026
9 checks passed
@dguyen
dguyen deleted the fix/migrate-emails-to-jobs branch June 25, 2026 03:57
jhon-appeal added a commit to appealdotai/documenso that referenced this pull request Jun 29, 2026
* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* fix: improve team member removal ux (documenso#3001)

* fix: only send S3 checksums when required to support S3-compatible storage (documenso#2984)

* fix: render unicode characters in typed signatures (documenso#2728)

* fix: signing request email renders blank when organisation/team branding is enabled (documenso#2968)

* fix: remove old dialogs (documenso#3006)

* feat: add custom brand colours to emails (documenso#3005)

* feat: allow additional envelope duplicate settings (documenso#3008)

* fix: respect branding enabled for recipient routes (documenso#3009)

* chore: extract translations (documenso#2987)

* fix: correctly use default distribute envelope tab (documenso#3010)

* fix: set send status on resend (documenso#3011)

* feat: add API endpoint to reject documents on behalf of recipients (documenso#3007)

Programmatically record an external rejection on behalf of a recipient
who declined outside the platform. Flags the rejection as external in
the audit log, optionally attributes it to a specific team member via
actAsEmail, and enforces team membership and document visibility.

* feat: cap automated reminders before resend (documenso#3016)

Stop sending automated reminders after a configurable threshold
(default 5) and reset the count on manual resend.

* fix: show warning on overlapping fields (documenso#3017)

* chore: add translations (documenso#3012)

* chore(i18n): update Polish translation (documenso#3020)

* fix: migrate emails to jobs (documenso#3024)

* chore: general repo maintenance and docs cleanup (documenso#3030)

Refresh README/docs for the current stack, add a security policy,
note the external-PR pause, and remove dead config and workflows.

* feat: add API endpoints for downloading certificate and audit log PDFs (documenso#3025)

Add V2 API routes to download an envelope's certificate and audit log
separately, and align the internal cert/audit log downloads to use
envelopeId.

Enforces document visibility via getEnvelopeWhereInput and loads field
signatures so certificates render correctly.

* fix: resolve permission issues (documenso#3029)

* chore: add tests for cert and audit log download via api (documenso#3043)

* v2.14.0

* fix: auto select field on drop (documenso#3028)

* feat: add field multiselect (documenso#3031)

* fix: invite email placeholder (documenso#3045)

- **fix: interpolate inviterEmail in invite email mailto link**
- **fix: add alt attributes to email template images**

* fix: tighten permission and validation checks (documenso#3046)

* fix: scope organisation group deletion (documenso#3047)

* fix: add missing teams branding guard (documenso#3049)

* fix(email): render Preview inside Body across all email templates (documenso#3004)

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Abdelrahman Abdelhamed <[email protected]>
Co-authored-by: Nandini Dhanrale <[email protected]>
Co-authored-by: Martin Glaser <[email protected]>
Co-authored-by: Cursor <[email protected]>
jhon-appeal added a commit to appealdotai/documenso that referenced this pull request Jun 29, 2026
* chore(release): sync fork with upstream (#13)

* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* feat(signing): show enter text/number on recipient field placeholders

Hide editor-defined labels in the recipient signing UI for text and
number fields while keeping stored field metadata unchanged.

Co-authored-by: Cursor <[email protected]>

* fix(signing): preserve prefilled text and number values on recipient edit

Prefilled fields were cleared when recipients clicked to edit because inserted
fields returned a null value. Open the dialog with the existing value instead.

Co-authored-by: Cursor <[email protected]>

* fix(signing): display editor-prefilled text and number on recipient canvas

Show fieldMeta prefilled values on the signing surface instead of the
generic enter prompt when the field has not been inserted yet.

Co-authored-by: Cursor <[email protected]>

* fix(signing): narrow field meta type for prefilled field rendering

Fix TypeScript build errors by narrowing text/number fieldMeta before
accessing alignment properties on the recipient signing surface.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add pre-deploy checks and railway deploy gate

Add typecheck, lint, unit tests, and a deploy gate job so Railway can
wait for CI before deploying. Docker build runs in parallel after lint.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run pre-deploy checks on development branch

Extend CI triggers and the Railway deploy gate to main and development,
including pull requests targeting development.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run e2e tests on development branch

Run Playwright tests on push and pull requests targeting development
as well as main.

Co-authored-by: Cursor <[email protected]>

* chore(ci): limit tests and docker build to main branch

Run unit tests, Docker build, and E2E only on main. Development keeps
typecheck, lint, build, and a lighter deploy gate for Railway.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add scheduled staging start/stop workflow

chore(ci): add scheduled staging start/stop workflow

* Chore: staging toggle (#6)

* chore(ci): add manual staging on/off workflow

Split manual start/stop into a dedicated Staging Toggle workflow so it
can be run from the Actions tab without touching the schedule.

Co-authored-by: Cursor <[email protected]>

* chore(ci): keep manual staging toggle in schedule workflow

Restore workflow_dispatch start/stop on Staging Schedule and remove the
separate toggle workflow so scheduled and manual control live in one place.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* feat(date-field): enhance date field with editable value and read-only control (#7)

* feat(date-field): enhance date field with editable value and read-only control

- Add `value` property to ZDateFieldMeta schema for editor-set dates
- Add date picker (calendar) + text input in editor settings form
- Add label field to date editor settings
- Add "Read Only" checkbox to lock date value for recipients
- Replace recipient toggle behavior with calendar picker dialog
- Preserve existing value when recipient clicks field (same as text/number)
- Show "Select Date" placeholder when field is empty on signing surface
- Add DATE to ADVANCED_FIELD_TYPES_WITH_OPTIONAL_SETTING (no longer always required)
- Auto-insert readOnly date fields with value on document distribute
- Only auto-insert required DATE fields at completion time
- Update sign-envelope-field types to accept string date values
- Format recipient-selected dates using document's configured date format

Co-authored-by: Cursor <[email protected]>

* fix(date-field): guard text layout props in readonly date rendering

Only apply verticalAlign, letterSpacing, and lineHeight for text and
number fields in the readonly fallback path. Date field meta does not
include those properties.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(remix): add date-fns dependency for react-day-picker runtime (#8)

Calendar date picker requires date-fns as a peer dependency of
react-day-picker. Add it directly to @documenso/remix so turbo prune
includes it in the production Docker image on Railway.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(signing): use static titles for text number date dialogs (#10)

Use fixed signer dialog titles instead of field labels.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* chore(ci): add upstream release check workflow (#14) (#15)

Open a repo issue when documenso/documenso publishes a new release.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add required checkbox to date field settings (#16)

Expose the existing required fieldMeta option in the envelope editor date
field form so editors can mark date fields as mandatory before signing.

Co-authored-by: Cursor <[email protected]>

* feat(field): dropdown signature field settings main (#19)

* feat(editor): add editor-only label to dropdown field settings (#17)

Expose dropdown field labels in the envelope editor while keeping the
recipient signing surface on the generic Select Option placeholder.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add label and required settings to signature field (#18)

Expose editor-only labels and an optional required toggle for signature
fields while keeping existing signatures required by default.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings and top-aligned defaults (#23)

* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* feat(signing): show enter text/number on recipient field placeholders

Hide editor-defined labels in the recipient signing UI for text and
number fields while keeping stored field metadata unchanged.

Co-authored-by: Cursor <[email protected]>

* fix(signing): preserve prefilled text and number values on recipient edit

Prefilled fields were cleared when recipients clicked to edit because inserted
fields returned a null value. Open the dialog with the existing value instead.

Co-authored-by: Cursor <[email protected]>

* fix(signing): display editor-prefilled text and number on recipient canvas

Show fieldMeta prefilled values on the signing surface instead of the
generic enter prompt when the field has not been inserted yet.

Co-authored-by: Cursor <[email protected]>

* fix(signing): narrow field meta type for prefilled field rendering

Fix TypeScript build errors by narrowing text/number fieldMeta before
accessing alignment properties on the recipient signing surface.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add pre-deploy checks and railway deploy gate

Add typecheck, lint, unit tests, and a deploy gate job so Railway can
wait for CI before deploying. Docker build runs in parallel after lint.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run pre-deploy checks on development branch

Extend CI triggers and the Railway deploy gate to main and development,
including pull requests targeting development.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run e2e tests on development branch

Run Playwright tests on push and pull requests targeting development
as well as main.

Co-authored-by: Cursor <[email protected]>

* chore(ci): limit tests and docker build to main branch

Run unit tests, Docker build, and E2E only on main. Development keeps
typecheck, lint, build, and a lighter deploy gate for Railway.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add scheduled staging start/stop workflow

chore(ci): add scheduled staging start/stop workflow

* Chore: staging toggle (#6)

* chore(ci): add manual staging on/off workflow

Split manual start/stop into a dedicated Staging Toggle workflow so it
can be run from the Actions tab without touching the schedule.

Co-authored-by: Cursor <[email protected]>

* chore(ci): keep manual staging toggle in schedule workflow

Restore workflow_dispatch start/stop on Staging Schedule and remove the
separate toggle workflow so scheduled and manual control live in one place.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* feat(date-field): enhance date field with editable value and read-only control (#7)

* feat(date-field): enhance date field with editable value and read-only control

- Add `value` property to ZDateFieldMeta schema for editor-set dates
- Add date picker (calendar) + text input in editor settings form
- Add label field to date editor settings
- Add "Read Only" checkbox to lock date value for recipients
- Replace recipient toggle behavior with calendar picker dialog
- Preserve existing value when recipient clicks field (same as text/number)
- Show "Select Date" placeholder when field is empty on signing surface
- Add DATE to ADVANCED_FIELD_TYPES_WITH_OPTIONAL_SETTING (no longer always required)
- Auto-insert readOnly date fields with value on document distribute
- Only auto-insert required DATE fields at completion time
- Update sign-envelope-field types to accept string date values
- Format recipient-selected dates using document's configured date format

Co-authored-by: Cursor <[email protected]>

* fix(date-field): guard text layout props in readonly date rendering

Only apply verticalAlign, letterSpacing, and lineHeight for text and
number fields in the readonly fallback path. Date field meta does not
include those properties.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(remix): add date-fns dependency for react-day-picker runtime (#8)

Calendar date picker requires date-fns as a peer dependency of
react-day-picker. Add it directly to @documenso/remix so turbo prune
includes it in the production Docker image on Railway.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(signing): use static titles for text number date dialogs (#10)

Use fixed signer dialog titles instead of field labels.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* chore(ci): add upstream release check workflow (#14)

Open a repo issue when documenso/documenso publishes a new release.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add required checkbox to date field settings (#16)

Expose the existing required fieldMeta option in the envelope editor date
field form so editors can mark date fields as mandatory before signing.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add editor-only label to dropdown field settings (#17)

Expose dropdown field labels in the envelope editor while keeping the
recipient signing surface on the generic Select Option placeholder.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add label and required settings to signature field (#18)

Expose editor-only labels and an optional required toggle for signature
fields while keeping existing signatures required by default.

Co-authored-by: Cursor <[email protected]>

* fix(lint): sort imports and fix subscription formatting (#20)

Resolves Biome check errors blocking npm run lint.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings and signing preview (#21)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings, signing preview, and text field defaults (#22)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): default vertical overflow and top align

Simplify editor overflow to vertical, horizontal, and crop with
vertical as default. New text fields persist top vertical alignment
without changing render behavior for existing templates.

Co-authored-by: Cursor <[email protected]>

* refactor(text-field): remove signing dialog text preview

Overflow is visible on the document after save; the inline preview
added unnecessary complexity to the enter-text dialog.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* chore(i18n): sync translation catalogs

Update extracted strings across all locale files after upstream
feature additions (bulk cancel, CSC signing audit logs, etc.).

Co-authored-by: Cursor <[email protected]>

* fix(lib): remove duplicate imports from merge conflict

Resolve duplicate assertCompatibleRecipientRole and
resolveSignatureLevel imports introduced when main was merged
into release/text-field-overflow.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* feat(checkbox): add editor label setting and hide from recipients (#25)

Expose fieldMeta.label in envelope editor checkbox settings while keeping it off the signing UI.

Co-authored-by: Cursor <[email protected]>

* chore(release): sync development to main (#27)

* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* feat(signing): show enter text/number on recipient field placeholders

Hide editor-defined labels in the recipient signing UI for text and
number fields while keeping stored field metadata unchanged.

Co-authored-by: Cursor <[email protected]>

* fix(signing): preserve prefilled text and number values on recipient edit

Prefilled fields were cleared when recipients clicked to edit because inserted
fields returned a null value. Open the dialog with the existing value instead.

Co-authored-by: Cursor <[email protected]>

* fix(signing): display editor-prefilled text and number on recipient canvas

Show fieldMeta prefilled values on the signing surface instead of the
generic enter prompt when the field has not been inserted yet.

Co-authored-by: Cursor <[email protected]>

* fix(signing): narrow field meta type for prefilled field rendering

Fix TypeScript build errors by narrowing text/number fieldMeta before
accessing alignment properties on the recipient signing surface.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add pre-deploy checks and railway deploy gate

Add typecheck, lint, unit tests, and a deploy gate job so Railway can
wait for CI before deploying. Docker build runs in parallel after lint.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run pre-deploy checks on development branch

Extend CI triggers and the Railway deploy gate to main and development,
including pull requests targeting development.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run e2e tests on development branch

Run Playwright tests on push and pull requests targeting development
as well as main.

Co-authored-by: Cursor <[email protected]>

* chore(ci): limit tests and docker build to main branch

Run unit tests, Docker build, and E2E only on main. Development keeps
typecheck, lint, build, and a lighter deploy gate for Railway.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add scheduled staging start/stop workflow

chore(ci): add scheduled staging start/stop workflow

* Chore: staging toggle (#6)

* chore(ci): add manual staging on/off workflow

Split manual start/stop into a dedicated Staging Toggle workflow so it
can be run from the Actions tab without touching the schedule.

Co-authored-by: Cursor <[email protected]>

* chore(ci): keep manual staging toggle in schedule workflow

Restore workflow_dispatch start/stop on Staging Schedule and remove the
separate toggle workflow so scheduled and manual control live in one place.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* feat(date-field): enhance date field with editable value and read-only control (#7)

* feat(date-field): enhance date field with editable value and read-only control

- Add `value` property to ZDateFieldMeta schema for editor-set dates
- Add date picker (calendar) + text input in editor settings form
- Add label field to date editor settings
- Add "Read Only" checkbox to lock date value for recipients
- Replace recipient toggle behavior with calendar picker dialog
- Preserve existing value when recipient clicks field (same as text/number)
- Show "Select Date" placeholder when field is empty on signing surface
- Add DATE to ADVANCED_FIELD_TYPES_WITH_OPTIONAL_SETTING (no longer always required)
- Auto-insert readOnly date fields with value on document distribute
- Only auto-insert required DATE fields at completion time
- Update sign-envelope-field types to accept string date values
- Format recipient-selected dates using document's configured date format

Co-authored-by: Cursor <[email protected]>

* fix(date-field): guard text layout props in readonly date rendering

Only apply verticalAlign, letterSpacing, and lineHeight for text and
number fields in the readonly fallback path. Date field meta does not
include those properties.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(remix): add date-fns dependency for react-day-picker runtime (#8)

Calendar date picker requires date-fns as a peer dependency of
react-day-picker. Add it directly to @documenso/remix so turbo prune
includes it in the production Docker image on Railway.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(signing): use static titles for text number date dialogs (#10)

Use fixed signer dialog titles instead of field labels.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* chore(ci): add upstream release check workflow (#14)

Open a repo issue when documenso/documenso publishes a new release.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add required checkbox to date field settings (#16)

Expose the existing required fieldMeta option in the envelope editor date
field form so editors can mark date fields as mandatory before signing.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add editor-only label to dropdown field settings (#17)

Expose dropdown field labels in the envelope editor while keeping the
recipient signing surface on the generic Select Option placeholder.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add label and required settings to signature field (#18)

Expose editor-only labels and an optional required toggle for signature
fields while keeping existing signatures required by default.

Co-authored-by: Cursor <[email protected]>

* fix(lint): sort imports and fix subscription formatting (#20)

Resolves Biome check errors blocking npm run lint.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings and signing preview (#21)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings, signing preview, and text field defaults (#22)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): default vertical overflow and top align

Simplify editor overflow to vertical, horizontal, and crop with
vertical as default. New text fields persist top vertical alignment
without changing render behavior for existing templates.

Co-authored-by: Cursor <[email protected]>

* refactor(text-field): remove signing dialog text preview

Overflow is visible on the document after save; the inline preview
added unnecessary complexity to the enter-text dialog.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(checkbox): add editor label setting and hide from recipients (#24)

Expose fieldMeta.label in envelope editor checkbox settings while keeping it off the signing UI.

Co-authored-by: Cursor <[email protected]>

* feat(signing): add per-field signature picker and change dialog (#26)

* feat(signing): add per-field signature picker and change dialog

Let recipients sign each signature field independently with a picker for
document and profile signatures, tiered re-auth, and replace/remove on
re-click across V1 and V2 signing flows.

Co-authored-by: Cursor <[email protected]>

* feat(signing): auto-apply default signature on empty field click

When a default signature is set, clicking an unsigned field applies it
immediately without opening the picker dialog.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(pdf): skip optional unsigned signature fields when sealing (#28) (#29)

Optional signature fields left empty were burned into completed PDFs as
the literal text "SIGNATURE". Only insert signed fields during V2 sealing
and default export rendering to blank for unsigned fields.

Co-authored-by: Cursor <[email protected]>

* fix(certificate): show signed field when recipient has multiple signatures (#31)

The signing certificate used the first signature field per recipient, so an
unsigned optional field could hide the actual signature from a required field.
Prefer fields with signature content in both PDF and HTML certificate paths.

Co-authored-by: Cursor <[email protected]>

* fix(emails): prevent duplicate completion emails on job retry (#33)

Skip recipients who already received a completion email and log failed
addresses when sends fail so retries only target missing deliveries.

Co-authored-by: Cursor <[email protected]>

* chore(sync): merge upstream v2.14.0 into main (#34)

* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* fix: improve team member removal ux (documenso#3001)

* fix: only send S3 checksums when required to support S3-compatible storage (documenso#2984)

* fix: render unicode characters in typed signatures (documenso#2728)

* fix: signing request email renders blank when organisation/team branding is enabled (documenso#2968)

* fix: remove old dialogs (documenso#3006)

* feat: add custom brand colours to emails (documenso#3005)

* feat: allow additional envelope duplicate settings (documenso#3008)

* fix: respect branding enabled for recipient routes (documenso#3009)

* chore: extract translations (documenso#2987)

* fix: correctly use default distribute envelope tab (documenso#3010)

* fix: set send status on resend (documenso#3011)

* feat: add API endpoint to reject documents on behalf of recipients (documenso#3007)

Programmatically record an external rejection on behalf of a recipient
who declined outside the platform. Flags the rejection as external in
the audit log, optionally attributes it to a specific team member via
actAsEmail, and enforces team membership and document visibility.

* feat: cap automated reminders before resend (documenso#3016)

Stop sending automated reminders after a configurable threshold
(default 5) and reset the count on manual resend.

* fix: show warning on overlapping fields (documenso#3017)

* chore: add translations (documenso#3012)

* chore(i18n): update Polish translation (documenso#3020)

* fix: migrate emails to jobs (documenso#3024)

* chore: general repo maintenance and docs cleanup (documenso#3030)

Refresh README/docs for the current stack, add a security policy,
note the external-PR pause, and remove dead config and workflows.

* feat: add API endpoints for downloading certificate and audit log PDFs (documenso#3025)

Add V2 API routes to download an envelope's certificate and audit log
separately, and align the internal cert/audit log downloads to use
envelopeId.

Enforces document visibility via getEnvelopeWhereInput and loads field
signatures so certificates render correctly.

* fix: resolve permission issues (documenso#3029)

* chore: add tests for cert and audit log download via api (documenso#3043)

* v2.14.0

* fix: auto select field on drop (documenso#3028)

* feat: add field multiselect (documenso#3031)

* fix: invite email placeholder (documenso#3045)

- **fix: interpolate inviterEmail in invite email mailto link**
- **fix: add alt attributes to email template images**

* fix: tighten permission and validation checks (documenso#3046)

* fix: scope organisation group deletion (documenso#3047)

* fix: add missing teams branding guard (documenso#3049)

* fix(email): render Preview inside Body across all email templates (documenso#3004)

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Abdelrahman Abdelhamed <[email protected]>
Co-authored-by: Nandini Dhanrale <[email protected]>
Co-authored-by: Martin Glaser <[email protected]>
Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Abdelrahman Abdelhamed <[email protected]>
Co-authored-by: Nandini Dhanrale <[email protected]>
Co-authored-by: Martin Glaser <[email protected]>
austinw8 added a commit to datathink/keepcontracts.com that referenced this pull request Jul 21, 2026
* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* fix: improve team member removal ux (documenso#3001)

* fix: only send S3 checksums when required to support S3-compatible storage (documenso#2984)

* fix: render unicode characters in typed signatures (documenso#2728)

* fix: signing request email renders blank when organisation/team branding is enabled (documenso#2968)

* fix: remove old dialogs (documenso#3006)

* feat: add custom brand colours to emails (documenso#3005)

* feat: allow additional envelope duplicate settings (documenso#3008)

* fix: respect branding enabled for recipient routes (documenso#3009)

* chore: extract translations (documenso#2987)

* fix: correctly use default distribute envelope tab (documenso#3010)

* fix: set send status on resend (documenso#3011)

* feat: add API endpoint to reject documents on behalf of recipients (documenso#3007)

Programmatically record an external rejection on behalf of a recipient
who declined outside the platform. Flags the rejection as external in
the audit log, optionally attributes it to a specific team member via
actAsEmail, and enforces team membership and document visibility.

* feat: cap automated reminders before resend (documenso#3016)

Stop sending automated reminders after a configurable threshold
(default 5) and reset the count on manual resend.

* fix: show warning on overlapping fields (documenso#3017)

* chore: add translations (documenso#3012)

* chore(i18n): update Polish translation (documenso#3020)

* fix: migrate emails to jobs (documenso#3024)

* chore: general repo maintenance and docs cleanup (documenso#3030)

Refresh README/docs for the current stack, add a security policy,
note the external-PR pause, and remove dead config and workflows.

* feat: add API endpoints for downloading certificate and audit log PDFs (documenso#3025)

Add V2 API routes to download an envelope's certificate and audit log
separately, and align the internal cert/audit log downloads to use
envelopeId.

Enforces document visibility via getEnvelopeWhereInput and loads field
signatures so certificates render correctly.

* fix: resolve permission issues (documenso#3029)

* chore: add tests for cert and audit log download via api (documenso#3043)

* v2.14.0

* fix: auto select field on drop (documenso#3028)

* feat: add field multiselect (documenso#3031)

* fix: invite email placeholder (documenso#3045)

- **fix: interpolate inviterEmail in invite email mailto link**
- **fix: add alt attributes to email template images**

* fix: tighten permission and validation checks (documenso#3046)

* fix: scope organisation group deletion (documenso#3047)

* fix: add missing teams branding guard (documenso#3049)

* fix(email): render Preview inside Body across all email templates (documenso#3004)

* fix: add additional team group permission checks (documenso#3052)

* fix: french translation for confirmation message (documenso#3050)

* feat: add granular signin disable flags and OIDC auto-redirect (documenso#2857)

* fix: webhook payload contains stale deletedAt on document cancellation (documenso#2980)

* fix: add sticky form update button (documenso#3056)

* chore: extract translations (documenso#3013)

* chore: upgrade libpdf (documenso#3058)

* fix: remove presigned branding upload (documenso#3053)

* fix: block invisible & control characters and URLs in names (documenso#2978)

* fix: admin organisation limits and usage UI (documenso#3014)

* chore: upgrade deps (documenso#3065)

* Add "Apply Your License Key" self-hosting guide (documenso#3077)

Adds a dedicated self-hosting page documenting how to apply an
Enterprise license key, and cross-links it from the related docs.

New page: self-hosting/configuration/license.mdx — "Apply Your License
Key"
Set NEXT_PRIVATE_DOCUMENSO_LICENSE_KEY (Docker Compose / docker run /
.env tabs)

* feat: enable real-time validation for email and password fields (documenso#2204)

## Description

This MR improves the real-time validation experience on the signup page.
Currently, both the email and password fields validate only on blur,
causing users to continue seeing error messages even after correcting
their input until they click outside the field.

This update switches the React Hook Form configuration from mode:
'onBlur' to mode: 'onChange', ensuring validations update immediately as
the user types.
This results in a smoother and less confusing signup experience.

## Related Issue

Fixes documenso#2200

## Changes Made

- Updated React Hook Form configuration in the signup form from:
- mode: 'onBlur' ➜ mode: 'onChange'
- Ensures real-time validation for email and password fields
- No schema or logic changes — only validation trigger updated


## Testing Performed

- Manually tested the signup page for:
- Real-time password rule updates
- Real-time email validation feedback
- Error disappearance immediately after correcting input

## Checklist

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

## Additional Notes

This is a small UX-focused improvement; the validation schema remains
unchanged.

Co-authored-by: Catalin Pit <[email protected]>

* docs: update rate limit doc for organisation limit for self hosters (documenso#3089)

* v2.15.0

* chore: extract translations (documenso#3060)

* fix: replace tailwind class typos

* fix: improve editor autosave (documenso#3057)

* fix(ui): improve destructive button contrast in dark mode (documenso#3071)

* fix: missing noreply email for resend (documenso#3094)

* chore: deps upgrade 2026-07-14 (documenso#3095)

* feat: redesign api tokens settings page (documenso#3076)

* fix: react hydration errors (documenso#3099)

Move PostHog init out of the React tree so the client tree matches
the server render (mismatched useIds could abort hydration, leaving
dead event handlers). Also expose the CSP nonce so Radix scroll-lock
styles aren't blocked.

* fix: render error messages for invalid templates (documenso#3088)

Currently direct templates can be created without the required
signatures fields for signers.

This means that the document can be fully signed by everyone but will
ultimately fail the sealing step which leaves the document in an
unrecoverable state.

* feat: add document preferences reset dialog (documenso#3039)

* feat: add branding preferences reset dialog (documenso#3032)

* v2.16.0

* fix: increase global API rate limits to 1000/min (documenso#3081)

* chore: refactor code structure

* chore: update translations to reflect the rebranding from Documenso to Keep Contracts

* chore: update legacy service account emails

---------

Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Abdelrahman Abdelhamed <[email protected]>
Co-authored-by: Nandini Dhanrale <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Martin Glaser <[email protected]>
Co-authored-by: Grégory Chevalier <[email protected]>
Co-authored-by: Kendry Grullon <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Tanushree Ahir <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Austin Mangelson <[email protected]>
austinw8 added a commit to datathink/keepcontracts.com that referenced this pull request Jul 21, 2026
* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* fix: improve team member removal ux (documenso#3001)

* fix: only send S3 checksums when required to support S3-compatible storage (documenso#2984)

* fix: render unicode characters in typed signatures (documenso#2728)

* fix: signing request email renders blank when organisation/team branding is enabled (documenso#2968)

* fix: remove old dialogs (documenso#3006)

* feat: add custom brand colours to emails (documenso#3005)

* feat: allow additional envelope duplicate settings (documenso#3008)

* fix: respect branding enabled for recipient routes (documenso#3009)

* chore: extract translations (documenso#2987)

* fix: correctly use default distribute envelope tab (documenso#3010)

* fix: set send status on resend (documenso#3011)

* feat: add API endpoint to reject documents on behalf of recipients (documenso#3007)

Programmatically record an external rejection on behalf of a recipient
who declined outside the platform. Flags the rejection as external in
the audit log, optionally attributes it to a specific team member via
actAsEmail, and enforces team membership and document visibility.

* feat: cap automated reminders before resend (documenso#3016)

Stop sending automated reminders after a configurable threshold
(default 5) and reset the count on manual resend.

* fix: show warning on overlapping fields (documenso#3017)

* chore: add translations (documenso#3012)

* chore(i18n): update Polish translation (documenso#3020)

* fix: migrate emails to jobs (documenso#3024)

* chore: general repo maintenance and docs cleanup (documenso#3030)

Refresh README/docs for the current stack, add a security policy,
note the external-PR pause, and remove dead config and workflows.

* feat: add API endpoints for downloading certificate and audit log PDFs (documenso#3025)

Add V2 API routes to download an envelope's certificate and audit log
separately, and align the internal cert/audit log downloads to use
envelopeId.

Enforces document visibility via getEnvelopeWhereInput and loads field
signatures so certificates render correctly.

* fix: resolve permission issues (documenso#3029)

* chore: add tests for cert and audit log download via api (documenso#3043)

* v2.14.0

* fix: auto select field on drop (documenso#3028)

* feat: add field multiselect (documenso#3031)

* fix: invite email placeholder (documenso#3045)

- **fix: interpolate inviterEmail in invite email mailto link**
- **fix: add alt attributes to email template images**

* fix: tighten permission and validation checks (documenso#3046)

* fix: scope organisation group deletion (documenso#3047)

* fix: add missing teams branding guard (documenso#3049)

* fix(email): render Preview inside Body across all email templates (documenso#3004)

* fix: add additional team group permission checks (documenso#3052)

* fix: french translation for confirmation message (documenso#3050)

* feat: add granular signin disable flags and OIDC auto-redirect (documenso#2857)

* fix: webhook payload contains stale deletedAt on document cancellation (documenso#2980)

* fix: add sticky form update button (documenso#3056)

* chore: extract translations (documenso#3013)

* chore: upgrade libpdf (documenso#3058)

* fix: remove presigned branding upload (documenso#3053)

* fix: block invisible & control characters and URLs in names (documenso#2978)

* fix: admin organisation limits and usage UI (documenso#3014)

* chore: upgrade deps (documenso#3065)

* Add "Apply Your License Key" self-hosting guide (documenso#3077)

Adds a dedicated self-hosting page documenting how to apply an
Enterprise license key, and cross-links it from the related docs.

New page: self-hosting/configuration/license.mdx — "Apply Your License
Key"
Set NEXT_PRIVATE_DOCUMENSO_LICENSE_KEY (Docker Compose / docker run /
.env tabs)

* feat: enable real-time validation for email and password fields (documenso#2204)

## Description

This MR improves the real-time validation experience on the signup page.
Currently, both the email and password fields validate only on blur,
causing users to continue seeing error messages even after correcting
their input until they click outside the field.

This update switches the React Hook Form configuration from mode:
'onBlur' to mode: 'onChange', ensuring validations update immediately as
the user types.
This results in a smoother and less confusing signup experience.

## Related Issue

Fixes documenso#2200

## Changes Made

- Updated React Hook Form configuration in the signup form from:
- mode: 'onBlur' ➜ mode: 'onChange'
- Ensures real-time validation for email and password fields
- No schema or logic changes — only validation trigger updated


## Testing Performed

- Manually tested the signup page for:
- Real-time password rule updates
- Real-time email validation feedback
- Error disappearance immediately after correcting input

## Checklist

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

## Additional Notes

This is a small UX-focused improvement; the validation schema remains
unchanged.

Co-authored-by: Catalin Pit <[email protected]>

* docs: update rate limit doc for organisation limit for self hosters (documenso#3089)

* v2.15.0

* chore: extract translations (documenso#3060)

* fix: replace tailwind class typos

* fix: improve editor autosave (documenso#3057)

* fix(ui): improve destructive button contrast in dark mode (documenso#3071)

* fix: missing noreply email for resend (documenso#3094)

* chore: deps upgrade 2026-07-14 (documenso#3095)

* feat: redesign api tokens settings page (documenso#3076)

* fix: react hydration errors (documenso#3099)

Move PostHog init out of the React tree so the client tree matches
the server render (mismatched useIds could abort hydration, leaving
dead event handlers). Also expose the CSP nonce so Radix scroll-lock
styles aren't blocked.

* fix: render error messages for invalid templates (documenso#3088)

Currently direct templates can be created without the required
signatures fields for signers.

This means that the document can be fully signed by everyone but will
ultimately fail the sealing step which leaves the document in an
unrecoverable state.

* feat: add document preferences reset dialog (documenso#3039)

* feat: add branding preferences reset dialog (documenso#3032)

* v2.16.0

* fix: increase global API rate limits to 1000/min (documenso#3081)

---------

Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Abdelrahman Abdelhamed <[email protected]>
Co-authored-by: Nandini Dhanrale <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Martin Glaser <[email protected]>
Co-authored-by: Grégory Chevalier <[email protected]>
Co-authored-by: Kendry Grullon <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Tanushree Ahir <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Austin Mangelson <[email protected]>
jhon-appeal added a commit to appealdotai/documenso that referenced this pull request Jul 30, 2026
* fix: improve team member removal ux (documenso#3001)

* fix: only send S3 checksums when required to support S3-compatible storage (documenso#2984)

* fix: render unicode characters in typed signatures (documenso#2728)

* fix: signing request email renders blank when organisation/team branding is enabled (documenso#2968)

* fix: remove old dialogs (documenso#3006)

* feat: add custom brand colours to emails (documenso#3005)

* feat: allow additional envelope duplicate settings (documenso#3008)

* fix: respect branding enabled for recipient routes (documenso#3009)

* chore: extract translations (documenso#2987)

* fix: correctly use default distribute envelope tab (documenso#3010)

* fix: set send status on resend (documenso#3011)

* feat: add API endpoint to reject documents on behalf of recipients (documenso#3007)

Programmatically record an external rejection on behalf of a recipient
who declined outside the platform. Flags the rejection as external in
the audit log, optionally attributes it to a specific team member via
actAsEmail, and enforces team membership and document visibility.

* feat: cap automated reminders before resend (documenso#3016)

Stop sending automated reminders after a configurable threshold
(default 5) and reset the count on manual resend.

* fix: show warning on overlapping fields (documenso#3017)

* chore: add translations (documenso#3012)

* chore(i18n): update Polish translation (documenso#3020)

* fix: migrate emails to jobs (documenso#3024)

* chore: general repo maintenance and docs cleanup (documenso#3030)

Refresh README/docs for the current stack, add a security policy,
note the external-PR pause, and remove dead config and workflows.

* feat: add API endpoints for downloading certificate and audit log PDFs (documenso#3025)

Add V2 API routes to download an envelope's certificate and audit log
separately, and align the internal cert/audit log downloads to use
envelopeId.

Enforces document visibility via getEnvelopeWhereInput and loads field
signatures so certificates render correctly.

* fix: resolve permission issues (documenso#3029)

* chore: add tests for cert and audit log download via api (documenso#3043)

* v2.14.0

* fix: auto select field on drop (documenso#3028)

* feat: add field multiselect (documenso#3031)

* fix: invite email placeholder (documenso#3045)

- **fix: interpolate inviterEmail in invite email mailto link**
- **fix: add alt attributes to email template images**

* fix: tighten permission and validation checks (documenso#3046)

* fix: scope organisation group deletion (documenso#3047)

* fix: add missing teams branding guard (documenso#3049)

* fix(email): render Preview inside Body across all email templates (documenso#3004)

* fix: add additional team group permission checks (documenso#3052)

* fix: french translation for confirmation message (documenso#3050)

* feat: add granular signin disable flags and OIDC auto-redirect (documenso#2857)

* fix: webhook payload contains stale deletedAt on document cancellation (documenso#2980)

* fix: add sticky form update button (documenso#3056)

* chore: extract translations (documenso#3013)

* chore: upgrade libpdf (documenso#3058)

* fix: remove presigned branding upload (documenso#3053)

* fix: block invisible & control characters and URLs in names (documenso#2978)

* fix: admin organisation limits and usage UI (documenso#3014)

* chore: upgrade deps (documenso#3065)

* Add "Apply Your License Key" self-hosting guide (documenso#3077)

Adds a dedicated self-hosting page documenting how to apply an
Enterprise license key, and cross-links it from the related docs.

New page: self-hosting/configuration/license.mdx — "Apply Your License
Key"
Set NEXT_PRIVATE_DOCUMENSO_LICENSE_KEY (Docker Compose / docker run /
.env tabs)

* feat: enable real-time validation for email and password fields (documenso#2204)

## Description

This MR improves the real-time validation experience on the signup page.
Currently, both the email and password fields validate only on blur,
causing users to continue seeing error messages even after correcting
their input until they click outside the field.

This update switches the React Hook Form configuration from mode:
'onBlur' to mode: 'onChange', ensuring validations update immediately as
the user types.
This results in a smoother and less confusing signup experience.

## Related Issue

Fixes documenso#2200

## Changes Made

- Updated React Hook Form configuration in the signup form from:
- mode: 'onBlur' ➜ mode: 'onChange'
- Ensures real-time validation for email and password fields
- No schema or logic changes — only validation trigger updated


## Testing Performed

- Manually tested the signup page for:
- Real-time password rule updates
- Real-time email validation feedback
- Error disappearance immediately after correcting input

## Checklist

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

## Additional Notes

This is a small UX-focused improvement; the validation schema remains
unchanged.

Co-authored-by: Catalin Pit <[email protected]>

* docs: update rate limit doc for organisation limit for self hosters (documenso#3089)

* v2.15.0

* chore: extract translations (documenso#3060)

* fix: replace tailwind class typos

* fix: improve editor autosave (documenso#3057)

* fix(ui): improve destructive button contrast in dark mode (documenso#3071)

* fix: missing noreply email for resend (documenso#3094)

* chore: deps upgrade 2026-07-14 (documenso#3095)

* feat: redesign api tokens settings page (documenso#3076)

* fix: react hydration errors (documenso#3099)

Move PostHog init out of the React tree so the client tree matches
the server render (mismatched useIds could abort hydration, leaving
dead event handlers). Also expose the CSP nonce so Radix scroll-lock
styles aren't blocked.

* fix: render error messages for invalid templates (documenso#3088)

Currently direct templates can be created without the required
signatures fields for signers.

This means that the document can be fully signed by everyone but will
ultimately fail the sealing step which leaves the document in an
unrecoverable state.

* feat: add document preferences reset dialog (documenso#3039)

* feat: add branding preferences reset dialog (documenso#3032)

* v2.16.0

* fix(preferences): include missing fields in form defaults

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Abdelrahman Abdelhamed <[email protected]>
Co-authored-by: Nandini Dhanrale <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Martin Glaser <[email protected]>
Co-authored-by: Grégory Chevalier <[email protected]>
Co-authored-by: Kendry Grullon <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Tanushree Ahir <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Cursor <[email protected]>
Xusifob added a commit to instamedsolutions/documenso that referenced this pull request Nov 23, 2026
* fix(ui): direct signing templates window layout (documenso#2909)

* fix(i18n): mark Bio string for translation (documenso#2910)

* fix: add email reporting (documenso#2918)

* chore: extract translations (documenso#2919)

* fix: add org insight document complete stat (documenso#2920)

* chore: add translations (documenso#2922)

* fix: update org stats table ui (documenso#2924)

* docs(embedding): document iframe URL fragment options (documenso#2915)

* feat: add header metadata to emails (documenso#2927)

* fix: add email disable flag (documenso#2931)

* fix: add multi email transport system (documenso#2942)

* chore(i18n): fix typo in Polish translation (documenso#2948)

* docs: add registration form screenshot to create account page (documenso#2908)

* fix: update link-only notification settings (documenso#2821)

* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* fix: improve team member removal ux (documenso#3001)

* fix: only send S3 checksums when required to support S3-compatible storage (documenso#2984)

* fix: render unicode characters in typed signatures (documenso#2728)

* fix: signing request email renders blank when organisation/team branding is enabled (documenso#2968)

* fix: remove old dialogs (documenso#3006)

* feat: add custom brand colours to emails (documenso#3005)

* feat: allow additional envelope duplicate settings (documenso#3008)

* fix: respect branding enabled for recipient routes (documenso#3009)

* chore: extract translations (documenso#2987)

* fix: correctly use default distribute envelope tab (documenso#3010)

* fix: set send status on resend (documenso#3011)

* feat: add API endpoint to reject documents on behalf of recipients (documenso#3007)

Programmatically record an external rejection on behalf of a recipient
who declined outside the platform. Flags the rejection as external in
the audit log, optionally attributes it to a specific team member via
actAsEmail, and enforces team membership and document visibility.

* feat: cap automated reminders before resend (documenso#3016)

Stop sending automated reminders after a configurable threshold
(default 5) and reset the count on manual resend.

* fix: show warning on overlapping fields (documenso#3017)

* chore: add translations (documenso#3012)

* chore(i18n): update Polish translation (documenso#3020)

* fix: migrate emails to jobs (documenso#3024)

* chore: general repo maintenance and docs cleanup (documenso#3030)

Refresh README/docs for the current stack, add a security policy,
note the external-PR pause, and remove dead config and workflows.

* feat: add API endpoints for downloading certificate and audit log PDFs (documenso#3025)

Add V2 API routes to download an envelope's certificate and audit log
separately, and align the internal cert/audit log downloads to use
envelopeId.

Enforces document visibility via getEnvelopeWhereInput and loads field
signatures so certificates render correctly.

* fix: resolve permission issues (documenso#3029)

* chore: add tests for cert and audit log download via api (documenso#3043)

* v2.14.0

* fix: auto select field on drop (documenso#3028)

* feat: add field multiselect (documenso#3031)

* fix: invite email placeholder (documenso#3045)

- **fix: interpolate inviterEmail in invite email mailto link**
- **fix: add alt attributes to email template images**

* fix: tighten permission and validation checks (documenso#3046)

* fix: scope organisation group deletion (documenso#3047)

* fix: add missing teams branding guard (documenso#3049)

* fix(email): render Preview inside Body across all email templates (documenso#3004)

* fix: add additional team group permission checks (documenso#3052)

* fix: french translation for confirmation message (documenso#3050)

* feat: add granular signin disable flags and OIDC auto-redirect (documenso#2857)

* fix: webhook payload contains stale deletedAt on document cancellation (documenso#2980)

* fix: add sticky form update button (documenso#3056)

* chore: extract translations (documenso#3013)

* chore: upgrade libpdf (documenso#3058)

* fix: remove presigned branding upload (documenso#3053)

* fix: block invisible & control characters and URLs in names (documenso#2978)

* fix: admin organisation limits and usage UI (documenso#3014)

* chore: upgrade deps (documenso#3065)

* Add "Apply Your License Key" self-hosting guide (documenso#3077)

Adds a dedicated self-hosting page documenting how to apply an
Enterprise license key, and cross-links it from the related docs.

New page: self-hosting/configuration/license.mdx — "Apply Your License
Key"
Set NEXT_PRIVATE_DOCUMENSO_LICENSE_KEY (Docker Compose / docker run /
.env tabs)

* feat: enable real-time validation for email and password fields (documenso#2204)

## Description

This MR improves the real-time validation experience on the signup page.
Currently, both the email and password fields validate only on blur,
causing users to continue seeing error messages even after correcting
their input until they click outside the field.

This update switches the React Hook Form configuration from mode:
'onBlur' to mode: 'onChange', ensuring validations update immediately as
the user types.
This results in a smoother and less confusing signup experience.

## Related Issue

Fixes documenso#2200

## Changes Made

- Updated React Hook Form configuration in the signup form from:
- mode: 'onBlur' ➜ mode: 'onChange'
- Ensures real-time validation for email and password fields
- No schema or logic changes — only validation trigger updated


## Testing Performed

- Manually tested the signup page for:
- Real-time password rule updates
- Real-time email validation feedback
- Error disappearance immediately after correcting input

## Checklist

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

## Additional Notes

This is a small UX-focused improvement; the validation schema remains
unchanged.

Co-authored-by: Catalin Pit <[email protected]>

* docs: update rate limit doc for organisation limit for self hosters (documenso#3089)

* v2.15.0

* chore: extract translations (documenso#3060)

* fix: replace tailwind class typos

* fix: improve editor autosave (documenso#3057)

* fix(ui): improve destructive button contrast in dark mode (documenso#3071)

* fix: missing noreply email for resend (documenso#3094)

* chore: deps upgrade 2026-07-14 (documenso#3095)

* feat: redesign api tokens settings page (documenso#3076)

* fix: react hydration errors (documenso#3099)

Move PostHog init out of the React tree so the client tree matches
the server render (mismatched useIds could abort hydration, leaving
dead event handlers). Also expose the CSP nonce so Radix scroll-lock
styles aren't blocked.

* fix: render error messages for invalid templates (documenso#3088)

Currently direct templates can be created without the required
signatures fields for signers.

This means that the document can be fully signed by everyone but will
ultimately fail the sealing step which leaves the document in an
unrecoverable state.

* feat: add document preferences reset dialog (documenso#3039)

* feat: add branding preferences reset dialog (documenso#3032)

* v2.16.0

* fix: increase global API rate limits to 1000/min (documenso#3081)

* chore: deprecate endpoints (documenso#3022)

* fix: update stripe team member billing (documenso#2991)

* feat: rework command search (documenso#3109)

* fix: sort CC recipients last (documenso#2930)

* feat: add copy button for license key in admin panel (documenso#3123)

## Description

Adds a copy button next to the show/hide toggle for the license key in
the admin panel license card (Admin Panel → Stats).

- Ghost button matching the existing eye-toggle styling (`h-6 w-6`,
`CopyIcon`)
- Uses the standard `useCopyToClipboard` + toast pattern (same as
`template-direct-link-badge.tsx`)
- Copies the key regardless of masked/visible state

New translation strings will be picked up by the next `chore: extract
translations` run.

## Before / After

![Before and after: copy button added next to the license key show/hide
toggle](https://artifacts.duncan.land/documenso-pr3123-license-copy)

> Screenshots taken against a locally mocked ACTIVE license (the mock is
not part of this PR).

## Testing

- `npx tsc --noEmit -p apps/remix` clean
- `biome check` clean
- Smoke-tested in browser: clicking the button fires the "Copied to
clipboard" toast (visible in the screenshot above)

* feat: rejected and expired recipient filters (documenso#2889)

* docs(webhooks): correct retry policy, timeout and payload reference (documenso#3132)

## Description

Corrects the webhooks documentation, which described delivery behavior
that does not exist in the implementation.

## Changes Made

- Replaced the fabricated retry schedule (5 attempts / immediate-to-2h
backoff) with the real provider-dependent behavior: retries belong to
the job provider (`NEXT_PRIVATE_JOBS_PROVIDER`) — local (default) 4
total attempts back-to-back, BullMQ 3 attempts with exponential backoff
from 1s, Inngest 5 attempts with platform backoff.
- Fixed the webhook timeout from 30 seconds to 10 seconds
(`WEBHOOK_TIMEOUT_MS = 10_000`, hard abort).
- Clarified failure semantics: non-2xx fails, 3xx redirects are not
followed (`redirect: 'manual'`), network/SSRF-blocked calls record
response code 0; failed deliveries mark only the `WebhookCall` record —
the webhook itself is never auto-disabled.
- Corrected URL requirements: `http://` is accepted; documented the SSRF
guard (private/loopback blocked,
`NEXT_PRIVATE_WEBHOOK_SSRF_BYPASS_HOSTS` bypass for self-hosters).
- Added `envelopeId` to both field tables and all payload/recipient JSON
examples; framed numeric `id` as the legacy v1 identifier.
- Removed a documented `documentMeta` field that exists in neither the
Zod schema nor Prisma; fixed timezone/dateFormat examples to the
hardcoded `Etc/UTC` / `yyyy-MM-dd hh:mm a` values.
- Added missing `REJECTED`/`CANCELLED` statuses and
`TEMPLATE_DIRECT_LINK` source; fixed `templateId` to `null` on
TEMPLATE_* examples; documented the previously missing
`RECIPIENT_EXPIRED` event across setup, events, and verification pages.

## Testing Performed

Docs-only change. Every claim verified against the implementation
(`execute-webhook-call.ts`, job clients, `webhook-payload.ts`,
`assert-webhook-url.ts`, webhook-router schema).

* feat: bulk download documents (documenso#2711)

* feat: replace document status tabs with filter pills (documenso#3145)

Swaps the tab row and dropdowns for faceted filter pills (status,
sender, period) with a shared reset, and moves URL param handling
to nuqs.

<img width="2198" height="1674" alt="image"
src="https://github.com/user-attachments/assets/6996431c-09c8-45c3-bc30-f0a1e503c941"
/>

* fix: add logging for errors on sign or complete (documenso#3149)

* fix: add more logging for errors on sign or complete (documenso#3151)

* feat: unify settings (documenso#3128)

* fix: handle completion when already signed (documenso#3159)

Previously attempting to complete a document which is already completed
you'd get a generic error toast. Now when completing a document that you
have already completed you are redirected to the completed page.

Handles cases where two mutations managed to fire racing eachother.

* fix: improve unified settings (documenso#3160)

* fix: restore overriden translations (documenso#3161)

* chore: extract translations (documenso#3163)

* feat(remix): support serving app under a sub-path via NEXT_PUBLIC_BASE_PATH (documenso#2824)

* feat: show feature gated setting pages (documenso#3167)

* chore: update Polish translations (documenso#3210)

* fix: docker healtcheck (documenso#3176)

* fix: use documenso fork of skia-canvas for rendering (documenso#3214)

Use our fork of `skia-canvas` for rendering which handles
encoding characters correctly with the caveat font and other
similar fonts that can group glyphs like ligatures.

This resolves issues with pdf text extraction where characters
were unable to be extracted due to lacking any data within the cmaps.

* feat: migrate to react 19 (documenso#3107)

* chore: remove planning skills (documenso#3177)

* chore: deps 2026-08-17 (documenso#3225)

* chore: add github action timeouts (documenso#3228)

* fix: surface actionable errors when completing documents (documenso#3229)

* feat(ui): redesign recipient field hover card (documenso#3070)

Redesigns the popover shown when hovering a recipient field avatar in
the envelope view.

- Field-first hierarchy: header shows field-type icon + "{Type} field"
with inline status (Signed/Pending/Read Only) as a colored dot + label
- Recipient (name/email) moved to a recessed footer well as secondary
context
- Hide-field action moved from floating over the text to a ghost icon
button in the footer well
- Added a `FieldType` → icon map mirroring `field-selector.tsx`

## Screenshots

| Before | After |
| --- | --- |
| <img
src="https://raw.githubusercontent.com/ephraimduncan/documenso/assets-pr-3070-hover-card/.github/assets/hover-before.png"
width="320" alt="Previous hover tooltip: centered badge, title and
recipient text" /> | <img
src="https://raw.githubusercontent.com/ephraimduncan/documenso/assets-pr-3070-hover-card/.github/assets/hover-after.png"
width="320" alt="New hover card: field-first header with status,
recipient footer well" /> |

* docs(api): document rate limit headers and 429 variants (documenso#3133)

## Description

The rate limits page claimed "No rate limit headers are currently
provided" and advised a fixed 60-second wait. The middleware has been
setting standard headers on every API response.

## Changes Made

- Documented `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and
`X-RateLimit-Reset` (Unix epoch seconds) on every `/api/v1`, `/api/v2`,
and `/api/v2-beta` response, and `Retry-After` (seconds, min 1) on 429s.
- Explained that windows are fixed epoch-aligned 1-minute buckets, so
the real wait is 1–60s — clients should honor `Retry-After` instead of
sleeping a fixed 60s.
- Showed both 429 body shapes: the global per-IP limiter's `{ "error":
... }` vs AppError-based `code`/`message`/`statusCode`.
- Covered the three distinct 429 sources: global per-IP limit,
organisation windowed limits, and monthly envelope quota (which sends no
rate-limit headers).
- Added `/api/v2-beta/*` to the documented scope; left the
verified-correct 1000/min figure and plan-limits table untouched.

## Testing Performed

Docs-only change. Verified against `rate-limit-middleware.ts`,
`rate-limit.ts`, `check-organisation-rate-limits.ts`,
`check-monthly-quota.ts`, and the remix server router.

* docs(trpc): add openapi descriptions to envelope cancel, delete and update routes (documenso#3134)

## Description

The envelope cancel, delete, and update routes rendered without
descriptions in the generated OpenAPI reference.

## Changes Made

- Added route-level OpenAPI `description` to `cancel-envelope.types.ts`,
`delete-envelope.types.ts`, and `update-envelope.types.ts`.
- Added field-level `.describe()` calls on request schemas, matching the
style of sibling envelope-router schemas (e.g.
`get-envelopes-by-ids.types.ts`, `distribute-envelope.types.ts`).

## Testing Performed

`npx tsc --noEmit -p packages/trpc` passes with no errors. Metadata-only
change — no runtime behavior affected.

* docs(api): document cancel endpoint and fix get-many body shape (documenso#3135)

## Description

Documents API page: adds the missing Cancel Document section and fixes a
fabricated request body on get-many that would fail schema validation
for anyone copying the docs.

## Changes Made

- Added a `## Cancel Document` section: `POST /envelope/cancel` with `{
envelopeId, reason? }`, PENDING-only (400 otherwise), not idempotent,
two-stage access (404 if not visible, 401 without owner/MANAGER+), fires
`DOCUMENT_CANCELLED` webhook, emails only SENT/OPENED non-CC
non-rejected recipients.
- Replaced the fabricated `envelopeIds: [...]` get-many body with the
real nested selector: `{ "ids": { "type": "envelopeId" | "documentId" |
"templateId", "ids": [...] } }` (string[] for envelopeId, number[]
otherwise, 1–20 IDs).
- Added the missing `### Response` for get-many (`{ "data": [...] }`)
and documented silent filtering of inaccessible IDs (no 404).
- Added `CANCELLED` to the status table, mermaid state diagram,
transitions prose, and filter values.
- Removed the nonexistent `source: "API"` value (real enum: `DOCUMENT |
TEMPLATE | TEMPLATE_DIRECT_LINK`).
- Fixed fabricated `pagination` wrappers to the real flat shape `{ data,
count, currentPage, perPage, totalPages }`; fixed Field `id` type and
mismatched code fences.
- Migration guide: warned that get-many's body shape changed from
`documentIds: number[]` — the breaking part of that migration.

## Testing Performed

Docs-only change (plus the migration guide). Verified against the
envelope-router types, `cancel-document.ts`, the cancel e2e spec, and
`schema.prisma`.

* v2.17.0

* fix: add type button to multiselect remove and clear buttons (documenso#3256)

* fix(i18n): add Plural support for bulk download limit alert (documenso#3209) (documenso#3260)

* fix(i18n): add plural forms for command menu results and item counts (documenso#3207) (documenso#3262)

* fix(emails): remove trailing period from document pending email subject (documenso#3213)

* feat: allow admin recipient search (documenso#3277)

* feat: last used column for api tokens (documenso#3230)

* refactor(trpc): use ts-pattern for envelope document-data resolution (documenso#3222)

* chore: extract translations (documenso#3171)

* fix: allow zooming and dragging uploaded signatures (documenso#3173)

* fix: render adjacent email template variables correctly (documenso#3153)

* feat: optimise posthog usage and add error tracking (documenso#3301)

Disable autocapture and person profiles for anonymous users, and
redact signing tokens from captured URLs.

Manually wire exception capture into the signing, editor and embed
flows with recipient/envelope context for debugging recipient-reported
issues.

Track activation events (webhooks, api tokens, direct links, embed
sessions) server-side with org attribution, and drop client events
already tracked in-app.

* chore: add provider request template (documenso#3311)

* chore: update Polish translation (documenso#3316)

* fix: prevent dialogs from closing on blur (documenso#3314)

* fix: enlarge envelope field resize handle hit area (documenso#3315)

* docs: clarify team API token and certificate behavior (documenso#3317)

* chore: upgrade libpdf (documenso#3323)

* fix: add patches back to dockerfile (documenso#3324)

* fix: default unset signing transport to local (documenso#3309)

`/api/health` and `/api/certificate-status` reported the cert as
available when `NEXT_PRIVATE_SIGNING_TRANSPORT` was unset, even though
sealing defaults to the local P12 and fails if it is missing,
unreadable, or expired.

* fix: increase signature placeholder size when a timestamp authority is configured (documenso#3328)

* chore: upgrade to node 24 lts and clean up docker image (documenso#3332)

Upgrade to Node 24 LTS, using the alpine 3.23 tag to handle issues with
streaming zip files on 24.16 which hangs npm ci.

Pin npm to 11.19.1 for min-release-age-exclude support.

Slim the runner image by dropping dev deps, the react-email CLI, and
esbuild,
none of which run in production.

Install turbo from the lockfile version instead of a hardcoded one.

* fix: temporary fix for British to US spelling (documenso#3329)

* fix: block SSRF via IPv4-mapped IPv6 webhook URLs (documenso#2901) (documenso#3166)

* fix: improve invalid bulk template upload error handling (documenso#3326)

* fix: use react router middleware (documenso#3351)

* chore(ui): remove unused text fitting component (documenso#3337)

* fix: resolve build errors (documenso#3352)

* chore(auth): remove commented account creation code (documenso#3344)

* v2.18.0

* fix: pass csp nonce to @hello-pangea/dnd style elements (documenso#3354)

* fix(i18n): add missing plural in bulk template upload error handling (documenso#3357)

* docs: add externalId to send-for-signature workflow example (documenso#3325)

* fix: improve action auth flow for passwordless users (documenso#3358)

Selecting password auth failed with a generic "Unauthorized" for users
who signed up via OAuth or passkey, with no way to set one.

Detect the missing password and email the existing reset link from the
signing dialog and security settings. Require a 2FA code and rate limit
update-password.

* fix: use nuqs prevent infinite re-render loop (documenso#2868)

* fix: preserve base path in email asset URLs (documenso#3327)

* chore: upgrade deps (documenso#3367)

* feat: add document naming options when using templates (documenso#3086)

* refactor(server): simplify request context middleware (documenso#3341)

* chore(lib): remove unused timezone labels (documenso#3342)

* chore(prisma): remove unregistered middleware (documenso#3345)

* refactor(lib): reuse the http url validator (documenso#3346)

* fix(trpc): v2 field position updates silently dropped; rewrite fields API docs (documenso#3136)

* chore(ui): remove unused application skeletons (documenso#3340)

* chore(embedding): remove unregistered multi-sign mutation (documenso#3339)

* refactor(openpage): simplify the cors policy (documenso#3338)

* feat: allow signing reason override (documenso#2848)

* feat: replace template view tabs with a filter pill (documenso#3148)

* feat(ui): redesign recipient avatar stack hover popover (documenso#3072)

* feat: add inbox filters (documenso#3372)

* Respect hidden sender details in document invite emails (documenso#3061)

* fix: bulk download dialog overflow on long titles (documenso#3380)

* feat: add team document analytics dashboard (documenso#3355)

* fix: add date-fns to packages/ui (documenso#3388)

* fix: accept owner-password protected pdfs (documenso#3396)

Strip encryption from PDFs that open with an empty user password via
libpdf's ignorePermissions, still rejecting user-password PDFs.

Upgrade @libpdf/core to 0.5.1, which also keeps overlapping and layered
text intact during text extraction.

Resolves documenso#3303

* v2.19.0

* fix: embed signing completion and reload states (documenso#3409)

Send completed/rejected events when reopening an actioned v1 embed,
show the completed page after signing in v2, and tidy the completed
page.

* fix: use legacy pdfjs build for older devices (documenso#3410)

* feat: add recipient grouping (documenso#3319)

* fix(i18n): add missing "zu" in German invite/reminder strings (documenso#3331)

* fix: show validation errors in branding preferences form (documenso#3381)

* fix(ui): discard cancelled signature pad dialog drafts (documenso#3408)

\

* fix: prevent recipients who already signed from rejecting documents (documenso#3411)

* docs: add data-readonly and correct field color example (documenso#3413)

* fix(i18n): add support for plural in app-command-menu.tsx (documenso#3364)

* feat(admin): show team count in organisation stats (documenso#3405)

* fix: send notification on limits change (documenso#3414)

* fix: use the database url when the direct url is not set (documenso#3404)

* feat(web): add configurable legal, data protection, and imprint links (documenso#3114) (documenso#3131)

* fix: update legal links on recipient routes (documenso#3419)

* feat: allow admins to force remove non-completed recipients (documenso#3420)

<img width="1810" height="1408" alt="image"
src="https://github.com/user-attachments/assets/1375ebf6-9aa5-4f02-9b21-8913f71d6634"
/>

* fix(i18n): mark for translation admin stats table name (documenso#3421)

* feat: add sender disabled view to signing link (documenso#3423)

* fix: support cross-site authentication in embeds (documenso#3429)

Account, SSO and CSC authentication run in a popup and hand off
to the cross-site iframe via encrypted nonce-keyed rows.

Embed sessions are signing-only and rejected elsewhere unless
a route opts in.

Also adds origin-based CSRF for certain routes.

* chore: upgrade libpdf and critical deps (documenso#3430)

* v2.20.0

* fix: allow v1 multisign completion with empty optional fields (documenso#3417)

* fix: remove minio from development compose (documenso#3441)

* feat: disable accounts on report and show new account warning (documenso#3446)

* fix: use placeholder for stored sso client secret (documenso#3416)

* fix: reset field metadata when changing field type (documenso#3431)

Use the new field type's default metadata when no metadata is supplied,
while preserving existing metadata when the field type stays the same.

* fix(i18n): translate pending signing email subject (documenso#3438)

* chore: extract translations (documenso#3306)

* fix: keep previous table data during pagination (documenso#3073)

* chore: upgrade libpdf (documenso#3448)

* v2.21.0

* feat: persist signatures for authless embed signers (documenso#3465)

Embedders can pass `clientUserId` on `/embed/sign` to have the signer's
signature stored (hashed key, platform-gated, rate limited, capped per
recipient) and prefilled on their next embed.

* chore: update signing reminder docs (documenso#3469)

* chore: update AGENTS.md (documenso#3471)

* fix: don't remove passkeys on user disable (documenso#3470)

* v2.21.1

* chore: upgrade playwright and npm audit (documenso#3506)

* fix: prevent implicit form submission in editor field settings (documenso#3526)

* chore: docs/update enterprise edition (documenso#3472)

updated enterprise features section and added a comparison table.

both section has a hyperlink for easy sharing with leads

screenshot :
<img width="411" height="924" alt="image"
src="https://github.com/user-attachments/assets/aefbb84d-a688-41d3-966b-73bc2a86a2ed"
/>

---------

Co-authored-by: Timur Ercan <[email protected]>

* chore: update document visibility tooltip (documenso#3529)

updated tooltip and added description to the document visibility
section.
included a hyperlink in tooltip to
https://docs.documenso.com/docs/users/documents/advanced/document-visibility

default state:
<img width="515" height="337" alt="image"
src="https://github.com/user-attachments/assets/eb4218a9-86e5-42ed-a09e-d82d35804d0b"
/>

---------

Co-authored-by: Timur Ercan <[email protected]>

* fix: clarify sender details setting (documenso#3499)

* fix: disable signing when undo clears the signature pad (documenso#3518)

* fix: improve text field signing ux (documenso#3504)

* fix: ignore presses that start outside the signature pad (documenso#3522)

* feat: add handwriting font option for initials fields (documenso#3474)

* chore: skip the triage label for roadmap app issues (documenso#3573)

## Description

The Label Issues workflow adds `status: triage` to each new issue. This
includes the issues that the roadmap App (`documenso-roadmap-sync`)
opens for the public roadmap. Triage is only for issues that persons
open, thus the team removed the label by hand from each roadmap issue.

With this change, the workflow skips issues that the App opens or
reopens. Issues that persons open still get `status: triage`.

* chore: remove redundant waitForTimeout calls (documenso#3536)

* fix: open the 2fa code step when email is the only method (documenso#3528)

* fix: format prefilled dates with the document date format (documenso#3527)

* fix: use branding primary color for field loading spinner (documenso#3412)

* feat: add content fields (documenso#3395)

* fix: send test events only to the selected webhook (documenso#3542)

* chore: parallelise tests (documenso#3574)

* fix: correctly allow enterprise to bypass limits (documenso#3590)

* feat: add sort option for folders (documenso#3473)

* fix(i18n): add missing plural to analytics (documenso#3424)

* fix: open sign field dialogs on pointerclick so inputs autofocus (documenso#3583)

* fix: allow hiding the download button in embed signing (documenso#3589)

* fix: normalise user and recipient emails to lowercase (documenso#3591)

* fix: respect document timezone in read-only date fields (documenso#3582)

* fix: keep template field labels when prefill omits them (documenso#3585)

* chore: upgrade deps (documenso#3602)

* v2.22.0

* ci: supprime les workflows upstream inutilisables et lance la CI sur les PR vers staging

Retire les workflows hérités de documenso/documenso qui dépendent de
secrets ou runners absents du fork (Crowdin, DockerHub, GH_PAT, runner
warp) ou servent à la gestion communautaire des issues/PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(i18n): ajoute les textes de la pièce jointe et leur traduction française

Ajout ciblé dans les catalogues (pas d'extraction complète pour ne pas
diverger des .po upstream). Remplace la PR automatique #5.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Konrad <[email protected]>
Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Abdelrahman Abdelhamed <[email protected]>
Co-authored-by: Nandini Dhanrale <[email protected]>
Co-authored-by: Martin Glaser <[email protected]>
Co-authored-by: Grégory Chevalier <[email protected]>
Co-authored-by: Kendry Grullon <[email protected]>
Co-authored-by: Tanushree Ahir <[email protected]>
Co-authored-by: Christopher Ryan <[email protected]>
Co-authored-by: misinierijon4-debug <[email protected]>
Co-authored-by: Rodrigo Flávio <[email protected]>
Co-authored-by: water <[email protected]>
Co-authored-by: Arunendra Tripathi <[email protected]>
Co-authored-by: Nathan Delhaye <[email protected]>
Co-authored-by: Durgesh Shekhawat <[email protected]>
Co-authored-by: Zonaib Bokhari <[email protected]>
Co-authored-by: Raiyan Zaman <[email protected]>
Co-authored-by: Ayush Dubey <[email protected]>
Co-authored-by: Aykut Güney <[email protected]>
Co-authored-by: Timur Ercan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
Preview – stg-docs — 614bc234 Deployed Jun 25, 2026 by vercel[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.

3 participants