ActivityWatch / activitywatch

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

Questions on time format in timeline and preventing pop-up #891

Open KarlRW opened 1 year ago

KarlRW commented 1 year ago

Set time format and remove pop-up permanently (see screenshots)

Issue

Questions: 1 - In the timeline view. Is there a way to set the time format to be AM/PM instead of 24 hours? firefox_TPj5sRImjG

2 - There is a pop-up that I want to remove because its the same info over and over. firefox_4GUMWINJw4

KarlRW commented 1 year ago

Can we add the good first issue tag to this? I found the alert() in the code and its seems like a fun/easy fix. I might work on it myself when I have time to set up a local version.

Suggested fix: Just get rid of the alert (feel like its not something that is supposed to be used in production anyway) and replace it with the html warning tag you use in other parts of the page. You can use local browser storage to track if the user wants to see the warning. Another option is to have the alert triggered when someone clicks "Save" after making an edit. Since that's the use case that you are trying to warn users about.

Why I care I use the pop-up a lot to get the exact time an activity started / stopped. Its much easier to read than in the timeline. I'm never clicking it to make changes. I feel like the alert is there because its assumed that the only reason someone clicks on an item in the timeline is to edit it which I have a feeling is not true for most users. image