From 629554e6f6cbbca2f21224df7f3bd1bb9ccd222e Mon Sep 17 00:00:00 2001 From: Talha Ahmed Date: Mon, 31 Aug 2026 14:39:48 +0500 Subject: [PATCH] Inbox: do not print raw To-addresses in the source chip When no job board matches, the chip now says Email instead of the full address; the address stays in the hover title and the opened message. Board/referral chips are unchanged. Co-Authored-By: Claude Fable 5 --- frontend/src/screens/Inbox.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/screens/Inbox.jsx b/frontend/src/screens/Inbox.jsx index 79c7883..4d14d64 100644 --- a/frontend/src/screens/Inbox.jsx +++ b/frontend/src/screens/Inbox.jsx @@ -225,10 +225,15 @@ async function fetchFormDetail(recordId) { function SourceChip({ item }) { // The dot carries the partner's brand colour; the label uses theme text — // 11px labels in the partner colour failed AA in both themes. + // When no board matched, `source` is the raw To-address; keep it out of the + // chip — show "Email", and leave the address to the tooltip and the opened + // message. + const source = String(item.source ?? '') + const label = source.includes('@') ? 'Email' : source return ( - + - {item.source} + {label} ) }