| | | 1 | | @using Pomodoro.Web.Models |
| | | 2 | | @using Pomodoro.Web.Pages |
| | | 3 | | |
| | | 4 | | <div class="weekly-summary-section"> |
| | | 5 | | <div class="section-header"> |
| | | 6 | | <h2>Daily Summary</h2> |
| | | 7 | | </div> |
| | | 8 | | <div class="weekly-stats"> |
| | | 9 | | <div class="stat"> |
| | 108 | 10 | | <span class="stat-value">@FormatFocusTime(CurrentStats?.FocusMinutes ?? 0)</span> |
| | | 11 | | <span class="stat-label">Minutes Focused</span> |
| | | 12 | | </div> |
| | | 13 | | <div class="stat"> |
| | 108 | 14 | | <span class="stat-value">@(CurrentStats?.PomodoroCount ?? 0)</span> |
| | | 15 | | <span class="stat-label">Pomodoros</span> |
| | | 16 | | </div> |
| | | 17 | | <div class="stat"> |
| | 108 | 18 | | <span class="stat-value">@(CurrentStats?.TasksWorkedOn ?? 0)</span> |
| | | 19 | | <span class="stat-label">Tasks Worked On</span> |
| | | 20 | | </div> |
| | | 21 | | </div> |
| | | 22 | | </div> |
| | | 23 | | |
| | | 24 | | @code { |
| | | 25 | | [Parameter] |
| | 432 | 26 | | public DailyStatsSummary? CurrentStats { get; set; } |
| | | 27 | | |
| | | 28 | | [Inject] |
| | 408 | 29 | | protected HistoryPagePresenterService HistoryPagePresenterService { get; set; } = default!; |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Format focus time for display |
| | | 33 | | /// </summary> |
| | | 34 | | internal string FormatFocusTime(int minutes) |
| | 110 | 35 | | { |
| | | 36 | | // DIAGNOSTIC: Check if HistoryPagePresenterService is null |
| | 110 | 37 | | if (HistoryPagePresenterService == null) |
| | 4 | 38 | | { |
| | 4 | 39 | | return minutes.ToString(); |
| | | 40 | | } |
| | 106 | 41 | | return HistoryPagePresenterService.FormatFocusTime(minutes); |
| | 110 | 42 | | } |
| | | 43 | | } |