wages/frontend
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
..
public/icons Add missing PWA icons 2026-07-29 17:22:24 +00:00
src Widen actuals fetch window so the hop-back forecast fallback can reach history 2026-08-06 07:41:09 +00:00
Dockerfile Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
index.html Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
nginx.conf Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
package-lock.json Add AI cost insights dashboard; rota-informed forecast method 2026-07-24 20:43:18 +00:00
package.json Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
tsconfig.json Fix TS errors: vite/client types + recharts Tooltip formatter signature 2026-07-23 09:07:34 +00:00
vite.config.ts Scope PWA manifest to app's own path instead of origin root 2026-07-29 13:47:22 +00:00