Skip to content

feat: add days+hours display format to weekly reset timer#235

Closed
jubishop wants to merge 3 commits intosirmalloc:mainfrom
jubishop:feat/weekly-reset-days-hours
Closed

feat: add days+hours display format to weekly reset timer#235
jubishop wants to merge 3 commits intosirmalloc:mainfrom
jubishop:feat/weekly-reset-days-hours

Conversation

@jubishop
Copy link

@jubishop jubishop commented Mar 14, 2026

Summary

  • Adds a new "days+hours" display format toggle (keybind y) to the weekly reset timer widget
  • Shows remaining time as 6d 12hr instead of 156hr 30m, which is more readable at the weekly time scale
  • New formatUsageDurationDaysHours() utility for days/hours formatting

Test plan

  • All 531 existing tests pass
  • New unit tests for formatUsageDurationDaysHours() covering edge cases (0hr, hours-only, days-only, days+hours)
  • New widget tests for preview rendering and live rendering in days+hours mode
  • Editor action toggle test verifying metadata and modifier text
  • Lint and type checking pass cleanly

🤖 Generated with Claude Code

Add a new "days+hours" toggle (keybind 'd') to the weekly reset timer
widget that displays remaining time as "6d 12h" instead of "156hr 30m".
This format is more readable for the weekly time scale.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jubishop
Copy link
Author

sorry one sec I cant use (d) here because its delete

jubishop and others added 2 commits March 14, 2026 16:20
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jubishop
Copy link
Author

this is very similar but not exactly the same as #228. id be happy with either.

@sirmalloc
Copy link
Owner

Went with #228, added a (h)ours toggle and defaulted to showing days.

@jubishop
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants