From bd4683d91e5e33d496de50564974dece29eb18dd Mon Sep 17 00:00:00 2001 From: g Date: Mon, 12 Jan 2026 01:41:17 +0000 Subject: [PATCH] Update PredictionsChart.tsx --- components/analytics/PredictionsChart.tsx | 29 +++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/components/analytics/PredictionsChart.tsx b/components/analytics/PredictionsChart.tsx index 38ea22a..ebd0ea5 100644 --- a/components/analytics/PredictionsChart.tsx +++ b/components/analytics/PredictionsChart.tsx @@ -64,6 +64,7 @@ import { TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; +import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; interface PredictionsChartProps { timeRange?: number; @@ -237,7 +238,7 @@ export default function PredictionsChart({
{/* Sales Predictions */}
- + @@ -261,8 +262,8 @@ export default function PredictionsChart({
- -
+ + )} -
+

Based on data consistency, historical accuracy, and model agreement

@@ -284,8 +285,8 @@ export default function PredictionsChart({ {predictions.sales.aiModel?.used && ( - -
+ + 🤖 AI Powered {predictions.sales.aiModel.modelAccuracy !== undefined && ( @@ -294,7 +295,7 @@ export default function PredictionsChart({ )} -
+

Predictions generated using a Deep Learning Ensemble Model (TensorFlow.js)

@@ -303,8 +304,8 @@ export default function PredictionsChart({ )} {predictions.sales.trend && ( - -
+ + -
+

Direction of the recent sales trend (slope analysis)

@@ -418,6 +419,14 @@ export default function PredictionsChart({
+ + + Prediction Accuracy Warning + + These predictions are estimates based on historical sales data. Actual results may vary due to external factors, market conditions, and unforeseen events. Use these insights as a guide, not a guarantee. + + + {/* Daily Predictions Chart */} {predictions.sales.dailyPredictions && predictions.sales.dailyPredictions.length > 0 && (