-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Display current stopwatch in navbar #14122
Conversation
|
I would just display a single clock icon and make a hover dialog similar to what was done in #13977 to display the running trackers. Keep colors neutral, e.g. link to issue left aligned, time right-aligned. |
Since #10533 there can be only one stopwatch. |
Missed that. |
With this new functionality it would make managing multiple stopwatches much easier, I wouldn't be opposed to reverting #10533, or maybe implementing it as an config option as suggested in that PR? Personally I cant really see a use case for multiple tracking. Could the current sidebar stopwatch message be removed once this navbar version is implemented? Especially if multiple stopwatches get reimplemented as its a bit confusing, see #10529 |
I agree with you. I don't think #10533 needs to be reverted. A config option will make the things complicated. |
CI failed is related. |
I changed the UI with suggestions by @silverwind, I think it's good now: @bobemoe As long as there is a single timer, that notice should stay. Also I can certainly see usecases for multiple timers: tracking a specific issue for billing, and the general topic you're spending time with for personal overview. If we re-enable that, this will be in a separate PR. edit: not sure what's going on with the test failure, seems unrelated to my changes? 🤔 |
Looks nice. Can we maybe also live-update the displayed time in the dialog, using JS loop that updates it every second? |
I added clientside live updates to the displayed time, but it's somewhat janky due to client/serverside synchroniziation / drift. |
Codecov Report
@@ Coverage Diff @@
## master #14122 +/- ##
=======================================
Coverage 41.86% 41.87%
=======================================
Files 745 745
Lines 79837 79866 +29
=======================================
+ Hits 33421 33440 +19
- Misses 40893 40899 +6
- Partials 5523 5527 +4
Continue to review full report at Codecov.
|
Adds link to currently tracking issue into navbar
This also requires to extend the API response for stopwatches with the current tracked duration
fixes #4378