aardappel / procrastitracker

a Windows time tracking application
http://strlen.com/procrastitracker/
483 stars 53 forks source link

How to hide the record on the bar graph #85

Open InfinityShu opened 2 years ago

InfinityShu commented 2 years ago

image I used ctrl+H to hide the away time and it was hidden on the tree view. image However, the bar graph still presents the away time. Is there a way to hide it on the bar graph?

aardappel commented 2 years ago

Sorry, I forgot to add this piece of documentation: CTRL+C opens a manual editing mode to add minutes to the selected leaf node to make corrections. in your case, you want maybe first unhide the node (CTRL+U), then enter a negative amount (e.g. -4200 for 70hrs less).

InfinityShu commented 2 years ago

image I followed the steps, whereas both the tree view and the bar graph remained the same. image I'm not sure why there are no changes.

aardappel commented 2 years ago

You need to do it with a leaf node selected (one that has no children).. I presume that is the one called Other in your case.

InfinityShu commented 2 years ago

This time I make sure that I selected the correct node. 1 2 I recorded the two attempts I had made.

aardappel commented 2 years ago

It looks like you're doing it correctly.. when I am doing it similarly, it work.. no idea why it doesn't work for you.

I suggest starting over with a file.. or if you really want this fixed, you can email me the file at aardappel at gmail dot com and I'll see what is going on :)

InfinityShu commented 2 years ago

Sure. I sent you an email with the file.

aardappel commented 2 years ago

Thanks! Your persistence made me finally figure out what the problem is, and I fixed it here: https://github.com/aardappel/procrastitracker/commit/de30262c738dd54a30ef413a96a92de41dacbad0

Not only does it now work, I changed the CTRL+C dialog to take a percentage instead of an absolute minutes delta, which should be easier to use. i.e. in your case you may want to try 20 or whatever you think is most correct.

It doesn't know which day you want to correct, so it scales all days that accumulated that node down to 20% or whatever.

A build that has the feature in it is be here: https://github.com/aardappel/procrastitracker/actions/runs/1565027116

InfinityShu commented 2 years ago

Thank you for your effort to improve the procrastitracker!