[PR #1482] [CLOSED] feat: expiry links #1660

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1482
Author: @ephraimduncan
Created: 11/17/2024
Status: Closed

Base: archive/nextjsHead: expiry-links


📝 Commits (10+)

  • 63830fb chore: add expired signing status
  • ca2b6be feat: expiry dialog
  • e31a10a feat: expiry endpoint
  • 79d0cd7 feat: use existing expiry date if available
  • 316dbee feat: prevent signing when expired
  • c422317 feat: recipient expired on dashboard
  • 8491c69 feat: period select for expiry
  • 6e9d17f feat: audit logS
  • ba627e2 feat: show recipient as expired on document page view
  • 2d7988f feat: update recipient expiry handling

📊 Changes

32 files changed (+1079 additions, -77 deletions)

View changed files

📝 apps/web/src/app/(dashboard)/documents/[id]/document-page-view-recipients.tsx (+10 -1)
📝 apps/web/src/app/(dashboard)/documents/[id]/document-page-view.tsx (+47 -4)
📝 apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx (+2 -0)
📝 apps/web/src/app/(dashboard)/documents/_action-items/resend-document.tsx (+2 -7)
apps/web/src/app/(signing)/sign/[token]/expired/page.tsx (+99 -0)
📝 apps/web/src/app/(signing)/sign/[token]/page.tsx (+11 -6)
📝 apps/web/src/app/(signing)/sign/[token]/rejected/page.tsx (+1 -11)
📝 apps/web/src/components/(dashboard)/avatar/stack-avatar.tsx (+2 -0)
📝 apps/web/src/components/(dashboard)/avatar/stack-avatars-with-tooltip.tsx (+28 -0)
apps/web/src/components/document/document-expiry-settings.tsx (+71 -0)
📝 apps/web/src/components/document/document-read-only-fields.tsx (+14 -1)
📝 packages/lib/client-only/recipient-type.ts (+9 -0)
📝 packages/lib/server-only/document/complete-document-with-token.ts (+12 -1)
📝 packages/lib/server-only/document/resend-document.tsx (+17 -1)
packages/lib/server-only/document/update-expired-recipients.ts (+55 -0)
packages/lib/server-only/recipient/is-recipient-expired.ts (+36 -0)
packages/lib/server-only/recipient/set-recipient-expiry.ts (+112 -0)
📝 packages/lib/types/document-audit-logs.ts (+17 -1)
📝 packages/lib/utils/document-audit-logs.ts (+26 -3)
packages/prisma/migrations/20241116092807_expiry_links/migration.sql (+2 -0)

...and 12 more files

📄 Description

Summary by CodeRabbit

Release Notes

  • New Features

    • Introduced an ExpiredSigningPage to display information when a signing document has expired.
    • Added a DocumentExpirySettings component for users to set expiry durations for documents.
    • Enhanced the StackAvatarsWithTooltip to visually represent expired recipients.
    • Introduced a SignerActionDropdown for managing signer actions, including expiry settings.
    • Added a DocumentExpiryDialog component for setting expiry dates for signing recipients.
  • Enhancements

    • Updated recipient status handling to include an EXPIRED status with visual indicators.
    • Improved document status messaging to provide clearer feedback on signing statuses.
    • Streamlined the error handling and logging for document resend operations.
    • Enhanced the DocumentReadOnlyFields component to display icons and messages for REJECTED and EXPIRED statuses.
    • Introduced a new calculatePeriod function for calculating time until expiry.
  • Bug Fixes

    • Resolved issues with recipient name handling in the RejectedSigningPage.
  • Documentation

    • Updated schemas and types to reflect new expiry-related functionalities.

🔄 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/1482 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 11/17/2024 **Status:** ❌ Closed **Base:** `archive/nextjs` ← **Head:** `expiry-links` --- ### 📝 Commits (10+) - [`63830fb`](https://github.com/documenso/documenso/commit/63830fb257ea97b3025743db88ce0573000fe47f) chore: add expired signing status - [`ca2b6be`](https://github.com/documenso/documenso/commit/ca2b6bea951cbb41c45f6fc996c0c4e3642c3af7) feat: expiry dialog - [`e31a10a`](https://github.com/documenso/documenso/commit/e31a10a94388e84172d2ceb1a386249947a5b1fe) feat: expiry endpoint - [`79d0cd7`](https://github.com/documenso/documenso/commit/79d0cd7de59f38322a04bdc3d42772f316d8edda) feat: use existing expiry date if available - [`316dbee`](https://github.com/documenso/documenso/commit/316dbee446bac616d94369ee411649f70c053f8a) feat: prevent signing when expired - [`c422317`](https://github.com/documenso/documenso/commit/c422317566c5e00165a48fbfc47e0b553fed8ba1) feat: recipient expired on dashboard - [`8491c69`](https://github.com/documenso/documenso/commit/8491c69e8c70252ec48eea257818b102fb502e03) feat: period select for expiry - [`6e9d17f`](https://github.com/documenso/documenso/commit/6e9d17f8ea8e92cfcdd5e2157b3dc6fb55d9981c) feat: audit logS - [`ba627e2`](https://github.com/documenso/documenso/commit/ba627e22c5609b1fa201941851544739b293b444) feat: show recipient as expired on document page view - [`2d7988f`](https://github.com/documenso/documenso/commit/2d7988f484a790a5d055d5ae498dbd2fb7e1417a) feat: update recipient expiry handling ### 📊 Changes **32 files changed** (+1079 additions, -77 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/src/app/(dashboard)/documents/[id]/document-page-view-recipients.tsx` (+10 -1) 📝 `apps/web/src/app/(dashboard)/documents/[id]/document-page-view.tsx` (+47 -4) 📝 `apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx` (+2 -0) 📝 `apps/web/src/app/(dashboard)/documents/_action-items/resend-document.tsx` (+2 -7) ➕ `apps/web/src/app/(signing)/sign/[token]/expired/page.tsx` (+99 -0) 📝 `apps/web/src/app/(signing)/sign/[token]/page.tsx` (+11 -6) 📝 `apps/web/src/app/(signing)/sign/[token]/rejected/page.tsx` (+1 -11) 📝 `apps/web/src/components/(dashboard)/avatar/stack-avatar.tsx` (+2 -0) 📝 `apps/web/src/components/(dashboard)/avatar/stack-avatars-with-tooltip.tsx` (+28 -0) ➕ `apps/web/src/components/document/document-expiry-settings.tsx` (+71 -0) 📝 `apps/web/src/components/document/document-read-only-fields.tsx` (+14 -1) 📝 `packages/lib/client-only/recipient-type.ts` (+9 -0) 📝 `packages/lib/server-only/document/complete-document-with-token.ts` (+12 -1) 📝 `packages/lib/server-only/document/resend-document.tsx` (+17 -1) ➕ `packages/lib/server-only/document/update-expired-recipients.ts` (+55 -0) ➕ `packages/lib/server-only/recipient/is-recipient-expired.ts` (+36 -0) ➕ `packages/lib/server-only/recipient/set-recipient-expiry.ts` (+112 -0) 📝 `packages/lib/types/document-audit-logs.ts` (+17 -1) 📝 `packages/lib/utils/document-audit-logs.ts` (+26 -3) ➕ `packages/prisma/migrations/20241116092807_expiry_links/migration.sql` (+2 -0) _...and 12 more files_ </details> ### 📄 Description <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced an `ExpiredSigningPage` to display information when a signing document has expired. - Added a `DocumentExpirySettings` component for users to set expiry durations for documents. - Enhanced the `StackAvatarsWithTooltip` to visually represent expired recipients. - Introduced a `SignerActionDropdown` for managing signer actions, including expiry settings. - Added a `DocumentExpiryDialog` component for setting expiry dates for signing recipients. - **Enhancements** - Updated recipient status handling to include an `EXPIRED` status with visual indicators. - Improved document status messaging to provide clearer feedback on signing statuses. - Streamlined the error handling and logging for document resend operations. - Enhanced the `DocumentReadOnlyFields` component to display icons and messages for `REJECTED` and `EXPIRED` statuses. - Introduced a new `calculatePeriod` function for calculating time until expiry. - **Bug Fixes** - Resolved issues with recipient name handling in the `RejectedSigningPage`. - **Documentation** - Updated schemas and types to reflect new expiry-related functionalities. <!-- 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:34:12 +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#1660
No description provided.