-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: implement recipients autosuggestions #1923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🚨 @catalinpit has 7 pull requests awaiting review. Please consider reviewing them when possible. 🚨 |
It would be cool to grab team members in the suggestions, they way we could do it is:
If a team member suggestion could be found then we will show 4 recipient suggestions and 1 team member suggestion, otherwise just show all 5 team member suggestions. |
take: 5, | ||
}); | ||
|
||
if (teamId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this if statement may be redundant
const { query } = input; | ||
|
||
ctx.logger.info({ | ||
input: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the logger may need more info
🚨 @catalinpit has 7 pull requests awaiting review. Please consider reviewing them when possible. 🚨 |
}, | ||
}); | ||
|
||
const suggestions = await getRecipientSuggestions({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the code from the get-recipient-suggestions
server file be here or how it is now with the code split? trying to understand the new way of tRPC
-ing.
|
||
ctx.logger.info({ | ||
input: { | ||
query, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more logger info?
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).Checklist