No description
Find a file
jtricerolph 2ce51b036d Widen actuals fetch window so the hop-back forecast fallback can reach history
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".
2026-08-06 07:41:09 +00:00
backend Don't treat today's in-progress £0 actuals as ground truth in forecast 2026-08-03 10:36:56 +00:00
frontend Widen actuals fetch window so the hop-back forecast fallback can reach history 2026-08-06 07:41:09 +00:00
.gitignore Add AI cost insights dashboard; rota-informed forecast method 2026-07-24 20:43:18 +00:00
docker-compose.yml Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
seed-app.js Initial scaffold: wages app 2026-07-23 09:03:52 +00:00