Repository navigation
[WIP] Upload progress bar now displays informations about uploads... - #10326
luckydonald wants to merge 11 commits into
Conversation
…kB of 3MB) and the current speed.
There was a problem hiding this comment.
Please use l10n here, e.g. t('files', 'Uploading…');
There was a problem hiding this comment.
@LukasReschke Do I need to implement this somewere in l10n ?
There was a problem hiding this comment.
Nope. ownCloud will do all the magic for you then. The daily cronjob will extract the translation and add it to Transifex.
If the correct message is still shown in English you can be quite sure that it did work properly :-)
|
Thanks a lot for your contribution! Contributions to the core repo require a signed contributors agreement http://owncloud.org/contribute/agreement/ Alternatively you can add a comment here stating that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
There was a problem hiding this comment.
l10n here too:
p($l->t('Uploading…'));|
Very good! 👍 Just fix what @LukasReschke commented. :) |
|
@luckydonald You can fix these things in this PR by just pushing a new commit to your forked repository. Thanks a lot for your work - awesome! Additionally we need your statement on this:
|
|
cc @owncloud/designers |
|
Just tested on 7.0.1 stable and it works. 👍 |
|
The design on mobile (5" screen) is not flawless though, but maybe that´s another issue? |
|
@enoch85 haven't updated the mobile.css yet. |
|
@enoch85 should work now. |
|
@luckydonald nice addition! Can you cut the »mb/s« info though – it’s a bit too technical. Maybe just show it as tipsy tooltip when hovering the »5 MB of 100 MB« line. |
|
@luckydonald we need your contribution agreement or these changes with MIT license - THX |
Not easily, because the "mb" part comes from humanFileSize() and I just add the "/s" part. |
|
@jancborchardt Regarding tooltips: does they work on mobile devices? Do we have a library for that? |
|
Well, |
|
Was just searching for exactly that feature because I am really missing some indicators in Owncloud when uploading files - I don't see how many files are uploaded, how long it will take, how fast my internet connection is (or if I have a network problem) and so on. I like how it is implemented at mega.nz for example. So it would be great if someone could support luckydonald with this to get it in next releases! |
|
I am too afraid to touch that test stuff, basically because I have no idea what to do. |
There was a problem hiding this comment.
I think we can now use momentjs for that which is included in core, see http://momentjs.com/
|
@luckydonald needs rebasing due to conflicts. Let me know if you need help. Also, if I can provide you with a skeleton for the unit tests, would you be able to write them ? (it looks like this https://github.com/owncloud/core/blob/master/apps/files/tests/js/fileUploadSpec.js#L95 I can take care of the hardest part which is setting up the base code for the tests to simulate upload until it reaches your function (the one that have several code paths that needs testing). |
|
another idea would be to move the code that does the complex calculation into a separate function OC.Upload.calculateTime(...). Then the unit test could be written for only testing that function. |
|
@PVince81 Yes, please help (if you ask me). Would really like this in 8.2. |
|
@pvince yeah, that would be probably better to separate the calculation. I copied the calculation part from the desktop application, without in-depth understanding of the math behind that. |
|
@PVince81 I guess because of the latest development a rebase is out of question - right? Can we revive these changes somehow? |
|
The problem where is hanging is I have no clue on how to write tests. |
|
I was hoping to maybe integrate this later with the Webdav upload: #21237 |
|
Later as in 9.1 because I don't have time to finish webdav upload unfortunately. Also my branch cleans up the upload code which makes it easier to write tests. |
|
@luckydonald We can merge this without unit tests. Can you please send a contributor agreement or state here in github that that this is MIT licensed? |
|
I think I already stated that before via Email, but here you go again: |
|
Here we go, I rebased this for you and resolved the conflicts. Please go there and review it, then we can merge this for 9.1. |
|
Thanks a lot @luckydonald :) Sorry, that this took so long :( |
|
I couldn't get around to help here, too, so thats no problem 😄 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |


Upload progress bar now displays informations about uploads, uploades size (e.g. 12kB of 3MB) and the current speed.
Making this PR for this: #8105
Here is a live test:
user: test
pw: bla
http://flutterb.at/owncloud-testserver
should replace #10324