diff --git a/apps/web/app/(app)/[emailAccountId]/assistant/ProcessRules.tsx b/apps/web/app/(app)/[emailAccountId]/assistant/ProcessRules.tsx index af29b52e2c..ea8d100743 100644 --- a/apps/web/app/(app)/[emailAccountId]/assistant/ProcessRules.tsx +++ b/apps/web/app/(app)/[emailAccountId]/assistant/ProcessRules.tsx @@ -356,17 +356,19 @@ function ProcessRulesRow({ } > -
- -
+
+
+ +
+
{results ? ( <> diff --git a/apps/web/app/(app)/[emailAccountId]/cold-email-blocker/TestRules.tsx b/apps/web/app/(app)/[emailAccountId]/cold-email-blocker/TestRules.tsx index d0841961f1..b7f0f2f7e4 100644 --- a/apps/web/app/(app)/[emailAccountId]/cold-email-blocker/TestRules.tsx +++ b/apps/web/app/(app)/[emailAccountId]/cold-email-blocker/TestRules.tsx @@ -149,17 +149,19 @@ function TestRulesContentRow({ } > -
- -
+
+
+ +
+
+
+
Email Row Truncation
+
+ +
+
+
@@ -826,3 +834,39 @@ function getActivityLogEntries(): ActivityLogEntry[] { }, ]; } + +function EmailRowExample() { + return ( +
+ + + + +
+
+ + + Extremely Long Sender Name That Should Definitely Be + Truncated + + + + This is an extremely long subject line that used to cause + the table to grow horizontally + + + This snippet contains a very long URL that does not break: + https://www.this-is-a-very-long-url-that-goes-on-and-on-and-on-and-on-and-on-and-on-and-on-and-on-and-on-and-on.com/test + +
+
+ Test +
+
+
+
+
+
+
+ ); +} diff --git a/apps/web/components/EmailMessageCell.tsx b/apps/web/components/EmailMessageCell.tsx index f8aed2ae66..84aebc7e66 100644 --- a/apps/web/components/EmailMessageCell.tsx +++ b/apps/web/components/EmailMessageCell.tsx @@ -123,8 +123,8 @@ export function EmailMessageCell({ )} - {subject} - + {subject} + {snippetRemoveReply(decodeSnippet(snippet)).trim()}
diff --git a/apps/web/utils/actions/cold-email.ts b/apps/web/utils/actions/cold-email.ts index 4c10cb9b5a..ef633f29dc 100644 --- a/apps/web/utils/actions/cold-email.ts +++ b/apps/web/utils/actions/cold-email.ts @@ -14,6 +14,7 @@ import { createEmailProvider } from "@/utils/email/provider"; import type { EmailProvider } from "@/utils/email/types"; import { getColdEmailRule } from "@/utils/cold-email/cold-email-rule"; import { getRuleLabel } from "@/utils/rule/consts"; +import { internalDateToDate } from "@/utils/date"; export const markNotColdEmailAction = actionClient .metadata({ name: "markNotColdEmail" }) @@ -143,7 +144,7 @@ export const testColdEmailAction = actionClient to: "", subject, content, - date: date ? new Date(date) : undefined, + date: date ? internalDateToDate(String(date)) : undefined, threadId: threadId || undefined, id: messageId || "", },