diff --git a/src/components/baseball/command-center/TeamPlayerPeekPanel.tsx b/src/components/baseball/command-center/TeamPlayerPeekPanel.tsx index 1f0672920..2337f420d 100644 --- a/src/components/baseball/command-center/TeamPlayerPeekPanel.tsx +++ b/src/components/baseball/command-center/TeamPlayerPeekPanel.tsx @@ -260,7 +260,7 @@ export function TeamPlayerPeekPanel({ player, onClose }: TeamPlayerPeekPanelProp {insight.title}
- {insight.description} + {insight.body ?? insight.description}
))} diff --git a/src/components/baseball/player-profile/PlayerInsightsPanel.tsx b/src/components/baseball/player-profile/PlayerInsightsPanel.tsx index c90c7cf5a..e806318b0 100644 --- a/src/components/baseball/player-profile/PlayerInsightsPanel.tsx +++ b/src/components/baseball/player-profile/PlayerInsightsPanel.tsx @@ -97,6 +97,8 @@ export function PlayerInsightsPanel({ insights, expanded = false }: PlayerInsigh const colors = priorityColors[insight.priority] || priorityColors.low; const isExpanded = expandedInsights.has(insight.id) || expanded; const panelId = `insight-panel-${insight.id}`; + // Engine rows persist detail copy in `body`; legacy/manual rows use `description`. + const detail = insight.body ?? insight.description; return (- {insight.description} + {detail}
)} @@ -143,9 +145,9 @@ export function PlayerInsightsPanel({ insights, expanded = false }: PlayerInsigh className="overflow-hidden" >- {insight.description} + {detail}
)} diff --git a/src/lib/types/index.ts b/src/lib/types/index.ts index 2836a8140..bd94f04ab 100644 --- a/src/lib/types/index.ts +++ b/src/lib/types/index.ts @@ -263,6 +263,7 @@ export interface BaseballCoachInsight { title: string; description: string; + body?: string | null; // Engine-persisted insight text (baseball_coach_insights.body); UI reads body ?? description recommendation?: string; recommended_action?: string; // Alias for recommendation