Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

added messages for processing phases #285

Merged
merged 1 commit into from Jul 24, 2017
Merged

added messages for processing phases #285

merged 1 commit into from Jul 24, 2017

Conversation

dannycoates
Copy link
Contributor

@dannycoates dannycoates commented Jul 24, 2017

A riff on #282. Thanks @pdehaan!

fixes #128
fixes #273
fixes #277

The main difference is the addition of the setTimeout to allow the upload-progress panel to show faster.

@pdehaan
Copy link
Collaborator

pdehaan commented Jul 24, 2017

This looks "funny" to my untrained eye:

firefox_send

Not sure if we want to hide the entire progress area when the download is complete (unless that looks too janky):

    <div class="progress-bar" id="dl-progress">
      <div class="percentage">
        <span class="percent-number"></span>
        <span class="percent-sign">%</span>
      </div>
    </div>

@pdehaan
Copy link
Collaborator

pdehaan commented Jul 24, 2017

Apart from my one nit, looks good to me. Great riff!
Feel free to kill #282.

@dannycoates
Copy link
Contributor Author

This looks "funny"

yeah. It's less funny with the 100% intact.

// For large files we need to give the ui a tick to breathe and update
// before we kick off the FileSender
setTimeout(() => {
//don't allow drag and drop when not on page-one
Copy link
Contributor

Choose a reason for hiding this comment

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

can you put this comment back with the code it belongs to:
$('body').off('drop', onUpload); line 166

@ericawright
Copy link
Contributor

I think I'd like it to start with the 0% in the center of the circle even when the other stages are being done.
other than that it's great!

@dannycoates
Copy link
Contributor Author

I think I'd like it to start with the 0% in the center of the circle even when the other stages are being done.

fixed

const totalTime = endTime - startTime;
const uploadTime = endTime - uploadStart;
const uploadSpeed = file.size / (uploadTime / 1000);
const expiration = 24 * 60 * 60 * 1000; //will eventually come from a field
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unrelated, but not sure if this can be replaced with the ONE_DAY_IN_MS const imported above.

@abhinadduri
Copy link
Collaborator

Looks good!

@dannycoates dannycoates merged commit 62989ee into master Jul 24, 2017
@dannycoates dannycoates deleted the phases branch July 31, 2017 21:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants