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 file transfer timestamps in GUI #97

Open
bpozdena opened this issue Apr 5, 2023 · 6 comments
Open

Show file transfer timestamps in GUI #97

bpozdena opened this issue Apr 5, 2023 · 6 comments
Assignees

Comments

@bpozdena
Copy link
Owner

bpozdena commented Apr 5, 2023

          > We would probably also have to show the time when the event happened, which would need completely new layout, etc.

@bpozdena Funnily enough, I was working on just that earlier today, right after I opened that issue 😅 - There was space to the right of the file name, which I think is perfect for a timestamp.

I tried to turn it into a "5 minutes ago" / "2 hours ago" / "Just now" timestamp, but it would require updating the widgets' text as you scroll through them, but it would require a way to fire some kind of event as a given TaskList widget becomes visible as you scroll (i.e., updating its timestamp once it appears again in the list), and I couldn't find a way to do that.
screenshot

Originally posted by @JL102 in #96 (comment)

@bpozdena
Copy link
Owner Author

bpozdena commented Apr 5, 2023

@JL102 , I've created a separate issue for this.

I'm not able to work on this now, but in theory you would need to update the X minutes/hours/days ago timestamp periodically about once a minute via QTimer. The timestamps should also update when user scrolls the list, which should technically be doable via the valueChanged() signal

So maybe something like this would work?

self.profile_status_pages[profile].listWidget.verticalScrollBar().valueChanged.connect(<< update_timestamps >>)

To minimize CPU utilization in case there are thousands of list items, the << update_timestamps >> function should update the visible list items only (and maybe +-50 more as a scroll buffer) . Or maybe just update certain percentage of the list items based on verticalScrollBar().value().

If you get stuck, feel free to share the partial code. I can try to take another look.

@bpozdena
Copy link
Owner Author

bpozdena commented Oct 9, 2023

Also add s small icon next to the timestamp which will indicate if file was downloaded/uploaded/deleted.
ref.: #121

@JL102
Copy link
Contributor

JL102 commented Oct 9, 2023

Howdy! I'm really sorry, but I stopped using OneDrive entirely after all the frustrations I was having with its speed and limitations. When I found out that the OneDrive Linux client had to filter through ALL files due to the API's limitations (since ignored/selectively un-synced files were done client side) I switched over to a self-hosted Nextcloud server. So unfortunately, I don't really have the means (or need) to work on OneDriveGUI. But I hope it continues to go well for you!

@JL102
Copy link
Contributor

JL102 commented Oct 10, 2023

🤦Please excuse me, I didn't notice until now that you wrote this issue in April. Only saw the notification when you updated it 12 hours ago and thought you wrote the original issue on the same day.

@Smig0l
Copy link

Smig0l commented Sep 5, 2024

any ETA on the timestamps and this

Also add s small icon next to the timestamp which will indicate if file was downloaded/uploaded/deleted.

thanks!
using v1.0.3 b 150

@bpozdena
Copy link
Owner Author

bpozdena commented Sep 5, 2024

any ETA on the timestamps and this

Unfortunately, I have not had much time for this project lately. But I usually get a bit more time during winter time, so maybe Q4 2024 or Q1 2025?

I will now focus on release of GUI v1.1.0 which supports onedrive client v2.5.0. Once that is released and stable, I will try to focus on additional enhancements.

@bpozdena bpozdena self-assigned this Oct 22, 2024
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

No branches or pull requests

3 participants