wages/frontend/src
jtricerolph dfc863250c Compare full-week forecast against a full prev week, not a partial one
The "Prev wk" figure shown under Forecast Full Week was reusing
prevCost, which is deliberately scoped to "same elapsed days as WTD"
(e.g. only Mon-Wed of last week if today's Wednesday) — correct for
the per-department table's WTD-vs-WTD "vs Prev Wk" column, but wrong
paired with totalForecast, which projects a full 7 days. Comparing a
full-week projection against a few days of last week made prev week
look artificially low and the delta look inflated.

Added prevFullCost (full Mon-Sun of the prior week — already present
in the 14-day actuals fetch) for the full-week comparison specifically;
left prevCost/totalPrev untouched for the table's WTD comparisons.
2026-08-06 07:51:07 +00:00
..
components Add insight history view; feed recent insights back into the prompt 2026-07-24 22:01:13 +00:00
hooks
lib Don't treat today's in-progress £0 actuals as ground truth in forecast 2026-08-03 10:36:56 +00:00
pages Compare full-week forecast against a full prev week, not a partial one 2026-08-06 07:51:07 +00:00
api.ts Make the AI insight's prompt instructions editable via Settings 2026-07-25 11:09:44 +00:00
App.tsx Add week/month summary stats + budget watch to Dashboard, make it the default page 2026-07-25 13:25:28 +00:00
index.css Fix chart legend order and tooltip stacking on wage graphs 2026-07-24 15:45:00 +00:00
main.tsx
types.ts Add AI cost insights dashboard; rota-informed forecast method 2026-07-24 20:43:18 +00:00