-
Notifications
You must be signed in to change notification settings - Fork 806
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
Add some extra syncing details to the tray icon tooltip #7057
Add some extra syncing details to the tray icon tooltip #7057
Conversation
adding @nextcloud/designers for feedback. |
fefa307
to
ce63577
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nilsding thanks for your contribution! :) Small piece of feedback:
I assume the first "Nextcloud" in the text refers to the app name, and the second to the folder name? Considering that this is the default and it makes the text a bit complex, we could leave the first "Nextcloud: Folder" part out? So basically show it like in your Windows example, only referring to the folder name directly:
Nextcloud: Syncing 19 MB (3 minutes left)
Where "Nextcloud" is the folder name.
Hey @jancborchardt, thanks for the feedback :D Getting rid of the Lines 569 to 572 in 99aa255
I think we could keep it for the Windows platform though, as it will display a summary of everything anyway. On other platforms the tooltip can be more even more detailed, e.g. display the sync status of all possible folder sync configurations (and on macOS even the accounts using the VFS), e.g. I think in the case of more than one active sync configuration it'd be better to display the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in the case of more than one active sync configuration it'd be better to display the Folder prefix too, just to be extra clear. And if there's only one sync configuration, that prefix can be dropped entirely. What do you think? :)
I would say the "Folder" prefix is not needed in either case, as people set up the connections. But I'm fine either way. :)
ce63577
to
c9fbcec
Compare
@nilsding looks great now! Only a super small detail, we can shorten the time display from "3 minutes 15 seconds remaining" to "3:15 minutes remaining" But it's also fine to do it in a follow-up if it just uses some desktop native time format. |
Sadly there is no utility function to convert the time in milliseconds to a short time like I also added some handling for the special case when the estimated ETA is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks 😄
please have a look at my inline comments
@mgallien thanks for the review :) re. the app name prefix on Windows I'm waiting on Jan's opinion first -- if neither of us have a strong opinion about that I'll just drop that override altogether |
I would just drop it, we usually try to keep the same between the 3 platforms unless there is specific guidelines saying otherwise. |
ah, good to know. Will remove it then :> |
239faec
to
9dddad5
Compare
just cleaned up the commits a bit and rebased on top of |
9dddad5
to
a5fe49d
Compare
@nilsding thanks again 😄 |
/backport to stable-3.14 |
a5fe49d
to
233b7e0
Compare
There was some unused code that updated some status bar text -- this is now part of the tooltip during syncing. Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
233b7e0
to
8f705e5
Compare
This pull request adds some more details to the tray icon tooltip text.
There was some unused code that updated some status bar text, so I opted to re-use that. As of now it displays what the old code did -- the file size to be synced and the estimated time left if applicable.
On my Linux (KDE) system it will display that information per folder:
On Windows it will only display if there is only one folder to be synced. The tooltip message will roughly look like that (still need to check that it doesn't get truncated):