[PR #711] [MERGED] feat: Allow for the deletion of any document #1129

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/711
Author: @ksushant6566
Created: 12/2/2023
Status: Merged
Merged: 12/6/2023
Merged by: @Mythie

Base: mainHead: main


📝 Commits (10+)

  • 7bc58d0 feat: resolves 696
  • 5593845 Merge branch 'documenso:main' into main
  • b8f06c3 chore: removed unused delete-draft-document-dialog.tsx
  • f8feb95 feat: send cancellation emails to recipients while deleting pending documents
  • bf5d1fe fix: remove deleted owner document counts from status tabs
  • 0aa3e56 fix: document cancel email contains invite message & invite subject
  • 5e3dda1 chore: merged delete-draft-doc & delete-non-draft-doc into one to cleanup router
  • b9becbd fix: include deleted docs for recipients but not owners
  • 368184d chore: refactor, cleanup
  • b523128 fix: update doc pages for deleted docs

📊 Changes

26 files changed (+912 additions, -131 deletions)

View changed files

📝 .github/workflows/e2e-tests.yml (+3 -0)
📝 apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx (+4 -3)
📝 apps/web/src/app/(dashboard)/documents/data-table.tsx (+9 -6)
📝 apps/web/src/app/(dashboard)/documents/delete-document-dialog.tsx (+47 -16)
📝 apps/web/src/app/(signing)/sign/[token]/complete/page.tsx (+18 -6)
apps/web/src/app/(signing)/sign/[token]/no-longer-available.tsx (+66 -0)
📝 apps/web/src/app/(signing)/sign/[token]/page.tsx (+14 -0)
📝 apps/web/src/components/(dashboard)/layout/profile-dropdown.tsx (+6 -2)
packages/app-tests/e2e/pr-711-deletion-of-documents.spec.ts (+192 -0)
📝 packages/app-tests/e2e/test-auth-flow.spec.ts (+4 -4)
📝 packages/app-tests/package.json (+1 -0)
packages/app-tests/tsconfig.json (+8 -0)
packages/email/template-components/template-document-cancel.tsx (+34 -0)
packages/email/templates/document-cancel.tsx (+66 -0)
packages/lib/server-only/document/delete-document.ts (+88 -0)
packages/lib/server-only/document/delete-draft-document.ts (+0 -13)
📝 packages/lib/server-only/document/find-documents.ts (+15 -3)
📝 packages/lib/server-only/document/get-stats.ts (+24 -9)
📝 packages/lib/server-only/field/sign-field-with-token.ts (+4 -0)
packages/prisma/migrations/20231202134005_deletedocuments/migration.sql (+2 -0)

...and 6 more files

📄 Description

Resolves #696


🔄 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/711 **Author:** [@ksushant6566](https://github.com/ksushant6566) **Created:** 12/2/2023 **Status:** ✅ Merged **Merged:** 12/6/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`7bc58d0`](https://github.com/documenso/documenso/commit/7bc58d0864f23545bd3461e0aa0a559599871737) feat: resolves 696 - [`5593845`](https://github.com/documenso/documenso/commit/5593845641753c3165d7e595d276bb94c83f5924) Merge branch 'documenso:main' into main - [`b8f06c3`](https://github.com/documenso/documenso/commit/b8f06c3629c0900dbc139f830dd92fb346f4fbe0) chore: removed unused delete-draft-document-dialog.tsx - [`f8feb95`](https://github.com/documenso/documenso/commit/f8feb95059603550ad7cf15cc4997f94dd5f72ab) feat: send cancellation emails to recipients while deleting pending documents - [`bf5d1fe`](https://github.com/documenso/documenso/commit/bf5d1fe1b157e9f921e9ba5e6e1d162c4db4db0a) fix: remove deleted owner document counts from status tabs - [`0aa3e56`](https://github.com/documenso/documenso/commit/0aa3e5698493563ba1db9b27b2145d2fc6e9704b) fix: document cancel email contains invite message & invite subject - [`5e3dda1`](https://github.com/documenso/documenso/commit/5e3dda18098dcd9501943d4da30e18b6f8619f0b) chore: merged delete-draft-doc & delete-non-draft-doc into one to cleanup router - [`b9becbd`](https://github.com/documenso/documenso/commit/b9becbd14446f49916f0395c7212c20bd68a283e) fix: include deleted docs for recipients but not owners - [`368184d`](https://github.com/documenso/documenso/commit/368184d801f30f4c2e9d9a33919cd32af82fb0fa) chore: refactor, cleanup - [`b523128`](https://github.com/documenso/documenso/commit/b5231286a05aa7cf8309fc594ce16ae02bd18734) fix: update doc pages for deleted docs ### 📊 Changes **26 files changed** (+912 additions, -131 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/e2e-tests.yml` (+3 -0) 📝 `apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx` (+4 -3) 📝 `apps/web/src/app/(dashboard)/documents/data-table.tsx` (+9 -6) 📝 `apps/web/src/app/(dashboard)/documents/delete-document-dialog.tsx` (+47 -16) 📝 `apps/web/src/app/(signing)/sign/[token]/complete/page.tsx` (+18 -6) ➕ `apps/web/src/app/(signing)/sign/[token]/no-longer-available.tsx` (+66 -0) 📝 `apps/web/src/app/(signing)/sign/[token]/page.tsx` (+14 -0) 📝 `apps/web/src/components/(dashboard)/layout/profile-dropdown.tsx` (+6 -2) ➕ `packages/app-tests/e2e/pr-711-deletion-of-documents.spec.ts` (+192 -0) 📝 `packages/app-tests/e2e/test-auth-flow.spec.ts` (+4 -4) 📝 `packages/app-tests/package.json` (+1 -0) ➕ `packages/app-tests/tsconfig.json` (+8 -0) ➕ `packages/email/template-components/template-document-cancel.tsx` (+34 -0) ➕ `packages/email/templates/document-cancel.tsx` (+66 -0) ➕ `packages/lib/server-only/document/delete-document.ts` (+88 -0) ➖ `packages/lib/server-only/document/delete-draft-document.ts` (+0 -13) 📝 `packages/lib/server-only/document/find-documents.ts` (+15 -3) 📝 `packages/lib/server-only/document/get-stats.ts` (+24 -9) 📝 `packages/lib/server-only/field/sign-field-with-token.ts` (+4 -0) ➕ `packages/prisma/migrations/20231202134005_deletedocuments/migration.sql` (+2 -0) _...and 6 more files_ </details> ### 📄 Description Resolves #696 --- <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:57 +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#1129
No description provided.