[PR #35] [CLOSED] Assorted updates from code review #723

Closed
opened 2026-02-26 18:48:39 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/35
Author: @Mythie
Created: 4/4/2023
Status: Closed

Base: mainHead: fix/assorted-updates-from-review


📝 Commits (10+)

  • fe4c3d4 fix: recipient selector would only show selected recipient
  • 37c2031 docs: add inbucket instructions
  • 6ab88de fix: add status filters to url state
  • 7f81eb5 fix: add stronger typing and remove use effect from recipient and field type selection
  • 1a95481 fix: remove usages of any and create dirtClone util
  • 0e4c10b fix: make getUserFromToken ssr and api compatible
  • 169987b fix: remove usages of any on dashboard and tidy code
  • b7cfd57 fix: improve typings of pdf signer and signature dialog
  • 5d9d38c fix: assorted tidying
  • 71f6f5e fix: don't update unknown property for now

📊 Changes

22 files changed (+362 additions, -205 deletions)

View changed files

📝 README.md (+9 -0)
📝 apps/web/components/editor/editable-field.tsx (+1 -3)
📝 apps/web/components/editor/field-type-selector.tsx (+38 -25)
📝 apps/web/components/editor/pdf-editor.tsx (+20 -15)
📝 apps/web/components/editor/pdf-signer.tsx (+46 -25)
📝 apps/web/components/editor/recipient-selector.tsx (+22 -12)
📝 apps/web/components/editor/signature-dialog.tsx (+43 -18)
📝 apps/web/components/login.tsx (+6 -2)
📝 apps/web/components/logo.tsx (+7 -2)
📝 apps/web/pages/dashboard.tsx (+43 -48)
📝 apps/web/pages/documents.tsx (+59 -28)
📝 apps/web/pages/documents/[id]/index.tsx (+3 -3)
📝 apps/web/pages/documents/[id]/recipients.tsx (+2 -1)
📝 apps/web/pages/documents/[id]/sign.tsx (+5 -5)
📝 apps/web/pages/documents/[id]/signed.tsx (+5 -4)
📝 apps/web/pages/login.tsx (+6 -3)
apps/web/process-env.d.ts (+23 -0)
📝 apps/web/tsconfig.json (+1 -0)
📝 packages/lib/api/signDocument.ts (+0 -1)
packages/lib/dirtyClone.ts (+3 -0)

...and 2 more files

📄 Description

On 05/04/2023, we had a review session of Documenso codebase where we discussed various items. These are the items we covered:

  • Update documentation to reflect seeding and migrating the database
  • Include a seed for a document with a signable pdf?
  • Add instructions for SMTP (inbucket)
  • Signed users are duplicated (bug)
  • Changing filter does not update url state
    • Tidy up document.tsx
  • Prop types are needed in more places
    • More prop types are needed in more places
  • Some useEffects can be swapped for event handlers
    • There is still the ones in documents.tsx but they are load bearing and should be approached more carefully.
  • api toasts to be moved to caller [Discussed reasoning and will not move for now]
    • sendSigningRequests
    • deleteRecipient
    • signDocument
  • Double check getUserFromToken, specifically the next-auth getToken
  • Check if we still need a local copy of node-signpdf in addDigitalSignature
    • The PR was merged only last month, currently have the latest version installed already and just need to work on swapping it out.
  • More useEffect shenanigans

This PR contains individual commits for each of these changes to facilitate an easier review process.


🔄 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/35 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 4/4/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/assorted-updates-from-review` --- ### 📝 Commits (10+) - [`fe4c3d4`](https://github.com/documenso/documenso/commit/fe4c3d4a5ff1412929d4d9286d08ac7a052f721c) fix: recipient selector would only show selected recipient - [`37c2031`](https://github.com/documenso/documenso/commit/37c2031b5cba1fff4b4e91d4f7217e4ff982dfcd) docs: add inbucket instructions - [`6ab88de`](https://github.com/documenso/documenso/commit/6ab88de4000632a84b2f1a57abe6b4e52cef852c) fix: add status filters to url state - [`7f81eb5`](https://github.com/documenso/documenso/commit/7f81eb5e29a2ce0ba54e64780371ba3ed31337c6) fix: add stronger typing and remove use effect from recipient and field type selection - [`1a95481`](https://github.com/documenso/documenso/commit/1a954818aab0d3affb6ee14ec14590477bdd2a5c) fix: remove usages of any and create dirtClone util - [`0e4c10b`](https://github.com/documenso/documenso/commit/0e4c10b346ae4e33ffaa85a8589ef13969a80d81) fix: make getUserFromToken ssr and api compatible - [`169987b`](https://github.com/documenso/documenso/commit/169987b4f047d4ec8ba385a74d561556268112ab) fix: remove usages of any on dashboard and tidy code - [`b7cfd57`](https://github.com/documenso/documenso/commit/b7cfd573c67b7ef79da883f8f95d7781bac68d95) fix: improve typings of pdf signer and signature dialog - [`5d9d38c`](https://github.com/documenso/documenso/commit/5d9d38cb68cf6f3f0c4ba9331fd638db8555465a) fix: assorted tidying - [`71f6f5e`](https://github.com/documenso/documenso/commit/71f6f5e6387e891d06cf776ae4077326e98d2e80) fix: don't update unknown property for now ### 📊 Changes **22 files changed** (+362 additions, -205 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+9 -0) 📝 `apps/web/components/editor/editable-field.tsx` (+1 -3) 📝 `apps/web/components/editor/field-type-selector.tsx` (+38 -25) 📝 `apps/web/components/editor/pdf-editor.tsx` (+20 -15) 📝 `apps/web/components/editor/pdf-signer.tsx` (+46 -25) 📝 `apps/web/components/editor/recipient-selector.tsx` (+22 -12) 📝 `apps/web/components/editor/signature-dialog.tsx` (+43 -18) 📝 `apps/web/components/login.tsx` (+6 -2) 📝 `apps/web/components/logo.tsx` (+7 -2) 📝 `apps/web/pages/dashboard.tsx` (+43 -48) 📝 `apps/web/pages/documents.tsx` (+59 -28) 📝 `apps/web/pages/documents/[id]/index.tsx` (+3 -3) 📝 `apps/web/pages/documents/[id]/recipients.tsx` (+2 -1) 📝 `apps/web/pages/documents/[id]/sign.tsx` (+5 -5) 📝 `apps/web/pages/documents/[id]/signed.tsx` (+5 -4) 📝 `apps/web/pages/login.tsx` (+6 -3) ➕ `apps/web/process-env.d.ts` (+23 -0) 📝 `apps/web/tsconfig.json` (+1 -0) 📝 `packages/lib/api/signDocument.ts` (+0 -1) ➕ `packages/lib/dirtyClone.ts` (+3 -0) _...and 2 more files_ </details> ### 📄 Description On 05/04/2023, we had a review session of Documenso codebase where we discussed various items. These are the items we covered: - [x] Update documentation to reflect seeding and migrating the database - [x] Include a seed for a document with a signable pdf? - [x] Add instructions for SMTP (inbucket) - [x] Signed users are duplicated (bug) - [x] Changing filter does not update url state - [ ] Tidy up `document.tsx` - [x] Prop types are needed in more places - [ ] More prop types are needed in more places - [x] Some useEffects can be swapped for event handlers - [ ] There is still the ones in `documents.tsx` but they are load bearing and should be approached more carefully. - [x] api toasts to be moved to caller [Discussed reasoning and will not move for now] - sendSigningRequests - deleteRecipient - signDocument - [x] Double check getUserFromToken, specifically the next-auth getToken - [ ] Check if we still need a local copy of `node-signpdf` in `addDigitalSignature` - [ ] The PR was merged only last month, currently have the latest version installed already and just need to work on swapping it out. - [x] More useEffect shenanigans This PR contains individual commits for each of these changes to facilitate an easier review process. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 18:48:39 +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#723
No description provided.