-
Notifications
You must be signed in to change notification settings - Fork 975
Added download count/badge and progress (closes #3023) #9864
Added download count/badge and progress (closes #3023) #9864
Conversation
@timborden sorry for the super long turn-around... finally trying this out now 😄 |
5f267ea
to
85065fa
Compare
Codecov Report
@@ Coverage Diff @@
## master #9864 +/- ##
==========================================
- Coverage 52.81% 52.76% -0.06%
==========================================
Files 227 227
Lines 20192 20218 +26
Branches 3233 3236 +3
==========================================
+ Hits 10665 10668 +3
- Misses 9527 9550 +23
|
Here's how it looks on Windows: Unlike macOS, Windows doesn't have a badge with # of downloads. Looks good though! I did notice that after the download is complete, the icon in the taskbar stays green (like 100%) forever.
|
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 just re-tried and it worked great, as expected 😄 Great job on this one!
NOTE: I tried on Linux (using Ubuntu 14 with Gnome 3) and I didn't see the progress bar or any badges (it just behaved regularly). |
Congrats on your first contribution, @timborden 😄 👍 (and huge thanks!) |
Added download count/badge and progress (closes #3023)
@timborden It looks great! Looking forward to see it on board :-) |
Thanks @bsclifton and @luixxiul! (just spotted that this was merged...sorry for not picking up the earlier messages....adjusting GitHub settings now) |
Submitter Checklist:
git rebase -i
to squash commits (if needed).Closes #3023
Test Plan:
I tested manually. There didn't appear to be any unit tests for
/app/browser/updateElectronDownloadItem.js
I can add tests that check the badge count (
app.getBadgeCount
), if you think it's necessary...although it feels like we're testing electron code with thatI can write unit tests for the progress calculations, if you think it's necessary
Notes:
win
into theupdateDownloadState
andupdateElectronDownloadItem
functions....but there didn't seem to be a better way. If you've got a better approach...I'm happy to refactor.Reviewer Checklist:
Tests