feat: started working on auto refresh of activity page
Had this in my working tree for along time. Not ready and not sure if it's a good idea, but thought I should open a PR for it regardless.
Codecov Report
Merging #255 (96de709) into master (23b2074) will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## master #255 +/- ##
======================================
Coverage 4.43% 4.43%
======================================
Files 21 21
Lines 969 969
Branches 94 94
======================================
Hits 43 43
Misses 869 869
Partials 57 57
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 23b2074...96de709. Read the comment docs.
Personally I wouldn't care about an auto refresh every 30s, especially considering that weekly/monthly queries are very demanding.
Maybe if I have an activitywatch tab open which I go back to after an hour it would be cool if it reloaded, but I can also see how it could be annoying.
A possibly less demanding option is to have a text field "UI is outdated" that appears next to Refresh button if data has not been refreshed for past 5 minutes, thus letting user know they should Refresh. That said, I can see a use case for the auto-refresh setting if somebody has the webpage in view/on another monitor and wants to see their activity live.