From 34266ad6042332b6f8ea62ac94f0d78e14042159 Mon Sep 17 00:00:00 2001 From: Developing-Gamer Date: Wed, 27 May 2026 12:31:13 -0700 Subject: [PATCH] Refine email sender pages. Co-authored-by: Cursor --- .../email-sent/domain-reputation-card.tsx | 2 +- .../[projectId]/email-sent/page-client.tsx | 63 ++++++++++--------- 2 files changed, 36 insertions(+), 29 deletions(-) diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/email-sent/domain-reputation-card.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/email-sent/domain-reputation-card.tsx index d43c6fa3d..49c7bf47c 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/email-sent/domain-reputation-card.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/email-sent/domain-reputation-card.tsx @@ -270,7 +270,7 @@ export function DomainReputationCard() {
diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/email-sent/page-client.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/email-sent/page-client.tsx index 96bc4276f..9319fa6cf 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/email-sent/page-client.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/email-sent/page-client.tsx @@ -73,14 +73,16 @@ const emailTableColumns: DataGridColumnDef[] = [ { id: "recipient", header: "Recipient", - width: 200, + width: 160, + minWidth: 96, type: "string", accessor: (row) => getRecipientDisplay(row), }, { id: "subject", header: "Subject", - width: 220, + width: 180, + minWidth: 120, flex: 1, type: "string", accessor: (row) => getSubjectDisplay(row), @@ -88,7 +90,8 @@ const emailTableColumns: DataGridColumnDef[] = [ { id: "scheduledAt", header: "Time", - width: 180, + width: 140, + minWidth: 100, type: "dateTime", accessor: (row) => getTimeValue(row), }, @@ -96,6 +99,7 @@ const emailTableColumns: DataGridColumnDef[] = [ id: "status", header: "Status", width: 120, + minWidth: 108, renderCell: ({ row }) => { const status = row.status; return ( @@ -158,26 +162,28 @@ function EmailSendDataTable() { } return ( - { - router.push(`email-viewer/${row.id}`); - }} - /> +
+ { + router.push(`email-viewer/${row.id}`); + }} + /> +
); } @@ -190,15 +196,16 @@ export default function PageClient() { title="Sent" description="View email logs and domain reputation" > -
+
{/* Left side: Email Log with toggle inside card */} -
+
-
+
@@ -220,7 +227,7 @@ export default function PageClient() {
{/* Right side: Domain Reputation */} -
+