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

chore(ux): optimize progress bar #1349

Merged
merged 9 commits into from
Apr 17, 2024
Merged

Conversation

qweeah
Copy link
Contributor

@qweeah qweeah commented Apr 16, 2024

This PR

  1. Adds defensive code to avoid showing negative speed in progress bar.
  2. Calculates the download speed based on the size of transferred data in the past last seconds.

Copy link

codecov bot commented Apr 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.70%. Comparing base (7ffe63e) to head (84c4cb3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1349      +/-   ##
==========================================
+ Coverage   84.49%   84.70%   +0.20%     
==========================================
  Files         103      104       +1     
  Lines        3677     3688      +11     
==========================================
+ Hits         3107     3124      +17     
+ Misses        340      336       -4     
+ Partials      230      228       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

qweeah added 2 commits April 16, 2024 07:35
Signed-off-by: Billy Zha <[email protected]>
@qweeah qweeah changed the title fix: avoid showing negative speed in progress bar chore(ux): optimize progress bar Apr 16, 2024
qweeah added 2 commits April 16, 2024 08:00
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qweeah qweeah merged commit 2edebad into oras-project:main Apr 17, 2024
8 checks passed
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 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

Successfully merging this pull request may close these issues.

2 participants