mirror of
https://github.com/Komediruzecki/token-circles.git
synced 2026-10-20 09:46:43 +02:00
- /api/budgets/allocate is now an upsert across worker, backend, and the in-browser serverless handler: re-allocating a category for the same month updates the amount instead of returning 400 "Budget already exists". Users can freely change an allocation. - Budgets UI: the per-category action stays available as a "Change" button (pre-filled with the current amount) once a budget is set, instead of disappearing after allocation. - Forecast: the 6-month projection under-counted inflation for months in the next year (month-of-year-only diff went negative and zeroed the factor); it now accounts for the year. Worker + backend fixed; the serverless handler already did this. - Adds a worker test asserting re-allocation updates (1000 -> 1500 -> 500) rather than 400.