A local-first personal finance app
For balance forecast report cards/widgets, use the granularity defined in the report (daily / monthly) instead of always monthly (#8885)
carrub1e587c73b44
diff --git a/packages/desktop-client/src/components/reports/reports/BalanceForecastCard.tsx b/packages/desktop-client/src/components/reports/reports/BalanceForecastCard.tsxindex 34cca7f904..01d0c9daec 100644--- a/packages/desktop-client/src/components/reports/reports/BalanceForecastCard.tsx+++ b/packages/desktop-client/src/components/reports/reports/BalanceForecastCard.tsx@@ -61,6 +61,7 @@ export function BalanceForecastCard({? 'tracking-budget': 'schedules';const isTrackingBudgetForecast = source === 'tracking-budget';+ const granularity = meta?.granularity || 'Monthly';const [nameMenuOpen, setNameMenuOpen] = useState(false);const [isCardHovered, setIsCardHovered] = useState(false);@@ -124,7 +125,7 @@ export function BalanceForecastCard({forecastData: normalizedForecastData,start: chartRange.start,end: chartRange.end,- granularity: 'Monthly',+ granularity,});const endingPoint = chartData.at(-1);const lowestPoint = getLowestChartDataPoint(chartData);@@ -142,7 +143,7 @@ export function BalanceForecastCard({forecastData: normalizedForecastData,start: chartRange.start,end: chartRange.end,- granularity: 'Monthly',+ granularity,});const hasFilters =!isTrackingBudgetForecast && (meta?.conditions?.length ?? 0) > 0;diff --git a/upcoming-release-notes/forecast-widget-granularity.md b/upcoming-release-notes/forecast-widget-granularity.mdnew file mode 100644index 0000000000..d3facdbf12--- /dev/null+++ b/upcoming-release-notes/forecast-widget-granularity.md@@ -0,0 +1,6 @@+---+category: Bugfixes+authors: [carru]+---++For balance forecast report cards/widgets, use the granularity defined in the report (daily / monthly) instead of always monthly