[PR #741] [MERGED] refactor: merge template recipient and fields back into default models #1152

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/741
Author: @ephraimduncan
Created: 12/8/2023
Status: Merged
Merged: 12/8/2023
Merged by: @ephraimduncan

Base: feat/document-templatesHead: refactor/combine-models


📝 Commits (1)

  • bc43458 refactor: merge template recipient and template fields back into default fields

📊 Changes

17 files changed (+131 additions, -104 deletions)

View changed files

📝 apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx (+0 -5)
📝 apps/web/src/app/(dashboard)/templates/[id]/edit-template.tsx (+3 -9)
📝 apps/web/src/components/forms/edit-template/add-template-placeholders.action.ts (+2 -2)
📝 packages/lib/server-only/admin/get-recipients-stats.ts (+4 -3)
📝 packages/lib/server-only/field/get-fields-for-template.ts (+1 -1)
📝 packages/lib/server-only/field/remove-signed-field-with-token.ts (+4 -0)
📝 packages/lib/server-only/field/set-fields-for-template.ts (+5 -6)
📝 packages/lib/server-only/field/sign-field-with-token.ts (+4 -0)
📝 packages/lib/server-only/recipient/get-recipients-for-template.ts (+1 -1)
📝 packages/lib/server-only/recipient/set-recipients-for-template.ts (+5 -5)
📝 packages/lib/server-only/template/create-document-from-template.ts (+5 -7)
📝 packages/lib/server-only/template/duplicate-template.ts (+9 -11)
📝 packages/lib/server-only/template/get-templates.ts (+1 -1)
packages/prisma/migrations/20231208090322_remove_template_specific_models/migration.sql (+54 -0)
📝 packages/prisma/schema.prisma (+26 -46)
📝 packages/ui/primitives/template-flow/add-template-fields.tsx (+4 -4)
📝 packages/ui/primitives/template-flow/add-template-placeholder-recipients.tsx (+3 -3)

📄 Description

…ult fields


🔄 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/741 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 12/8/2023 **Status:** ✅ Merged **Merged:** 12/8/2023 **Merged by:** [@ephraimduncan](https://github.com/ephraimduncan) **Base:** `feat/document-templates` ← **Head:** `refactor/combine-models` --- ### 📝 Commits (1) - [`bc43458`](https://github.com/documenso/documenso/commit/bc43458986af4095386c9e147a2826de60fb6032) refactor: merge template recipient and template fields back into default fields ### 📊 Changes **17 files changed** (+131 additions, -104 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx` (+0 -5) 📝 `apps/web/src/app/(dashboard)/templates/[id]/edit-template.tsx` (+3 -9) 📝 `apps/web/src/components/forms/edit-template/add-template-placeholders.action.ts` (+2 -2) 📝 `packages/lib/server-only/admin/get-recipients-stats.ts` (+4 -3) 📝 `packages/lib/server-only/field/get-fields-for-template.ts` (+1 -1) 📝 `packages/lib/server-only/field/remove-signed-field-with-token.ts` (+4 -0) 📝 `packages/lib/server-only/field/set-fields-for-template.ts` (+5 -6) 📝 `packages/lib/server-only/field/sign-field-with-token.ts` (+4 -0) 📝 `packages/lib/server-only/recipient/get-recipients-for-template.ts` (+1 -1) 📝 `packages/lib/server-only/recipient/set-recipients-for-template.ts` (+5 -5) 📝 `packages/lib/server-only/template/create-document-from-template.ts` (+5 -7) 📝 `packages/lib/server-only/template/duplicate-template.ts` (+9 -11) 📝 `packages/lib/server-only/template/get-templates.ts` (+1 -1) ➕ `packages/prisma/migrations/20231208090322_remove_template_specific_models/migration.sql` (+54 -0) 📝 `packages/prisma/schema.prisma` (+26 -46) 📝 `packages/ui/primitives/template-flow/add-template-fields.tsx` (+4 -4) 📝 `packages/ui/primitives/template-flow/add-template-placeholder-recipients.tsx` (+3 -3) </details> ### 📄 Description …ult fields --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:32:03 +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#1152
No description provided.