From 7f4acd0fb790fe791e4db166e0f924a4b5d4d824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Fri, 17 Apr 2026 21:22:10 -0400 Subject: [PATCH] refactor(messages): delete triple department signal + decorative read-state indicator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two subtractions in the message bubble header row: 1. Department chip next to each agent name. Department was already communicated by (a) the avatar tile colour (`bg-{color}18`, tinted by department via DEPARTMENT_COLORS) and (b) the sender name's text colour (`color: senderColor = deptColor`). The explicit uppercase chip ("ENGINEERING", "PRODUCT", …) was the third signal in the same row and the loudest — hardest-to-read typography (10px uppercase tracking) re-stating what colour already says. Deleted; colour continues to carry the semantics. 2. `CheckCircle` as the read-state marker. It only appeared on hover at 60% opacity — invisible most of the time and purely decorative when visible. The absence of the unread dot already communicates "read"; a second glyph just to mark the negative case added nothing. Deleted along with the now-unused CheckCircle import. Typecheck + lint pass. --- .../components/communication/MessageItem.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/renderer/components/communication/MessageItem.tsx b/src/renderer/components/communication/MessageItem.tsx index 95509435..ff6c1872 100644 --- a/src/renderer/components/communication/MessageItem.tsx +++ b/src/renderer/components/communication/MessageItem.tsx @@ -4,7 +4,6 @@ import { ChatCircle, At, Circle, - CheckCircle, WarningCircle, ArrowBendUpLeft, UserCircle, @@ -98,13 +97,6 @@ export const MessageBubble = memo(function MessageBubble({ {agent?.title ? ( {agent.title} ) : null} - {agent?.department ? ( - - {agent.department.replace("_", " ")} - - ) : null} {formatMessageTime(message.createdAt)} @@ -118,13 +110,7 @@ export const MessageBubble = memo(function MessageBubble({ ) : null} {isUnread ? ( - ) : ( - - )} + ) : null} {message.subject ? (