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

Add feedback for public page download #17160

Closed
wants to merge 2 commits into from

Conversation

MorrisJobke
Copy link
Contributor

The issue is, that once somebody click on download and the server needs some time to fetch the file from a storage, there is the possibility that the user think that nothing happens and then click again. This simply adds a feedback for the user. The issue can be simulated by adding sleep(5); to the top of downloadShare() method in apps/files_sharing/lib/controllers/sharecontroller.php.

Ref owncloud/consulting#14

Does anybody know a way to get notified, once the download actually has started - the response returned from the server? cc @PVince81 @jancborchardt

cc @owncloud/designers

@PVince81
Copy link
Contributor

I don't think it is possible, because the download is done by redirecting the page to the download URL.

@MorrisJobke
Copy link
Contributor Author

I don't think it is possible, because the download is done by redirecting the page to the download URL.

Is the scenario reasonable? Maybe I simply use the showTemporary?

@PVince81
Copy link
Contributor

You could show a notification just before doing the OC.redirect, yes.

@MorrisJobke
Copy link
Contributor Author

You could show a notification just before doing the OC.redirect, yes.

That's what this PR does ;)

@@ -133,6 +133,9 @@ OCA.Sharing.PublicApp = {
img.appendTo('#imgframe');
}

$('#download, #downloadFile').click(function (e) {
OC.Notification.show(t('files_sharing', 'Download has started. Please wait ... '));
Copy link
Member

Choose a reason for hiding this comment

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

Typographic … instead of ... please :)

Copy link
Member

Choose a reason for hiding this comment

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

:D nice

Also, no space after the … please. And simpler »Download started.« instead of »Download has started.«

@ghost
Copy link

ghost commented Jun 25, 2015

🚀 Test PASSed.🚀
chuck

@@ -133,6 +133,9 @@ OCA.Sharing.PublicApp = {
img.appendTo('#imgframe');
}

$('#download, #downloadFile').click(function (e) {
Copy link
Member

Choose a reason for hiding this comment

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

one id should be enough

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are two download buttons on that page ;)

Copy link
Member

Choose a reason for hiding this comment

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

aha - thx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • Top right
  • below the preview on single file public shares

@DeepDiver1975 DeepDiver1975 added this to the 8.2-next milestone Jun 25, 2015
@MorrisJobke MorrisJobke force-pushed the add-feedback-for-public-page-download branch from 9b7814b to 53f2ce8 Compare June 25, 2015 09:58
@MorrisJobke
Copy link
Contributor Author

@jancborchardt @LukasReschke Done

@MorrisJobke MorrisJobke force-pushed the add-feedback-for-public-page-download branch from 53f2ce8 to c14452d Compare June 25, 2015 12:24
@scrutinizer-notifier
Copy link

A new inspection was created.

@jancborchardt
Copy link
Member

Rather than putting a notification on the top of the page, we should change the icon of the download button to .icon-loading. This inline feedback is better.

(Also see how we do that in the Mail app for attachments.)

@ghost
Copy link

ghost commented Jun 25, 2015

🚀 Test PASSed.🚀
chuck

@@ -133,6 +133,9 @@ OCA.Sharing.PublicApp = {
img.appendTo('#imgframe');
}

$('#download, #downloadFile').click(function (e) {
OC.Notification.showTemporary(t('files_sharing', 'Download started. Please wait …'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Use regular three dots "..." instead of unicode three dots. Also, no space before the three dots.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Guys....decide on one way. It was requested to use the unicode ellipsis, because it is an ellipsis and not three dots ;)

@PVince81
Copy link
Contributor

PVince81 commented Jul 6, 2015

Obsoleted by #17175 ?

@MorrisJobke
Copy link
Contributor Author

Obsoleted by #17175 ?

I think I will close this one and only bring in the deduplication of the ID and then work on this once #17175 is solved ;)

@MorrisJobke MorrisJobke closed this Jul 6, 2015
@MorrisJobke
Copy link
Contributor Author

I think I will close this one and only bring in the deduplication of the ID and then work on this once #17175 is solved ;)

#17159

@MorrisJobke MorrisJobke deleted the add-feedback-for-public-page-download branch July 6, 2015 11:45
@lock lock bot locked as resolved and limited conversation to collaborators Aug 11, 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.

6 participants