mirror of
https://github.com/carey314/mio-plugin-worker.git
synced 2026-08-10 07:04:32 +00:00
New cross-cutting metric: each focus phase accumulates SystemIdle seconds > 30s, then on phase end computes quality = 10 × (1 - idle/total). Today's average is published as pomodoroQualityTodayAvg and rendered as a third stat card in PomodoroView. Rationale: pomodoro phases counted but not graded conflate "actually focused 25min" with "started the timer, opened YouTube, came back." The idle accumulator catches Slack/IDE-switch/AFK distractions. Threshold > 30s drops "I'm thinking about the algorithm" false positives (most code-think pauses last <30s, the user still moves the mouse / scrolls / glances). Score color: ≥8 lime, ≥5 tomato, <5 alertRed. Em-dash when n=0. Persisted as [String: [Double]] (date → list of quality scores) so day rollover preserves history for future trend chart. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| ClockoutView.swift | ||
| ExpandedView.swift | ||
| PomodoroView.swift | ||
| SitView.swift | ||
| Theme.swift | ||
| WaterView.swift | ||
| WeekendView.swift | ||