diff --git a/components/quotes/ticket-detail-modal.tsx b/components/quotes/ticket-detail-modal.tsx index 81215e2..a07656d 100644 --- a/components/quotes/ticket-detail-modal.tsx +++ b/components/quotes/ticket-detail-modal.tsx @@ -27,6 +27,7 @@ import { Timer, Bot, UserCircle, + Mail, X, } from 'lucide-react'; @@ -34,6 +35,8 @@ import { const SYSTEM_NOTE_TYPES = new Set([13, 91, 93, 94, 99, 101]); // publish=2 means Internal Users Only in Autotask const INTERNAL_PUBLISH = 2; +// noteType=2 is Service Desk Notification (email communication) +const EMAIL_NOTE_TYPE = 2; const URL_REGEX = /https?:\/\/[^\s<>"'\[\]()]+/g; @@ -465,9 +468,11 @@ export function TicketDetailModal({ ticketNumber, open, onOpenChange }: TicketDe