adjust eef, panel iot, and main dashboard page ai insight shown data

This commit is contained in:
Alberto-Audrix committed 2026-09-24 15:33:56 +07:00
1 parent 73bdb8c739
commit 0d960c8153
5 files changed
+130 -22

No files matched your search

+4 -1
View File
@@ -583,8 +583,11 @@ export const AiInsightCard: React.FC<AiInsightCardProps> = ({
? { firstDay: 1, lastDay: gradeDay }
: null;
const hasInsight =
Boolean(insightText.trim()) || structuredInsight != null || endCycleInsight != null;
const renderVisualBlock = () => {
if (!scopedMetrics || page !== 'dashboard') return null;
if (!hasInsight || !scopedMetrics || page !== 'dashboard') return null;
const fcrVal = scopedMetrics.fcr;
const eefVal = scopedMetrics.eef;