| | | 1 | | namespace Pomodoro.Web.Models; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Weekly statistics summary for productivity tracking |
| | | 5 | | /// </summary> |
| | | 6 | | public record WeeklyStats |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Total focus minutes accumulated during the week |
| | | 10 | | /// </summary> |
| | 102 | 11 | | public int TotalFocusMinutes { get; init; } |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Total number of pomodoro sessions completed during the week |
| | | 15 | | /// </summary> |
| | 100 | 16 | | public int TotalPomodoroCount { get; init; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Number of unique tasks worked on during the week |
| | | 20 | | /// </summary> |
| | 65 | 21 | | public int UniqueTasksWorkedOn { get; init; } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Average focus minutes per day during the week |
| | | 25 | | /// </summary> |
| | 75 | 26 | | public double DailyAverageMinutes { get; init; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// The day of the week with the most focus time |
| | | 30 | | /// </summary> |
| | 50 | 31 | | public DayOfWeek MostProductiveDay { get; init; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Total focus minutes from the previous week |
| | | 35 | | /// </summary> |
| | 43 | 36 | | public int PreviousWeekFocusMinutes { get; init; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Percentage change compared to previous week (positive = increase, negative = decrease) |
| | | 40 | | /// </summary> |
| | 96 | 41 | | public double WeekOverWeekChange { get; init; } |
| | | 42 | | } |