Skip to content

[WIP] Upload progress bar now displays informations about uploads... - #10326

Closed
luckydonald wants to merge 11 commits into
owncloud:masterfrom
luckydonald:Superduper-Progressbar-branch-thingie
Closed

luckydonald wants to merge 11 commits into
owncloud:masterfrom
luckydonald:Superduper-Progressbar-branch-thingie

Conversation

@luckydonald

Copy link
Copy Markdown
Contributor

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

Comment thread apps/files/js/file-upload.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please use l10n here, e.g. t('files', 'Uploading…');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@LukasReschke Do I need to implement this somewere in l10n ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 :-)

@ghost

ghost commented Aug 10, 2014

Copy link
Copy Markdown

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/

Comment thread apps/files/templates/list.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

l10n here too:

 p($l->t('Uploading…'));

@enoch85

enoch85 commented Aug 10, 2014

Copy link
Copy Markdown

Very good! 👍

Just fix what @LukasReschke commented. :)

Comment thread apps/files/templates/list.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wrong indentation

@LukasReschke

Copy link
Copy Markdown
Contributor

@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:

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/

@enoch85

enoch85 commented Aug 10, 2014

Copy link
Copy Markdown

cc @owncloud/designers

@luckydonald

Copy link
Copy Markdown
Contributor Author

@enoch85

enoch85 commented Aug 10, 2014

Copy link
Copy Markdown

Just tested on 7.0.1 stable and it works. 👍

@enoch85

enoch85 commented Aug 10, 2014

Copy link
Copy Markdown

The design on mobile (5" screen) is not flawless though, but maybe that´s another issue?

@luckydonald

Copy link
Copy Markdown
Contributor Author

@enoch85 haven't updated the mobile.css yet.

@luckydonald

Copy link
Copy Markdown
Contributor Author

@enoch85 should work now.

@jancborchardt

Copy link
Copy Markdown
Contributor

@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.

@jancborchardt jancborchardt added this to the 2014-sprint-01-current milestone Aug 11, 2014
@DeepDiver1975

Copy link
Copy Markdown
Contributor

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@luckydonald we need your contribution agreement or these changes with MIT license - THX

@luckydonald

Copy link
Copy Markdown
Contributor Author

@jancborchardt

cut the »mb/s« info

Not easily, because the "mb" part comes from humanFileSize() and I just add the "/s" part.
With a changing units it doesn't seem wise to hide them away.
So you don't know if 1.0 is mb or kb.

@luckydonald

Copy link
Copy Markdown
Contributor Author

@jancborchardt
Oh, misunderstood that.
I think the speed it is a nice number to look at. It will be a frequently changing number, while 2,3 GB will not change soon. It will express "here is happening something!"

Regarding tooltips: does they work on mobile devices? Do we have a library for that?
like displaying something like that, on touch?
2014-08-11 14_17_20-cssarrowplease

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.2-next, 8.1-current Apr 2, 2015
@luckydonald

Copy link
Copy Markdown
Contributor Author

Well,
I am actually avoiding grappling with the big topic 'unit tests' at the moment...

@ts78

ts78 commented Jun 10, 2015

Copy link
Copy Markdown

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!

@luckydonald

Copy link
Copy Markdown
Contributor Author

I am too afraid to touch that test stuff, basically because I have no idea what to do.
Maybe this could be done by someone having more experience with that.
Thats why there is no progress.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@PVince81

PVince81 commented Jul 3, 2015

Copy link
Copy Markdown
Contributor

@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).

@PVince81

PVince81 commented Jul 3, 2015

Copy link
Copy Markdown
Contributor

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.

@enoch85

enoch85 commented Jul 3, 2015

Copy link
Copy Markdown

@PVince81 Yes, please help (if you ask me). Would really like this in 8.2.

@luckydonald

Copy link
Copy Markdown
Contributor Author

@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.

@MorrisJobke MorrisJobke removed their assignment Aug 25, 2015
@jancborchardt jancborchardt modified the milestones: 9.0-next, 8.2-current Sep 15, 2015
@DeepDiver1975

Copy link
Copy Markdown
Contributor

@PVince81 I guess because of the latest development a rebase is out of question - right?

Can we revive these changes somehow?

@luckydonald

@luckydonald

Copy link
Copy Markdown
Contributor Author

The problem where is hanging is I have no clue on how to write tests.

@PVince81

PVince81 commented Feb 3, 2016

Copy link
Copy Markdown
Contributor

I was hoping to maybe integrate this later with the Webdav upload: #21237

@PVince81

PVince81 commented Feb 3, 2016

Copy link
Copy Markdown
Contributor

Later as in 9.1 because I don't have time to finish webdav upload unfortunately.
That branch still uses blueimp so the code should be reusable.

Also my branch cleans up the upload code which makes it easier to write tests.

@PVince81 PVince81 modified the milestones: 9.1-next, 9.0-current Feb 11, 2016
@karlitschek

Copy link
Copy Markdown
Contributor

@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?
@rullzer Can you help with rebase?

@luckydonald

Copy link
Copy Markdown
Contributor Author

I think I already stated that before via Email, but here you go again:
I confirm the MIT for this contribution.

@PVince81

Copy link
Copy Markdown
Contributor

Here we go, I rebased this for you and resolved the conflicts.
Moved to a separate PR for CI: #24605

Please go there and review it, then we can merge this for 9.1.
Thanks!

@PVince81 PVince81 closed this May 12, 2016
@MorrisJobke

Copy link
Copy Markdown
Contributor

Thanks a lot @luckydonald :) Sorry, that this took so long :(

@luckydonald

Copy link
Copy Markdown
Contributor Author

I couldn't get around to help here, too, so thats no problem 😄

@lock

lock Bot commented Aug 6, 2019

Copy link
Copy Markdown

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.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.