[PR #1572] [MERGED] feat: add template and field endpoints #1725

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1572
Author: @dguyen
Created: 1/7/2025
Status: Merged
Merged: 1/11/2025
Merged by: @dguyen

Base: mainHead: feat/add-more-template-endpoints


📝 Commits (8)

  • 36080bc feat: add more template endpoints
  • 0faaee4 fix: update schemas
  • c2928d9 fix: refactor api metadata
  • fb647fc fix: pass team ID in api header
  • 2e4c30b feat: add field endpoints
  • 32aa452 feat: update open api request schemas
  • 5f24cc6 fix: refactor
  • 7cdc298 Merge branch 'main' into feat/add-more-template-endpoints

📊 Changes

92 files changed (+3918 additions, -1394 deletions)

View changed files

📝 apps/web/src/app/(dashboard)/documents/[id]/document-page-view-button.tsx (+1 -2)
📝 apps/web/src/app/(dashboard)/documents/[id]/document-page-view-dropdown.tsx (+0 -1)
📝 apps/web/src/app/(dashboard)/documents/[id]/document-page-view.tsx (+1 -0)
📝 apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx (+10 -34)
📝 apps/web/src/app/(dashboard)/documents/[id]/logs/download-audit-log-button.tsx (+2 -6)
📝 apps/web/src/app/(dashboard)/documents/[id]/logs/download-certificate-button.tsx (+1 -1)
📝 apps/web/src/app/(dashboard)/documents/_action-items/resend-document.tsx (+1 -1)
📝 apps/web/src/app/(dashboard)/documents/data-table-action-button.tsx (+0 -1)
📝 apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx (+0 -1)
📝 apps/web/src/app/(dashboard)/documents/delete-document-dialog.tsx (+1 -2)
📝 apps/web/src/app/(dashboard)/documents/duplicate-document-dialog.tsx (+1 -2)
📝 apps/web/src/app/(dashboard)/documents/upload-document.tsx (+0 -1)
📝 apps/web/src/app/(dashboard)/settings/public-profile/public-profile-page-view.tsx (+0 -1)
📝 apps/web/src/app/(dashboard)/settings/public-profile/public-templates-data-table.tsx (+1 -6)
📝 apps/web/src/app/(dashboard)/templates/[id]/edit/edit-template.tsx (+11 -42)
📝 apps/web/src/app/(dashboard)/templates/[id]/template-page-view-documents-table.tsx (+0 -1)
📝 apps/web/src/app/(dashboard)/templates/[id]/template-page-view-recent-activity.tsx (+0 -2)
📝 apps/web/src/app/(dashboard)/templates/delete-template-dialog.tsx (+2 -7)
📝 apps/web/src/app/(dashboard)/templates/duplicate-template-dialog.tsx (+0 -2)
📝 apps/web/src/app/(dashboard)/templates/new-template-dialog.tsx (+1 -2)

...and 72 more files

📄 Description

Description

Add following endpoints:

  • Create recipient(s)
  • Update recipient(s)
  • Delete recipient
  • Create field(s)
  • Update field(s)
  • Delete field

Other changes:

  • Refactored RequestMetadata so it provides more information
  • Provide metadata context on all API requests
  • Remove explicit teamId TRPC requirement and use TRPC headers

Testing Performed

Todo


🔄 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/1572 **Author:** [@dguyen](https://github.com/dguyen) **Created:** 1/7/2025 **Status:** ✅ Merged **Merged:** 1/11/2025 **Merged by:** [@dguyen](https://github.com/dguyen) **Base:** `main` ← **Head:** `feat/add-more-template-endpoints` --- ### 📝 Commits (8) - [`36080bc`](https://github.com/documenso/documenso/commit/36080bc08d22a0223a3a236f3acb64228cb48c83) feat: add more template endpoints - [`0faaee4`](https://github.com/documenso/documenso/commit/0faaee46ef9e8fc38eb699cc24752fba37bb372d) fix: update schemas - [`c2928d9`](https://github.com/documenso/documenso/commit/c2928d9dc9a8edc312d2e61221c2cf3b70343aaf) fix: refactor api metadata - [`fb647fc`](https://github.com/documenso/documenso/commit/fb647fca3078b54f23ade85c4efa39bc9fc66261) fix: pass team ID in api header - [`2e4c30b`](https://github.com/documenso/documenso/commit/2e4c30b9325714ebf93310aeb7a1bd74661d6208) feat: add field endpoints - [`32aa452`](https://github.com/documenso/documenso/commit/32aa452ce81fa093d41265df163d5f9b530e4413) feat: update open api request schemas - [`5f24cc6`](https://github.com/documenso/documenso/commit/5f24cc6246d45529e3f58e35a1cfc8e4ddb06a38) fix: refactor - [`7cdc298`](https://github.com/documenso/documenso/commit/7cdc29864a63214fb5c1c5c0576f387ef8cccefe) Merge branch 'main' into feat/add-more-template-endpoints ### 📊 Changes **92 files changed** (+3918 additions, -1394 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/src/app/(dashboard)/documents/[id]/document-page-view-button.tsx` (+1 -2) 📝 `apps/web/src/app/(dashboard)/documents/[id]/document-page-view-dropdown.tsx` (+0 -1) 📝 `apps/web/src/app/(dashboard)/documents/[id]/document-page-view.tsx` (+1 -0) 📝 `apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx` (+10 -34) 📝 `apps/web/src/app/(dashboard)/documents/[id]/logs/download-audit-log-button.tsx` (+2 -6) 📝 `apps/web/src/app/(dashboard)/documents/[id]/logs/download-certificate-button.tsx` (+1 -1) 📝 `apps/web/src/app/(dashboard)/documents/_action-items/resend-document.tsx` (+1 -1) 📝 `apps/web/src/app/(dashboard)/documents/data-table-action-button.tsx` (+0 -1) 📝 `apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx` (+0 -1) 📝 `apps/web/src/app/(dashboard)/documents/delete-document-dialog.tsx` (+1 -2) 📝 `apps/web/src/app/(dashboard)/documents/duplicate-document-dialog.tsx` (+1 -2) 📝 `apps/web/src/app/(dashboard)/documents/upload-document.tsx` (+0 -1) 📝 `apps/web/src/app/(dashboard)/settings/public-profile/public-profile-page-view.tsx` (+0 -1) 📝 `apps/web/src/app/(dashboard)/settings/public-profile/public-templates-data-table.tsx` (+1 -6) 📝 `apps/web/src/app/(dashboard)/templates/[id]/edit/edit-template.tsx` (+11 -42) 📝 `apps/web/src/app/(dashboard)/templates/[id]/template-page-view-documents-table.tsx` (+0 -1) 📝 `apps/web/src/app/(dashboard)/templates/[id]/template-page-view-recent-activity.tsx` (+0 -2) 📝 `apps/web/src/app/(dashboard)/templates/delete-template-dialog.tsx` (+2 -7) 📝 `apps/web/src/app/(dashboard)/templates/duplicate-template-dialog.tsx` (+0 -2) 📝 `apps/web/src/app/(dashboard)/templates/new-template-dialog.tsx` (+1 -2) _...and 72 more files_ </details> ### 📄 Description ## Description Add following endpoints: - Create recipient(s) - Update recipient(s) - Delete recipient - Create field(s) - Update field(s) - Delete field Other changes: - Refactored `RequestMetadata` so it provides more information - Provide metadata context on all API requests - Remove explicit teamId TRPC requirement and use TRPC headers ## Testing Performed **Todo** --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:30:48 +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#1725
No description provided.