Skip to content

Say "1 second" when the countdown has one second left - #3

Merged
dlev02 merged 1 commit into
mainfrom
claude/issue-2
Oct 21, 2026
Merged

dlev02 merged 1 commit into
mainfrom
claude/issue-2

Conversation

@dlev02

@dlev02 dlev02 commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

What was wrong

The countdown ring's VoiceOver value was built as "<n> seconds" for every value, so with one second left it read "1 seconds".

What changed

  • SessionModel.timeSpoken (next to timeLabel, using the same rounding) returns "1 second" for one second and "N seconds" otherwise, including 0.
  • MainView's countdown uses it as its accessibility value.

Tests

  • Added SessionModelTests.spokenTime, covering 1, 0.4 (rounds up to 1), 0, 2 and 48 seconds.
  • swift test passes on macOS (13 tests).

Fixes #2

Fixes #2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017diME4WDitfSQCoZbFkGqr
@dlev02
dlev02 marked this pull request as ready for review October 21, 2026 21:46
@dlev02
dlev02 merged commit 8ef8035 into main Oct 21, 2026
1 check passed
@dlev02
dlev02 deleted the claude/issue-2 branch October 21, 2026 21:47
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.

VoiceOver reads "1 seconds" on the countdown

2 participants