Monthly.tsx and Dashboard.tsx only ever fetched actuals for the current period (month-start..month-end, or a 7-day lookback for the week view), but forecastDayCost's same-weekday fallback hops back up to 42 days looking for a match. For any early-period date whose hop landed before the fetch window started, that data was never in memory at all — it silently fell through to the 'none' tier (£0) once published rota ran out, rather than finding a real historical match. ai-insights.js's gatherForecastData already fetched a proper 42-day lookback; these two pages didn't. Widened both fetches to match, with explicit >= period-start filters on the actual-sum calculations so the extra history is only ever used by the hop fallback, never counted twice into "actual". |
||
|---|---|---|
| .. | ||
| public/icons | ||
| src | ||
| Dockerfile | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||