[PR #716] [MERGED] feat: add recipient roles #1134

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/716
Author: @thehanimo
Created: 12/3/2023
Status: Merged
Merged: 2/1/2024
Merged by: @dguyen

Base: mainHead: add-recipient-roles


📝 Commits (10+)

  • f4b1508 feat: add recipient roles
  • 81b12cb fix: update waiting logic and add roles to popover
  • f75e054 fix: change role to nativeEnum in schema
  • 37fb5d9 fix: disable fields for viewers and cc'ers
  • a545b05 fix: suppress email invite to cc'ers
  • 782c5ae fix: set status to signed by default for cc'ers
  • 094be3c fix: simplify completed document query
  • 4ea9360 fix: add mark as viewed for viewers
  • af8bbc8 refactor: lint code
  • b4b886e fix: change label/messages for approvers

📊 Changes

28 files changed (+473 additions, -163 deletions)

View changed files

📝 apps/marketing/content/blog/linear-gh.mdx (+1 -1)
📝 apps/marketing/src/app/(marketing)/singleplayer/client.tsx (+1 -0)
📝 apps/web/src/app/(dashboard)/documents/data-table-action-button.tsx (+29 -6)
📝 apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx (+29 -7)
📝 apps/web/src/app/(signing)/sign/[token]/complete/page.tsx (+5 -2)
📝 apps/web/src/app/(signing)/sign/[token]/form.tsx (+105 -65)
📝 apps/web/src/app/(signing)/sign/[token]/page.tsx (+5 -2)
📝 apps/web/src/app/(signing)/sign/[token]/sign-dialog.tsx (+17 -3)
📝 apps/web/src/components/(dashboard)/avatar/avatar-with-recipient.tsx (+12 -2)
📝 apps/web/src/components/(dashboard)/avatar/stack-avatars-with-tooltip.tsx (+7 -1)
📝 packages/email/template-components/template-document-invite.tsx (+10 -3)
📝 packages/email/templates/document-invite.tsx (+9 -2)
📝 packages/lib/client-only/recipient-type.ts (+3 -3)
packages/lib/constants/recipient-roles.ts (+26 -0)
📝 packages/lib/server-only/document/find-documents.ts (+7 -1)
📝 packages/lib/server-only/document/resend-document.tsx (+11 -2)
📝 packages/lib/server-only/document/seal-document.ts (+4 -1)
📝 packages/lib/server-only/document/send-document.tsx (+11 -6)
📝 packages/lib/server-only/recipient/set-recipients-for-document.ts (+9 -0)
packages/prisma/migrations/20231202220928_add_recipient_roles/migration.sql (+5 -0)

...and 8 more files

📄 Description

Fixes #705


🔄 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/716 **Author:** [@thehanimo](https://github.com/thehanimo) **Created:** 12/3/2023 **Status:** ✅ Merged **Merged:** 2/1/2024 **Merged by:** [@dguyen](https://github.com/dguyen) **Base:** `main` ← **Head:** `add-recipient-roles` --- ### 📝 Commits (10+) - [`f4b1508`](https://github.com/documenso/documenso/commit/f4b15080cff3ee86491c078c789514788eead183) feat: add recipient roles - [`81b12cb`](https://github.com/documenso/documenso/commit/81b12cbd21d452239646d1879853b85f482c38bb) fix: update waiting logic and add roles to popover - [`f75e054`](https://github.com/documenso/documenso/commit/f75e054238c3b4d0dbc06b9b257874ecc07b0c17) fix: change role to nativeEnum in schema - [`37fb5d9`](https://github.com/documenso/documenso/commit/37fb5d94ad774ba88bf2b1ba4609caaf19252f3d) fix: disable fields for viewers and cc'ers - [`a545b05`](https://github.com/documenso/documenso/commit/a545b0523e2db5435f0d480d55df06e72f8469ad) fix: suppress email invite to cc'ers - [`782c5ae`](https://github.com/documenso/documenso/commit/782c5ae480580990928b93de1c87377e5aaf8e17) fix: set status to signed by default for cc'ers - [`094be3c`](https://github.com/documenso/documenso/commit/094be3c178cdab034bb3b1d586709f190a75e23a) fix: simplify completed document query - [`4ea9360`](https://github.com/documenso/documenso/commit/4ea93608c2b7ddadbb704eb7845996e3eba548c8) fix: add mark as viewed for viewers - [`af8bbc8`](https://github.com/documenso/documenso/commit/af8bbc83831bd92f57ae57f84c07983561f0f482) refactor: lint code - [`b4b886e`](https://github.com/documenso/documenso/commit/b4b886ea50acaae611658beb78da23ec8cdf09f2) fix: change label/messages for approvers ### 📊 Changes **28 files changed** (+473 additions, -163 deletions) <details> <summary>View changed files</summary> 📝 `apps/marketing/content/blog/linear-gh.mdx` (+1 -1) 📝 `apps/marketing/src/app/(marketing)/singleplayer/client.tsx` (+1 -0) 📝 `apps/web/src/app/(dashboard)/documents/data-table-action-button.tsx` (+29 -6) 📝 `apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx` (+29 -7) 📝 `apps/web/src/app/(signing)/sign/[token]/complete/page.tsx` (+5 -2) 📝 `apps/web/src/app/(signing)/sign/[token]/form.tsx` (+105 -65) 📝 `apps/web/src/app/(signing)/sign/[token]/page.tsx` (+5 -2) 📝 `apps/web/src/app/(signing)/sign/[token]/sign-dialog.tsx` (+17 -3) 📝 `apps/web/src/components/(dashboard)/avatar/avatar-with-recipient.tsx` (+12 -2) 📝 `apps/web/src/components/(dashboard)/avatar/stack-avatars-with-tooltip.tsx` (+7 -1) 📝 `packages/email/template-components/template-document-invite.tsx` (+10 -3) 📝 `packages/email/templates/document-invite.tsx` (+9 -2) 📝 `packages/lib/client-only/recipient-type.ts` (+3 -3) ➕ `packages/lib/constants/recipient-roles.ts` (+26 -0) 📝 `packages/lib/server-only/document/find-documents.ts` (+7 -1) 📝 `packages/lib/server-only/document/resend-document.tsx` (+11 -2) 📝 `packages/lib/server-only/document/seal-document.ts` (+4 -1) 📝 `packages/lib/server-only/document/send-document.tsx` (+11 -6) 📝 `packages/lib/server-only/recipient/set-recipients-for-document.ts` (+9 -0) ➕ `packages/prisma/migrations/20231202220928_add_recipient_roles/migration.sql` (+5 -0) _...and 8 more files_ </details> ### 📄 Description Fixes #705 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:31:58 +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#1134
No description provided.