1. The "Anti-Inflation" Math Fix
You updated the logic in wins.html to ensure your "days sitting" count actually matches your timestamps.
- The Edit: You swapped out four instances of Math.round for Math.floor in the date calculation code.
- The Why: You noticed a discrepancy where a win from 36 hours ago would say "1d ago" (thanks to Math.floor), but the daysSittingCount would round up and say it had been sitting for 2 days. You wanted to stop that "inflation of sitting days" so the data feels honest and consistent across the app.
2. Privacy Mode & The "One Thing" Input
You also tweaked how Privacy Mode behaves in the Tada section of the app.
- The Edit: You modified app.html to add the One Thing input and empty state text to the privacy blur list.
- The Why: You realized that while the Arena and Lab sections were blurring correctly, the specific "One Thing" you picked was still visible when Privacy Mode was toggled on. You wanted to make sure that if you’re in a public space (or just want that privacy layer), everything—including your current focus—actually stays hidden.
Note on what you kept: You intentionally kept the "9 days sitting" (.resistance-age) and habit meta (.habit-meta) unblurred in the Arena/Lab, as those classes were already excluded from the blur rules.