Skip to content

feat: add menu bar countdown timer#25

Merged
yagizdo merged 1 commit into
mainfrom
feat/menu-bar-timer
May 29, 2026
Merged

feat: add menu bar countdown timer#25
yagizdo merged 1 commit into
mainfrom
feat/menu-bar-timer

Conversation

@yagizdo

@yagizdo yagizdo commented May 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Show remaining time next to the menu bar icon with two configurable modes: full timer (always visible) and countdown (last N minutes only)
  • Timer updates instantly on preference/schedule changes instead of waiting for the 10-second polling loop
  • Sub-second floating-point remainders floored before ceil-rounding to prevent off-by-one minute display (e.g. 60.01s showing "2m")

Test plan

  • Enable "Show Full Work Timer" in Settings > General and verify timer appears immediately next to the menu bar icon
  • Disable the setting and verify only the countdown appears in the last N minutes
  • Change "Countdown Start" picker value and verify the threshold updates
  • Verify timer switches to seconds format (0:XX) under 60 seconds remaining
  • Verify timer resets after break completes/skips
  • Run swift test --filter BreakProgressTests in StandLockKit — all 24 tests pass

Show remaining time next to the menu bar icon. Two modes:
- Full timer: always visible, toggled via Settings > General
- Countdown: appears only in the last N minutes before a break

Timer updates instantly on preference changes and break scheduling
instead of waiting for the 10-second polling loop. Sub-second
floating-point remainders are floored before ceil-rounding to
prevent 60.01s from displaying as "2m".
@yagizdo yagizdo merged commit fe1d8fd into main May 29, 2026
1 check passed
@yagizdo yagizdo deleted the feat/menu-bar-timer branch May 29, 2026 22:38
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.

1 participant