[PR #2025] [MERGED] feat: add envelopes #2000

Closed
opened 2026-02-26 20:32:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2025
Author: @dguyen
Created: 9/11/2025
Status: Merged
Merged: 10/14/2025
Merged by: @Mythie

Base: mainHead: feat/add-initial-envelopes


📝 Commits (10+)

  • eec2307 fix: migrate template metadata
  • bf89bc7 feat: migrate templates and documents to envelope model
  • 0da8e7d feat: add envelope editor
  • 6f70548 fix: multi email bug
  • 5057243 fix: cleanup
  • 3be0d84 fix: additional backwards compat
  • bddaa5e fix: reorder migrations
  • 0eef4cd fix: additional backwards compat
  • 304c519 fix: additional backwards compat
  • f48813b fix: test

📊 Changes

447 files changed (+33293 additions, -9448 deletions)

View changed files

📝 apps/openpage-api/lib/growth/get-monthly-completed-document.ts (+6 -5)
📝 apps/remix/app/components/dialogs/admin-document-delete-dialog.tsx (+3 -4)
📝 apps/remix/app/components/dialogs/document-duplicate-dialog.tsx (+2 -2)
📝 apps/remix/app/components/dialogs/document-move-to-folder-dialog.tsx (+5 -3)
📝 apps/remix/app/components/dialogs/document-resend-dialog.tsx (+7 -3)
apps/remix/app/components/dialogs/envelope-distribute-dialog.tsx (+449 -0)
apps/remix/app/components/dialogs/envelope-duplicate-dialog.tsx (+113 -0)
apps/remix/app/components/dialogs/envelope-item-delete-dialog.tsx (+134 -0)
apps/remix/app/components/dialogs/envelope-redistribute-dialog.tsx (+187 -0)
📝 apps/remix/app/components/dialogs/public-profile-template-manage-dialog.tsx (+3 -3)
apps/remix/app/components/dialogs/sign-field-dropdown-dialog.tsx (+117 -0)
apps/remix/app/components/dialogs/sign-field-email-dialog.tsx (+91 -0)
apps/remix/app/components/dialogs/sign-field-initials-dialog.tsx (+97 -0)
apps/remix/app/components/dialogs/sign-field-name-dialog.tsx (+93 -0)
apps/remix/app/components/dialogs/sign-field-number-dialog.tsx (+144 -0)
apps/remix/app/components/dialogs/sign-field-signature-dialog.tsx (+76 -0)
apps/remix/app/components/dialogs/sign-field-text-dialog.tsx (+120 -0)
📝 apps/remix/app/components/dialogs/template-create-dialog.tsx (+4 -2)
apps/remix/app/components/dialogs/template-direct-link-dialog-wrapper.tsx (+0 -46)
📝 apps/remix/app/components/dialogs/template-direct-link-dialog.tsx (+314 -300)

...and 80 more files

📄 Description

Description

This PR is handles the changes required to support envelopes. The new envelope editor/signing page will be hidden during release.

The core changes here is to migrate the documents and templates model to a centralized envelopes model.

Even though Documents and Templates are removed, from the user perspective they will still exist as we remap envelopes to documents and templates.

Migration changes summary:

  • Remove documents
  • Remove templates
  • Add Envelopes model

Main change summary:

  • Add Envelopes model
  • Add Envelopes signing page
  • Add Envelopes editor page

API Breaking changes

Due to the nature of envelopes, there will unfortunately be minor breaking changes for the API V1 and API V2.

The following data points will be dropped from API V1 response schemas.

  • documentDataId from Document objects
  • templateDocumentDataId from Template objects

The following data points will be dropped from API V2 response schemas.

  • documentDataId from Document object
  • templateDocumentDataId from Template object
  • documentId from the DocumentMeta object
  • password from the DocumentMeta object

Pending things to do

  • Full system tests, migration tests, etc

Testing Performed

  • TBD

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/2025 **Author:** [@dguyen](https://github.com/dguyen) **Created:** 9/11/2025 **Status:** ✅ Merged **Merged:** 10/14/2025 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/add-initial-envelopes` --- ### 📝 Commits (10+) - [`eec2307`](https://github.com/documenso/documenso/commit/eec23076340837d9a0b2d097fe35a9de72219922) fix: migrate template metadata - [`bf89bc7`](https://github.com/documenso/documenso/commit/bf89bc781bee30a7e0422c5d220992f6cb7763a5) feat: migrate templates and documents to envelope model - [`0da8e7d`](https://github.com/documenso/documenso/commit/0da8e7dbc66ff92bf40248db14d41cddc7c45260) feat: add envelope editor - [`6f70548`](https://github.com/documenso/documenso/commit/6f70548bb5a305a059a726c2fc40329595b610ae) fix: multi email bug - [`5057243`](https://github.com/documenso/documenso/commit/50572435ade32b73770ca0a827d1b1767f60a9b1) fix: cleanup - [`3be0d84`](https://github.com/documenso/documenso/commit/3be0d8478695a16ffa8b69193b0b2cbb6abe7777) fix: additional backwards compat - [`bddaa5e`](https://github.com/documenso/documenso/commit/bddaa5ec661942d735bb71b22de554982be547a7) fix: reorder migrations - [`0eef4cd`](https://github.com/documenso/documenso/commit/0eef4cd7e63c67ac3424f03e6caee83be65184ac) fix: additional backwards compat - [`304c519`](https://github.com/documenso/documenso/commit/304c519c30cd48ea6cfaf8808f8b09270a50bfd7) fix: additional backwards compat - [`f48813b`](https://github.com/documenso/documenso/commit/f48813bb3ca672ee0077b81a6810d8bd50202d9f) fix: test ### 📊 Changes **447 files changed** (+33293 additions, -9448 deletions) <details> <summary>View changed files</summary> 📝 `apps/openpage-api/lib/growth/get-monthly-completed-document.ts` (+6 -5) 📝 `apps/remix/app/components/dialogs/admin-document-delete-dialog.tsx` (+3 -4) 📝 `apps/remix/app/components/dialogs/document-duplicate-dialog.tsx` (+2 -2) 📝 `apps/remix/app/components/dialogs/document-move-to-folder-dialog.tsx` (+5 -3) 📝 `apps/remix/app/components/dialogs/document-resend-dialog.tsx` (+7 -3) ➕ `apps/remix/app/components/dialogs/envelope-distribute-dialog.tsx` (+449 -0) ➕ `apps/remix/app/components/dialogs/envelope-duplicate-dialog.tsx` (+113 -0) ➕ `apps/remix/app/components/dialogs/envelope-item-delete-dialog.tsx` (+134 -0) ➕ `apps/remix/app/components/dialogs/envelope-redistribute-dialog.tsx` (+187 -0) 📝 `apps/remix/app/components/dialogs/public-profile-template-manage-dialog.tsx` (+3 -3) ➕ `apps/remix/app/components/dialogs/sign-field-dropdown-dialog.tsx` (+117 -0) ➕ `apps/remix/app/components/dialogs/sign-field-email-dialog.tsx` (+91 -0) ➕ `apps/remix/app/components/dialogs/sign-field-initials-dialog.tsx` (+97 -0) ➕ `apps/remix/app/components/dialogs/sign-field-name-dialog.tsx` (+93 -0) ➕ `apps/remix/app/components/dialogs/sign-field-number-dialog.tsx` (+144 -0) ➕ `apps/remix/app/components/dialogs/sign-field-signature-dialog.tsx` (+76 -0) ➕ `apps/remix/app/components/dialogs/sign-field-text-dialog.tsx` (+120 -0) 📝 `apps/remix/app/components/dialogs/template-create-dialog.tsx` (+4 -2) ➖ `apps/remix/app/components/dialogs/template-direct-link-dialog-wrapper.tsx` (+0 -46) 📝 `apps/remix/app/components/dialogs/template-direct-link-dialog.tsx` (+314 -300) _...and 80 more files_ </details> ### 📄 Description ## Description This PR is handles the changes required to support envelopes. The new envelope editor/signing page will be hidden during release. The core changes here is to migrate the documents and templates model to a centralized envelopes model. Even though Documents and Templates are removed, from the user perspective they will still exist as we remap envelopes to documents and templates. Migration changes summary: - Remove documents - Remove templates - Add Envelopes model Main change summary: - Add Envelopes model - Add Envelopes signing page - Add Envelopes editor page ## API Breaking changes Due to the nature of envelopes, there will unfortunately be minor breaking changes for the API V1 and API V2. The following data points will be dropped from **API V1** response schemas. - documentDataId from Document objects - templateDocumentDataId from Template objects The following data points will be dropped from **API V2** response schemas. - documentDataId from Document object - templateDocumentDataId from Template object - documentId from the DocumentMeta object - password from the DocumentMeta object ## Pending things to do - Full system tests, migration tests, etc ## Testing Performed - TBD --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:32:00 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#2000
No description provided.