[PR #1916] [MERGED] feat: include audit trail log in the completed doc #1927

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1916
Author: @catalinpit
Created: 7/21/2025
Status: Merged
Merged: 8/7/2025
Merged by: @Mythie

Base: mainHead: feat/send-completed-docs-with-audit-logs


📝 Commits (10+)

  • a7c420d feat: audit trail log
  • 0997859 chore: fix column space
  • 2f44fdd chore: rename version history to audit log
  • 39c2b23 chore: style individual audit logs
  • 80a51b5 Merge branch 'main' into feat/send-completed-docs-with-audit-logs
  • 6752372 chore: merge main
  • e0a036d chore: implement feedback
  • a858bc8 Merge branch 'main' into feat/send-completed-docs-with-audit-logs
  • 472eb22 chore: update the audit log design generated in the signed document
  • bd90db5 chore: update the audit log design generated separately

📊 Changes

21 files changed (+358 additions, -84 deletions)

View changed files

📝 apps/remix/app/components/forms/document-preferences-form.tsx (+54 -0)
📝 apps/remix/app/components/general/document/document-page-view-dropdown.tsx (+1 -1)
📝 apps/remix/app/components/tables/internal-audit-log-table.tsx (+121 -65)
📝 apps/remix/app/routes/_authenticated+/o.$orgUrl.settings.document.tsx (+4 -1)
📝 apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx (+1 -1)
📝 apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.document.tsx (+2 -0)
apps/remix/app/routes/_internal+/[__htmltopdf]+/audit-log.print.css (+5 -0)
📝 apps/remix/app/routes/_internal+/[__htmltopdf]+/audit-log.tsx (+12 -7)
📝 packages/lib/jobs/definitions/internal/seal-document.handler.ts (+29 -1)
📝 packages/lib/server-only/document/create-document-v2.ts (+1 -1)
📝 packages/lib/server-only/document/seal-document.ts (+23 -0)
packages/lib/server-only/htmltopdf/get-audit-logs-pdf.ts (+83 -0)
📝 packages/lib/server-only/htmltopdf/get-certificate-pdf.ts (+1 -0)
📝 packages/lib/utils/organisations.ts (+1 -0)
📝 packages/lib/utils/teams.ts (+1 -0)
packages/prisma/migrations/20250721085125_include_audit_trail_log/migration.sql (+5 -0)
📝 packages/prisma/schema.prisma (+8 -7)
📝 packages/trpc/server/organisation-router/update-organisation-settings.ts (+2 -0)
📝 packages/trpc/server/organisation-router/update-organisation-settings.types.ts (+1 -0)
📝 packages/trpc/server/team-router/update-team-settings.ts (+2 -0)

...and 1 more files

📄 Description

Description

This change allows users to include the audit trail log in the completed documents; similar to the signing certificate.

https://github.com/user-attachments/assets/d9ae236a-2584-4ad6-b7bc-27b3eb8c74d3

It also solves the issue with the text cutoff.

Screenshot 2025-07-21 at 13 29 20

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

🔄 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/1916 **Author:** [@catalinpit](https://github.com/catalinpit) **Created:** 7/21/2025 **Status:** ✅ Merged **Merged:** 8/7/2025 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/send-completed-docs-with-audit-logs` --- ### 📝 Commits (10+) - [`a7c420d`](https://github.com/documenso/documenso/commit/a7c420dd0e8248b41eb339651cd402f01f9c87ad) feat: audit trail log - [`0997859`](https://github.com/documenso/documenso/commit/09978590a73c3a92165f11d44f74cd06ddfd1cd8) chore: fix column space - [`2f44fdd`](https://github.com/documenso/documenso/commit/2f44fdda9f82ae089db2eb87044710c6c8a67956) chore: rename version history to audit log - [`39c2b23`](https://github.com/documenso/documenso/commit/39c2b232c79ab6ce4e255c346ffe8adaff54e41b) chore: style individual audit logs - [`80a51b5`](https://github.com/documenso/documenso/commit/80a51b5ceb6612c7990c44bcdaa9976afa9fc346) Merge branch 'main' into feat/send-completed-docs-with-audit-logs - [`6752372`](https://github.com/documenso/documenso/commit/67523725ba4eacf919b7a2245100cfe7d3e6a362) chore: merge main - [`e0a036d`](https://github.com/documenso/documenso/commit/e0a036dcdd5e67c5e124909420cf89a33b7144e2) chore: implement feedback - [`a858bc8`](https://github.com/documenso/documenso/commit/a858bc8032a87b74d1d6e0cd88c35af3051fc76c) Merge branch 'main' into feat/send-completed-docs-with-audit-logs - [`472eb22`](https://github.com/documenso/documenso/commit/472eb22caa3ab91d39d6a323c29024c18050bf37) chore: update the audit log design generated in the signed document - [`bd90db5`](https://github.com/documenso/documenso/commit/bd90db5654325fada207d408a394732f7d89a10a) chore: update the audit log design generated separately ### 📊 Changes **21 files changed** (+358 additions, -84 deletions) <details> <summary>View changed files</summary> 📝 `apps/remix/app/components/forms/document-preferences-form.tsx` (+54 -0) 📝 `apps/remix/app/components/general/document/document-page-view-dropdown.tsx` (+1 -1) 📝 `apps/remix/app/components/tables/internal-audit-log-table.tsx` (+121 -65) 📝 `apps/remix/app/routes/_authenticated+/o.$orgUrl.settings.document.tsx` (+4 -1) 📝 `apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx` (+1 -1) 📝 `apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.document.tsx` (+2 -0) ➕ `apps/remix/app/routes/_internal+/[__htmltopdf]+/audit-log.print.css` (+5 -0) 📝 `apps/remix/app/routes/_internal+/[__htmltopdf]+/audit-log.tsx` (+12 -7) 📝 `packages/lib/jobs/definitions/internal/seal-document.handler.ts` (+29 -1) 📝 `packages/lib/server-only/document/create-document-v2.ts` (+1 -1) 📝 `packages/lib/server-only/document/seal-document.ts` (+23 -0) ➕ `packages/lib/server-only/htmltopdf/get-audit-logs-pdf.ts` (+83 -0) 📝 `packages/lib/server-only/htmltopdf/get-certificate-pdf.ts` (+1 -0) 📝 `packages/lib/utils/organisations.ts` (+1 -0) 📝 `packages/lib/utils/teams.ts` (+1 -0) ➕ `packages/prisma/migrations/20250721085125_include_audit_trail_log/migration.sql` (+5 -0) 📝 `packages/prisma/schema.prisma` (+8 -7) 📝 `packages/trpc/server/organisation-router/update-organisation-settings.ts` (+2 -0) 📝 `packages/trpc/server/organisation-router/update-organisation-settings.types.ts` (+1 -0) 📝 `packages/trpc/server/team-router/update-team-settings.ts` (+2 -0) _...and 1 more files_ </details> ### 📄 Description ## Description This change allows users to include the audit trail log in the completed documents; similar to the signing certificate. https://github.com/user-attachments/assets/d9ae236a-2584-4ad6-b7bc-27b3eb8c74d3 It also solves the issue with the text cutoff. <img width="633" height="1275" alt="Screenshot 2025-07-21 at 13 29 20" src="https://github.com/user-attachments/assets/d1d8d340-11e0-4eae-8afa-c89f28d3a62c" /> ## Checklist <!--- Please check the boxes that apply to this pull request. --> <!--- You can add or remove items as needed. --> - [x] I have tested these changes locally and they work as expected. - [ ] I have added/updated tests that prove the effectiveness of these changes. - [ ] I have updated the documentation to reflect these changes, if applicable. - [x] I have followed the project's coding style guidelines. - [ ] I have addressed the code review feedback from the previous submission, if applicable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:31:41 +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#1927
No description provided.