Skip to content

Conversation

@peterchinman
Copy link
Contributor

@peterchinman peterchinman commented Nov 25, 2025

Emails are now by default marked as done on send.

Additionally, emails with tables now get a white background.

@peterchinman peterchinman requested a review from a team as a code owner November 25, 2025 22:09
@linear
Copy link

linear bot commented Nov 25, 2025

FRO-293 Sending in Email/Channel should Send and Mark as Done.

Email, easy. For Channel need to think thru what exactly we mean.

I think:

  • Replying to a message/ in a thread should "mark as done" any notifications on that message/thread.
  • Posting in main channel should not "mark as done".
  • Should reacting with an emoji "mark as done"?

Eventually this should apply to document comments as well.

Also: this should probably be a setting that can be turned on/off. Doesn't seem obvious to me that this is what everyone will want.

@peterchinman peterchinman force-pushed the peter/fro-293-sending-in-emailchannel-should-send-and-mark-as-done branch from 3682ad7 to d0237d4 Compare November 25, 2025 22:12
@seanaye seanaye force-pushed the peter/fro-293-sending-in-emailchannel-should-send-and-mark-as-done branch from 0a96a24 to a98814a Compare November 27, 2025 21:11
@seanaye seanaye force-pushed the main branch 2 times, most recently from 6ca0007 to d484247 Compare November 27, 2025 22:14
@seanaye seanaye force-pushed the peter/fro-293-sending-in-emailchannel-should-send-and-mark-as-done branch 2 times, most recently from c68045b to f1e3d7d Compare November 28, 2025 17:13
@seanaye seanaye force-pushed the peter/fro-293-sending-in-emailchannel-should-send-and-mark-as-done branch from f1e3d7d to c515e02 Compare November 28, 2025 17:33
Comment on lines -355 to 368
const sendEmail = async () => {
if (isPendingSend() || isPendingUpload()) return;
const sendEmail = async (): Promise<boolean> => {
if (isPendingSend() || isPendingUpload()) return false;
setIsPendingSend(true);
const to = form().recipients.to.map(convertEmailRecipientToContactInfo);
const cc = form().recipients.cc.map(convertEmailRecipientToContactInfo);
const bcc = form().recipients.bcc.map(convertEmailRecipientToContactInfo);

if ((to?.length ?? 0) + (cc?.length ?? 0) + (bcc?.length ?? 0) === 0) {
toast.failure('Email failed to send. No recipients provided');
return;
setIsPendingSend(false);
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future would be great if we pulled this logic out of component body

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, agreed, I'll purify BaseInput at some point

@peterchinman peterchinman merged commit 95dcdf4 into main Dec 1, 2025
18 checks passed
@peterchinman peterchinman deleted the peter/fro-293-sending-in-emailchannel-should-send-and-mark-as-done branch December 1, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants