-
+
setMonth(Number(value))}>
{MONTH_OPTIONS.map(([value, label]) => )}
@@ -465,6 +641,13 @@ export default function AnalyticsPage() {
+
+ setForecastHorizon(Number(v))}>
+
+
+
+
+
)}
+ {visible.forecast && (
+
+
+ {(data.monthly_spending || []).length < 3 ? (
+
+ ) : (
+ <>
+
+
+
+
+
+ | Month |
+ Projected |
+ Low estimate |
+ High estimate |
+
+
+
+ {forecastRows.map(row => (
+
+ | {row.label} |
+ {fullMoney(row.total)} |
+ {fullMoney(row.low)} |
+ {fullMoney(row.high)} |
+
+ ))}
+
+
+
+ >
+ )}
+
+
+ )}
{!Object.values(visible).some(Boolean) && (