ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
12.65k stars 565 forks source link

Monthly Stats Loading Issue: Dashboard gets stuck on loading and fails to display monthly statistics #1099

Open Harshit28j opened 2 months ago

Harshit28j commented 2 months ago

I have encountered a bug in ActivityWatch where the monthly statistics section of the dashboard fails to load and gets stuck on a loading. This issue occurs consistently when attempting to view monthly stats,

Steps to Reproduce:

  1. Open ActivityWatch dashboard and go to activity.
  2. Change the query range from day to month.
  3. Observe the loading that appears.
  4. Wait for an extended period (e.g., 5 minutes), but the stats do not load.

Environment:

Expected Behavior: On accessing the Monthly query, the dashboard should display any available data for the month or show a message indicating that there are insufficient logs to generate monthly statistics. This would provide users with clear feedback on the status of their data.

Actual Behavior: The "Monthly query" section gets stuck on a loading, and no statistics is displayed, even after waiting for an extended period.

image

Here is the video:

https://github.com/user-attachments/assets/31ed7158-6f45-4812-a0c7-194234e3e8ac

github-actions[bot] commented 2 months ago

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏