Skip to content

Fix dynamic total for previous days#173

Merged
rickykresslein merged 1 commit intounobserved-io:mainfrom
archer-321:fix/dynamic-total-new-day
Dec 11, 2025
Merged

Fix dynamic total for previous days#173
rickykresslein merged 1 commit intounobserved-io:mainfrom
archer-321:fix/dynamic-total-new-day

Conversation

@archer-321
Copy link
Copy Markdown
Contributor

While using the non-GTK rewrite of Furtherance, I encountered the following bug when using the "dynamic total" setting:

When starting or restarting a task, the current running timer would incorrectly increase the total time of the previous day if the current task was the first task of the day. This bug was caused by the timer implementation that would always provide the current running timer when rendering the first row of the history view. However, Furtherance doesn't render a row for the current day if no tasks have been recorded (i.e. have ended), so the first row would point to a previous day.

Fix the bug by comparing the row's date with the start time of the current running task instead of counting the rendered rows.

Testing

To test this patch using an empty database, manually create a task for the previous day and then start an active task. With the patch applied, the total time for the previous day should no longer increase. Next, stop the active task and start another active task. This time, the total time for the current day should increase.


Thank you for creating Furtherance! It's a tool I'm using daily to keep track of various tasks!

Only add the running timer to the daily total of a row in the task
history UI if the row's date matches the current running task's start
date.

Previously, the running timer would be added based on the index of the
history row. This meant that the first task of the day would incorrectly
increment the previous day's total, as the row for the current day is
only added once the running timer is stopped.
@archer-321
Copy link
Copy Markdown
Contributor Author

Hi, @rickykresslein, sorry for the ping! I'm in no way trying to be impatient, but I was wondering whether you've received notifications for this PR and #174.

Thank you again for creating this tool! It's an essential part of my everyday workflow.

@rickykresslein
Copy link
Copy Markdown
Member

Hi, @archer-321. Sorry for how long it's taken me to get to this. I should finally have a bit of time to dedicate to Furtherance soon, so I promise I will get to this. Thanks for your patience.

@rickykresslein rickykresslein merged commit 2dcf3bb into unobserved-io:main Dec 11, 2025
@rickykresslein
Copy link
Copy Markdown
Member

Looks good, and thank you so much for your patience and for helping to make Furtherance better! This will be in the next release, which will use Iced 0.14 and should be coming pretty soon.

@archer-321 archer-321 deleted the fix/dynamic-total-new-day branch December 11, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants