-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
Describe the bug
The Reports feature charts are not displaying data correctly. Charts show 0 counts for all periods (Daily, Weekly, Monthly) even when there are completed and pending tasks. Additionally, the Weekly report uses an incorrect date range calculation.
To Reproduce
Steps to reproduce the behavior:
- Go to
http://localhost:5173/home - Ensure you have tasks with various statuses (completed, pending)
- Click "Show Reports" button
- See that all charts display 0 for both "Completed" and "Ongoing"
- Weekly report label says "This Week" but actually calculates last 7 days
Expected behavior
- Charts should correctly display the count of completed and ongoing tasks for each period
- Weekly report should show tasks from the start of the current week (Sunday) to today
- Completed tasks should be counted by their end date, not
modifieddate
Video
Screen.Recording.2025-12-25.at.3.07.06.PM.mov
Root cause
- Taskwarrior dates use format
20241215T130000Zwhich was not being parsed correctly - Weekly calculation used
sevenDaysAgoinstead ofstartOfWeek - Task filtering used
modifieddate instead of end date for completed tasks
Desktop (please complete the following information):
-
OS: macOS
-
Browser: Chrome
-
Version: Latest
-
I want to work on this issue.
Metadata
Metadata
Assignees
Labels
No labels