[PR #1279] [MERGED] feat: add initials field type #1529

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1279
Author: @catalinpit
Created: 8/12/2024
Status: Merged
Merged: 8/12/2024
Merged by: @Mythie

Base: mainHead: feat/add-initials-field


📝 Commits (5)

  • 1f248d8 feat: add initials field type
  • b8a1ea8 feat: add initials field for templates
  • 84f5ecc fix: document audit log
  • 0fe4e3a fix: remove unnecessary stuff
  • bbc802b feat: sign direct template

📊 Changes

16 files changed (+261 additions, -494 deletions)

View changed files

📝 apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx (+10 -0)
apps/web/src/app/(signing)/sign/[token]/initials-field.tsx (+140 -0)
📝 apps/web/src/app/(signing)/sign/[token]/signing-field-container.tsx (+10 -1)
📝 apps/web/src/app/(signing)/sign/[token]/signing-page-view.tsx (+4 -0)
📝 apps/web/src/components/document/document-read-only-fields.tsx (+1 -0)
📝 packages/lib/server-only/field/sign-field-with-token.ts (+11 -4)
📝 packages/lib/server-only/template/create-document-from-direct-template.ts (+1 -0)
📝 packages/lib/types/document-audit-logs.ts (+4 -0)
packages/prisma/generated/types.ts (+0 -481)
packages/prisma/migrations/20240812065352_add_initials_field_type/migration.sql (+2 -0)
📝 packages/prisma/schema.prisma (+1 -0)
📝 packages/trpc/server/document-router/router.ts (+1 -1)
📝 packages/ui/primitives/document-flow/add-fields.tsx (+28 -1)
📝 packages/ui/primitives/document-flow/field-icon.tsx (+17 -4)
📝 packages/ui/primitives/document-flow/types.ts (+1 -0)
📝 packages/ui/primitives/template-flow/add-template-fields.tsx (+30 -2)

📄 Description

Description

This PR adds a new field type that enables document recipients to add their initials on the document.

Also, it fixes 2 issues as well:

  • downloading audit logs from personal (non-team) accounts
  • dark mode issues for templates

Summary by CodeRabbit

  • New Features

    • Added an InitialsField component for capturing user initials during document signing.
    • Enhanced forms to support the Initials field type, allowing broader input options.
    • Updated UI components to include an option for Initials in field selection.
  • Bug Fixes

    • Improved error handling and user feedback for signing operations.
  • Documentation

    • Updated documentation to reflect the new Initials field type and its usage across components.

🔄 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/1279 **Author:** [@catalinpit](https://github.com/catalinpit) **Created:** 8/12/2024 **Status:** ✅ Merged **Merged:** 8/12/2024 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/add-initials-field` --- ### 📝 Commits (5) - [`1f248d8`](https://github.com/documenso/documenso/commit/1f248d8cf994b19b2199efc206be28dd871f1bea) feat: add initials field type - [`b8a1ea8`](https://github.com/documenso/documenso/commit/b8a1ea80905cb07ba544537462844ba7a2d45021) feat: add initials field for templates - [`84f5ecc`](https://github.com/documenso/documenso/commit/84f5ecc085d74c6d31d91d1af6de57a7262be45c) fix: document audit log - [`0fe4e3a`](https://github.com/documenso/documenso/commit/0fe4e3a0524c4003285cfdb17673584860715897) fix: remove unnecessary stuff - [`bbc802b`](https://github.com/documenso/documenso/commit/bbc802bd58b0f63f6766c83a2414004e8e46c122) feat: sign direct template ### 📊 Changes **16 files changed** (+261 additions, -494 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx` (+10 -0) ➕ `apps/web/src/app/(signing)/sign/[token]/initials-field.tsx` (+140 -0) 📝 `apps/web/src/app/(signing)/sign/[token]/signing-field-container.tsx` (+10 -1) 📝 `apps/web/src/app/(signing)/sign/[token]/signing-page-view.tsx` (+4 -0) 📝 `apps/web/src/components/document/document-read-only-fields.tsx` (+1 -0) 📝 `packages/lib/server-only/field/sign-field-with-token.ts` (+11 -4) 📝 `packages/lib/server-only/template/create-document-from-direct-template.ts` (+1 -0) 📝 `packages/lib/types/document-audit-logs.ts` (+4 -0) ➖ `packages/prisma/generated/types.ts` (+0 -481) ➕ `packages/prisma/migrations/20240812065352_add_initials_field_type/migration.sql` (+2 -0) 📝 `packages/prisma/schema.prisma` (+1 -0) 📝 `packages/trpc/server/document-router/router.ts` (+1 -1) 📝 `packages/ui/primitives/document-flow/add-fields.tsx` (+28 -1) 📝 `packages/ui/primitives/document-flow/field-icon.tsx` (+17 -4) 📝 `packages/ui/primitives/document-flow/types.ts` (+1 -0) 📝 `packages/ui/primitives/template-flow/add-template-fields.tsx` (+30 -2) </details> ### 📄 Description ## Description This PR adds a new field type that enables document recipients to add their `initials` on the document. Also, it fixes 2 issues as well: * downloading audit logs from personal (non-team) accounts * dark mode issues for templates <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added an `InitialsField` component for capturing user initials during document signing. - Enhanced forms to support the `Initials` field type, allowing broader input options. - Updated UI components to include an option for `Initials` in field selection. - **Bug Fixes** - Improved error handling and user feedback for signing operations. - **Documentation** - Updated documentation to reflect the new `Initials` field type and its usage across components. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:33:38 +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#1529
No description provided.