aw-webui icon indicating copy to clipboard operation
aw-webui copied to clipboard

feat: started working on auto refresh of activity page

Open ErikBjare opened this issue 4 years ago • 3 comments

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.

ErikBjare avatar Feb 09 '21 16:02 ErikBjare

Codecov Report

Merging #255 (96de709) into master (23b2074) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          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 data Powered by Codecov. Last update 23b2074...96de709. Read the comment docs.

codecov[bot] avatar Feb 09 '21 16:02 codecov[bot]

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.

johan-bjareholt avatar Feb 10 '21 17:02 johan-bjareholt

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.

nicolae-stroncea avatar Feb 13 '21 18:02 nicolae-stroncea