Prior: clockoutRemainingSec rolled forward to tomorrow the moment
target <= now, so the panel jumped 1s → 86399s with no observable
"zero" — the most expected moment of the day was silent.
Now:
- clockoutRemainingSec returns 0 when past today's clockout (sits
at 0 until midnight rolls the calendar component)
- WorkerStore detects the >0 → 0 edge in tickFire, fires per-day-
deduped celebration (notification + Glass × 3 + panel banner ~5s)
- SoundPlayer.playClockoutCelebration: Glass.aiff × 3 with 0.6s gap
(joyful 1.8s shot, not the sit Morse's 15s nag)
- ClockoutView overlays a lime→tomato gradient banner driven by
store.clockoutCelebrationActive
- tipText rewrite — old text said "不会响铃" which contradicts
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The UN notification ding is one short beep — easy to miss in a
meeting. For sit alerts, repeat the system Morse tone (0.7s
staccato "S O S") at 1Hz for 15 ticks, layered on top of the
notification + dock bounce.
- new: SoundPlayer.swift — NSSound-based repeating tone with stop()
- WorkerStore.tickFire: trigger SoundPlayer.playMorseSitAlert(count: 15)
alongside the existing notify() call
- WorkerStore.sitStop: silence in-flight alert when user stops monitoring
Uses /System/Library/Sounds/Morse.aiff — shipped on every macOS,
no resource bundling needed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>