Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show remaining time on a task on the tray #4156

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

panoramix360
Copy link
Contributor

@panoramix360 panoramix360 commented Mar 18, 2025

Description

The idea is to show the remaining time of a task on the tray icon at the top.

Issues Resolved

List any existing issues this PR resolves
#3091

When you play a task that has an estimate time, it shows the remaining time

image

When you play a task that does not have an estimate time, it shows the time spent on the task until now

image

When the user has the Pomodoro timer enabled, it shows the rest of the pomodoro session:

image

cc: @johannesjo @9z0

@panoramix360
Copy link
Contributor Author

I created this PR as a draft so we can test on other environments and see what happens here.

Can you guys test on Linux if possible? I'll test this on Windows.

I didn't implemented the timer when the Pomodoro is enabled, do you think that's a good thing to have? I'll probably need to understand a little how can I add this to get the current pomodoro timer on the event process of the Store/dispatch.

@panoramix360
Copy link
Contributor Author

Just manage to add the Pomodoro timer on the tray timer when the pomodoro is enabled! yay!

image

The only issue is, the tray timer seem to be slower than the one inside the application, sometimes they are not totally in sync, I don't know if this is huge problem.

but since I never used the ngrx, @johannesjo can you review the code and see if I messed up?

Thank you!

@panoramix360 panoramix360 marked this pull request as ready for review March 18, 2025 23:49
@johannesjo
Copy link
Owner

Thanks for the changes! On gnome there is still nothing shown unfortunately. Maybe we could try using something like this:

https://www.npmjs.com/package/@girs/node-appindicator3-0.1

?

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