From 79188e0f5993e81df4547474aed1bb2b359ece9d Mon Sep 17 00:00:00 2001 From: debu-2 Date: Mon, 5 Oct 2026 22:47:56 +0530 Subject: [PATCH] inbox streamlining --- frontend/src/components/MailDetail.jsx | 258 ++++++++++++++----------- frontend/src/styles.css | 101 +++++----- 2 files changed, 193 insertions(+), 166 deletions(-) diff --git a/frontend/src/components/MailDetail.jsx b/frontend/src/components/MailDetail.jsx index 541ca7f..0d3860f 100644 --- a/frontend/src/components/MailDetail.jsx +++ b/frontend/src/components/MailDetail.jsx @@ -15,13 +15,16 @@ import { ShieldAlert, Trash2, ChevronDown, + FileText, } from "lucide-react"; import AgentSpark from "./AgentSpark"; import SenderAvatar from "./SenderAvatar"; import { addressText, senderDisplayName } from "../utils/senderAvatar"; import { attachmentCount } from "../utils/inboxSignals"; -const ICON = { size: 16, strokeWidth: 1.7 }; +const TOOLBAR_ICON = { size: 16, strokeWidth: 1.7 }; +const ACTION_ICON = { size: 14, strokeWidth: 1.7 }; +const REPLY_ICON = { size: 14, strokeWidth: 1.7 }; function joinAddresses(value) { if (!value) return ""; @@ -121,6 +124,20 @@ function ToolbarButton({ title, label, onClick, disabled, destructive, children ); } +function MessageAction({ title, label, onClick, active, children }) { + return ( + + ); +} + export default function MailDetail({ email, loading, @@ -160,17 +177,17 @@ export default function MailDetail({
- +
{email && ( <>
- + - + - +