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

feat: torrent tab status bar #43

Merged
merged 12 commits into from
Jun 30, 2024

Conversation

aidanaden
Copy link
Contributor

@aidanaden aidanaden commented Jun 27, 2024

closes #35

adds status feedback when user adds or deletes a torrent

status bar closes after 5s (we can make it configurable in another PR)

@aidanaden aidanaden self-assigned this Jun 27, 2024
@micielski
Copy link
Contributor

Are you saying that I have to delete my precious torrents in order to test it??

rm-main/src/ui/tabs/torrents/tasks/status.rs Outdated Show resolved Hide resolved
rm-main/src/ui/tabs/torrents/tasks/status.rs Outdated Show resolved Hide resolved
rm-main/src/ui/tabs/torrents/tasks/status.rs Outdated Show resolved Hide resolved
rm-main/src/ui/tabs/torrents/tasks/status.rs Outdated Show resolved Hide resolved
rm-main/src/ui/tabs/torrents/tasks/status.rs Outdated Show resolved Hide resolved
@micielski
Copy link
Contributor

By the way, I've also noticed that these statuses don't disappear. Could you also do some time::Duration and tick magic so they disappear after 5/10secs?

@micielski micielski added the enhancement New feature or request label Jun 27, 2024
@micielski micielski added this to the 0.4 milestone Jun 27, 2024
@aidanaden
Copy link
Contributor Author

Are you saying that I have to delete my precious torrents in order to test it??

haha u can just delete a small file! add a ::sleep after the delete rpc call is sent if u want to see the spinner spin (sometimes the deletion happens so fast the loading state ends almost insantly)

@aidanaden
Copy link
Contributor Author

By the way, I've also noticed that these statuses don't disappear. Could you also do some time::Duration and tick magic so they disappear after 5/10secs?

yep sure - was thinking about this as well

rm-main/src/action.rs Outdated Show resolved Hide resolved
@aidanaden aidanaden requested a review from micielski June 27, 2024 21:19
@aidanaden aidanaden added the done This issue or pull request has been completed label Jun 27, 2024
rm-main/src/ui/tabs/torrents/task_manager.rs Outdated Show resolved Hide resolved
rm-main/src/ui/tabs/torrents/task_manager.rs Outdated Show resolved Hide resolved
rm-main/src/ui/tabs/torrents/task_manager.rs Outdated Show resolved Hide resolved
rm-main/src/ui/tabs/torrents/tasks/status.rs Outdated Show resolved Hide resolved
rm-main/src/ui/tabs/torrents/tasks/status.rs Outdated Show resolved Hide resolved
rm-main/src/ui/tabs/torrents/tasks/status.rs Outdated Show resolved Hide resolved
@aidanaden aidanaden requested a review from micielski June 28, 2024 11:56
@aidanaden aidanaden changed the base branch from main to v0.4 June 30, 2024 10:09
@aidanaden aidanaden merged commit 866ee98 into intuis:v0.4 Jun 30, 2024
6 checks passed
@aidanaden aidanaden deleted the feat-torrent-tab-status branch June 30, 2024 15:16
micielski pushed a commit that referenced this pull request Jul 4, 2024
* feat: torrent tab status bar

* chore: remove commented

* fix: compiler warnings

* feat: decrement selected torrent on delete

* feat: add/delete torrent name

* fix: warnings

* feat: cancel status bar after 5s

* fix: nits

* fix: tick nits

* fix: comments

* fix: spacing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done This issue or pull request has been completed enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add status indication with loading icon to notify user that deletion/move/etc is happening
2 participants