wages/frontend
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
..
public/icons Add missing PWA icons 2026-07-29 17:22:24 +00:00
src Compare full-week forecast against a full prev week, not a partial one 2026-08-06 07:51:07 +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