[PR #1923] [MERGED] feat: implement recipients autosuggestions #1933

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1923
Author: @catalinpit
Created: 7/25/2025
Status: Merged
Merged: 9/9/2025
Merged by: @Mythie

Base: mainHead: feat/add-recipient-autosuggestions


📝 Commits (10+)

  • 194ac7f feat: implement recipients autosuggestions
  • 6ea379d feat: created a new auto suggestion UI component
  • 2796c28 chore: better naming
  • 301cd8a chore: more cleanup
  • b127ff6 chore: implement feedback
  • 59e36f9 chore: polish
  • e23e56b chore: polish
  • e0fdfdd feat: convert the name field too
  • a64a7d8 chore: some improvements
  • d589e67 chore: some improvements

📊 Changes

8 files changed (+349 additions, -11 deletions)

View changed files

packages/lib/server-only/recipient/get-recipient-suggestions.ts (+108 -0)
packages/trpc/server/recipient-router/find-recipient-suggestions.ts (+34 -0)
packages/trpc/server/recipient-router/find-recipient-suggestions.types.ts (+22 -0)
📝 packages/trpc/server/recipient-router/router.ts (+5 -0)
packages/ui/components/recipient/recipient-autocomplete-input.tsx (+106 -0)
📝 packages/ui/primitives/command.tsx (+22 -0)
📝 packages/ui/primitives/document-flow/add-signers.tsx (+49 -10)
📝 packages/ui/primitives/popover.tsx (+3 -1)

📄 Description

Description

This pull request introduces recipient autosuggestions for the email and name fields in the document editor, when creating or editing documents. It allows users to select recipients from their previous document recipients and team members.

The changes include a new AutocompleteInput component with full keyboard navigation (arrow keys for navigation, enter to select, escape to close).

name-field email-field

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/1923 **Author:** [@catalinpit](https://github.com/catalinpit) **Created:** 7/25/2025 **Status:** ✅ Merged **Merged:** 9/9/2025 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/add-recipient-autosuggestions` --- ### 📝 Commits (10+) - [`194ac7f`](https://github.com/documenso/documenso/commit/194ac7fb499fb9db9c92bb97c03a447458a83165) feat: implement recipients autosuggestions - [`6ea379d`](https://github.com/documenso/documenso/commit/6ea379d5ed72234e30631a9ae1ed5d139a79a365) feat: created a new auto suggestion UI component - [`2796c28`](https://github.com/documenso/documenso/commit/2796c28cff7d008c74172b121ce27f13a7a50406) chore: better naming - [`301cd8a`](https://github.com/documenso/documenso/commit/301cd8ac781d83c81cfe0088987735cea6f95fa5) chore: more cleanup - [`b127ff6`](https://github.com/documenso/documenso/commit/b127ff625e9a38ee3b010c74a3d16fe0f6509854) chore: implement feedback - [`59e36f9`](https://github.com/documenso/documenso/commit/59e36f99e3da244b370105a43024542626350762) chore: polish - [`e23e56b`](https://github.com/documenso/documenso/commit/e23e56bafeea3e7db44b01a1f7e62fd6c356e0ef) chore: polish - [`e0fdfdd`](https://github.com/documenso/documenso/commit/e0fdfddb7caf88947864dd17089ac027e542b332) feat: convert the name field too - [`a64a7d8`](https://github.com/documenso/documenso/commit/a64a7d84c0b4ff274cfb67fcbe72a237e72e4866) chore: some improvements - [`d589e67`](https://github.com/documenso/documenso/commit/d589e67bc3a970ffef6ce8410a1e5d6b687060e5) chore: some improvements ### 📊 Changes **8 files changed** (+349 additions, -11 deletions) <details> <summary>View changed files</summary> ➕ `packages/lib/server-only/recipient/get-recipient-suggestions.ts` (+108 -0) ➕ `packages/trpc/server/recipient-router/find-recipient-suggestions.ts` (+34 -0) ➕ `packages/trpc/server/recipient-router/find-recipient-suggestions.types.ts` (+22 -0) 📝 `packages/trpc/server/recipient-router/router.ts` (+5 -0) ➕ `packages/ui/components/recipient/recipient-autocomplete-input.tsx` (+106 -0) 📝 `packages/ui/primitives/command.tsx` (+22 -0) 📝 `packages/ui/primitives/document-flow/add-signers.tsx` (+49 -10) 📝 `packages/ui/primitives/popover.tsx` (+3 -1) </details> ### 📄 Description ## Description This pull request introduces recipient autosuggestions for the email and name fields in the document editor, when creating or editing documents. It allows users to select recipients from their previous document recipients and team members. The changes include a new `AutocompleteInput` component with full keyboard navigation (arrow keys for navigation, enter to select, escape to close). <img width="1491" height="860" alt="name-field" src="https://github.com/user-attachments/assets/953164b1-3a00-40af-8830-bb60a5a5de76" /> <img width="1488" height="863" alt="email-field" src="https://github.com/user-attachments/assets/ffc7bc1f-c545-4bf1-97ea-7afd71ad66be" /> ## Checklist - [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:43 +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#1933
No description provided.