You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blood test calibration + codebase-wide bug fix round
Blood test calibration
On-schedule toggle: When logging a blood test that predates dose history, a toggle asks whether you were on the same dosing schedule. If yes, virtual steady-state doses are generated to compute a meaningful predicted E2 for scaling factor calibration.
Baseline decay: Off-schedule tests contribute to endogenous baseline E2, which decays forward over time.
Database schema v2: Added on_schedule column to blood tests table.
Bug fixes (20+)
baselineDecay ReferenceError in chart — function was out of scope in _setupDoseSpikes
SQLite int identity check — 1 is not True evaluates to True; switched to truthiness checks
UTC→local timezone across coordinator, calendar, const.py, and JS card (setHours not setUTCHours)
Calendar phase offsets ignored — now reads from config and anchors correctly
compute_suggested_regimen dead loop — removed unnecessary variable, returns directly