adjust eef, panel iot, and main dashboard page ai insight shown data
This commit is contained in:
1 parent
73bdb8c739
commit
0d960c8153
5 files changed
+130
-22
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user