Commit graph

7 commits

Author SHA1 Message Date
Eugene Burmakin
03069caa48 Stats are now calculated with more accuracy by storing total minutes spent per country. 2026-01-04 19:46:15 +01:00
Eugene Burmakin
6f8bdce9f4 Update time spent calculation for country minutes in user digests 2026-01-04 19:19:38 +01:00
Eugene Burmakin
d664a10321 Move helpers for digest city progress to a helper method 2026-01-04 17:51:10 +01:00
Eugene Burmakin
348bf96bfe Rework country tracked days calculation 2026-01-04 16:42:35 +01:00
Evgenii Burmakin
ec524d64a0
Update digest calculation to use actual time spent in countries based… (#2115)
* Update digest calculation to use actual time spent in countries based on consecutive points, avoiding double-counting days when crossing borders.

* Move methods to private
2026-01-04 12:45:30 +01:00
Evgenii Burmakin
b037be3299
Update calculation of time spent in a country for year-end digest email (#2110)
* Update calculation of time spent in a country for year-end digest email

* Add a filter to exclude raw data points when calculating yearly digests.
2026-01-03 13:28:21 +01:00
Evgenii Burmakin
18b13fb915
Add yearly digest (#2073)
* Add yearly digest

* Rename YearlyDigests to Users::Digests

* Minor changes

* Update yearly digest layout and styles

* Add flags and chart to email

* Update colors

* Fix layout of stats in yearly digest view

* Remove cron job for yearly digest scheduling

* Update CHANGELOG.md

* Update digest email setting handling

* Allow sharing digest for 1 week or 1 month

* Change Digests Distance to Bigint

* Fix settings page
2025-12-28 17:33:35 +01:00