mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
A taken intake whose write named (or snapped near) a slot still in the future was attributed to that slot and rendered as taken before its time — a late morning dose collapsing onto the evening slot of a twice-daily med. The slot resolver now takes an isTakenWrite flag and a now reference: a taken write skips any candidate slot more than a small clock-skew grace into the future, so it snaps to a current/past slot or keeps its own row. Pending sync echoes are unaffected and still map to future slots.