feat: show time until usage window reset in notch usage bars
Description
The usage cache already stores resetsAt for both the five hour and seven day quota windows, and BuddyTabView already contains a formatResetTime helper, but it was never wired into the UI, so the open notch only shows utilization percentages. This PR appends the reset countdown to the UsageBar detail label:
Session 3% · 4h 52mWeekly 23% · Thu 8 PM(existing helper falls back to day + hour when more than 24h away)
When resetsAt is missing the label falls back to the current percent-only format.
Type of change
- Bug fix
- New feature
- Enhancement
- Documentation
- Chore (build, CI, refactor)
Checklist
- I have tested this on a macOS device
- My code follows the existing style of this project
- I have updated documentation if needed
- This PR is focused on a single change
Testing notes, in the spirit of the AI tool policy: this change was written with AI assistance and human-reviewed. The data path (usage-cache.json populated with resetsAt for both windows, rendered through formatResetTime) was verified against a live Buddi install on macOS 26.5 with an external display notch. I do not have a local Xcode release build of the full app, so I am relying on CI for build verification; happy to iterate if anything fails.
Screenshots
Label change only: the usage bar detail goes from 3% to 3% · 4h 52m.