Skip to content

feat: improve time display and add daily averages#615

Merged
sheepzh merged 3 commits intosheepzh:mainfrom
mrfragger:feature/improve-time-display
Nov 11, 2025
Merged

feat: improve time display and add daily averages#615
sheepzh merged 3 commits intosheepzh:mainfrom
mrfragger:feature/improve-time-display

Conversation

@mrfragger
Copy link
Contributor

@mrfragger mrfragger commented Nov 11, 2025

Adds daily average calculations for both Duration and Visits in the popup statistics. refer to #614

  • Changes format from 22 h 15 m 33 s to 22h 15m 33s for cleaner display
  • Shows average per day in parentheses (3h 15m per day on average))
  • Calculates based on actual days with recorded data, not total date range span
  • Doesn't show duration/visit averages for Today/Yesterday since they equal the total
  • Removes .0 from whole numbers in visit counts (shows 2 instead of 2.0 but 2.5 remains 2.5)
  • Reordered duration dropdown so Yesterday appears right after Today

- Remove spaces before time units (22h 15m instead of 22 h 15 m)
- Add daily average in parentheses for both Duration and Visits
- Calculate averages based on actual days with data, not total date range
- Skip showing averages for Today and Yesterday (redundant for single days)
- Remove unnecessary decimal places from whole number visit counts
- Reorder duration menu: Yesterday now appears after Today
@sheepzh
Copy link
Owner

sheepzh commented Nov 11, 2025

@mrfragger pls check the CR comment.

Removes .0 from whole numbers in visit counts (shows 2 instead of 2.0 but 2.5 remains 2.5)

btw I dont agree to change this. 2.0 differs mathematically from 2. it conveys precision, especially meaningful in average scenarios.

@sheepzh sheepzh merged commit e59e68f into sheepzh:main Nov 11, 2025
2 checks passed
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