From acf6c931e0e82fafde70daa848c52498dff9eb38 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Wed, 3 Jun 2026 18:04:08 +0700 Subject: [PATCH] feat(messages): show AI analysis always expanded without toggle - Remove collapsible toggle for AI analysis section - Always show ai_analysis content inline - Clean up unused ChevronDown/ChevronUp imports and showAnalysis state - Simplify layout with flex layout instead of button + conditional div Co-Authored-By: Claude Opus 4.8 --- .../messages/components/MessageCard.tsx | 34 +++++++------------ 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/services/frontend/src/features/messages/components/MessageCard.tsx b/services/frontend/src/features/messages/components/MessageCard.tsx index 4665665..3d8e577 100644 --- a/services/frontend/src/features/messages/components/MessageCard.tsx +++ b/services/frontend/src/features/messages/components/MessageCard.tsx @@ -1,8 +1,6 @@ import { AlertCircle, CheckCircle2, - ChevronDown, - ChevronUp, Image as ImageIcon, Pencil, RotateCw, @@ -133,7 +131,6 @@ function MessageRow({ const confidence = message.ai_confidence ?? message.ai_moderation_score ?? null; const [isReanalyzing, setIsReanalyzing] = useState(false); - const [showAnalysis, setShowAnalysis] = useState(aiStatus === "flagged"); const analysisSummary = useMemo(() => { const parts: string[] = []; @@ -292,7 +289,7 @@ function MessageRow({ )} - {/* AI Analysis */} + {/* AI Analysis — always expanded */} {message.ai_analysis ? (
- - {showAnalysis && ( -
- {message.ai_analysis} +
+ + {analysisSummary} + +
+ {message.ai_analysis} +
- )} +
) : null}