Open varuntree opened 6 days ago
Someone is attempting to deploy a commit to the Inbox Zero Team on Vercel.
A member of the Team first needs to authorize it.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
The recent modifications enhance the email composition functionality, particularly for replying and forwarding emails. By introducing new fields in the ReplyingToEmail
type, updating the ComposeEmailForm
component to handle these fields, and adding helper functions for preparing email data in EmailPanel.tsx
, these changes boost the modularity, readability, and efficiency of the codebase.
File Path | Change Summary |
---|---|
apps/web/app/(app)/compose/ComposeEmailForm.tsx |
Added messageText and messageHtml fields to ReplyingToEmail ; Modified onSubmit function to concatenate message content; Adjusted CSS classes. |
apps/web/components/email-list/EmailPanel.tsx |
Introduced prepareReplyingToEmail and prepareForwardingEmail functions to improve modularity and readability of email handling logic. |
sequenceDiagram
participant User
participant EmailPanel
participant ComposeEmailForm
User ->> EmailPanel: Initiates Reply/Forward
EmailPanel ->> EmailPanel: Calls prepareReplyingToEmail or prepareForwardingEmail
EmailPanel ->> ComposeEmailForm: Passes prepared email data
ComposeEmailForm ->> ComposeEmailForm: Concatenates messageText and messageHtml
User ->> ComposeEmailForm: Submits email form
ComposeEmailForm ->> EmailPanel: Sends email data for processing
In the code forest, changes bloom so bright,
Emails now reply and forward with delight.
New fields added and functions clear,
Send messages with a hop and cheer!
🌸📬✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
As there is no api yet from the google's side to forward a message, we created our own method. Tried, not to change and add to much of the complexity to the existing code.
Also added the Forwaded meta text for mail body.
Resolves #161
Summary by CodeRabbit
New Features
messageText
andmessageHtml
for replies and forwards.Refactor
prepareReplyingToEmail
andprepareForwardingEmail
functions.Style