diff --git a/src/components/dashboard/inbox.tsx b/src/components/dashboard/inbox.tsx index 56b0e15..ff2c0c7 100644 --- a/src/components/dashboard/inbox.tsx +++ b/src/components/dashboard/inbox.tsx @@ -14,6 +14,7 @@ import { useInboxData, type InboxState, type UiInboxItem } from "@/lib/inbox-api import { MailReader, NewMailModal } from "./mail"; const KIND_LABEL: Record = { + MAIL: "Mail", MENTION: "Mention", NEEDS_REPLY: "Needs reply", NEEDS_REVIEW: "Needs review", NEEDS_APPROVAL: "Needs approval", SUPPORT_UPDATE: "Support", MEETING_FOLLOWUP: "Meeting", DIGEST: "Digest", SYSTEM_ALERT: "Alert", CRM_OWNER_INTEREST: "Owner", }; @@ -103,7 +104,7 @@ function ItemRow({ it, active, onClick }: { it: UiInboxItem; active: boolean; on }} > - +
@@ -122,8 +123,9 @@ function Detail({ it, onError, onDone, onSnooze, onArchive }: { }) { return ( <> - {/* Item actions bar (works for every item, threaded or not) */} - {it.state === "OPEN" && ( + {/* Item actions bar — only for real inbox work-items. Mail isn't an inbox item + (no crm.inbox.transition), so it gets read/reply only, no Done/Snooze/Archive. */} + {it.state === "OPEN" && it.kind !== "MAIL" && (
Snooze Done diff --git a/src/components/dashboard/mail.tsx b/src/components/dashboard/mail.tsx index 49b7c19..9ee09da 100644 --- a/src/components/dashboard/mail.tsx +++ b/src/components/dashboard/mail.tsx @@ -216,13 +216,16 @@ export function NewMailModal({ open, onClose, onSent, onError }: { open: boolean setSubject(e.target.value)} placeholder="Subject" style={inputStyle} />