()
| 486 | } |
| 487 | |
| 488 | private async updateTodayStats() { |
| 489 | if (!this.todayStatsEl) return; |
| 490 | |
| 491 | const todayLocal = getTodayLocal(); |
| 492 | const stats = await this.calculateStatsForRange( |
| 493 | startOfDay(todayLocal), |
| 494 | endOfDay(todayLocal) |
| 495 | ); |
| 496 | |
| 497 | this.renderTimeRangeStats(this.todayStatsEl, stats); |
| 498 | } |
| 499 | |
| 500 | private async updateWeekStats() { |
| 501 | if (!this.weekStatsEl) return; |
no test coverage detected