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

Implement the not-uploaded overlay and re-upload click event for Captures #321

Merged
merged 4 commits into from
Dec 10, 2020

Conversation

shc261392
Copy link
Contributor

Enhancements

  • Change data flow to allow undefined asset so that upload failure doesn't prevent the view from updating.

  • Display semi-transparent white overlay and error icon when upload fails. Clicking the overlay triggers re-uploading.

  • Display uploading spinner when re-uploading.

Limitations

  • The user can only re-upload 1 photo at a time. During the upload, tapping the other upload-error photos does nothing.

  • When uploading the photo in the normal flow, the user would see the upload error first (after the proof is added to the repository but before the asset is added to the repository)

It seems to me that trying to remove these limitations without adding a persistent upload state for Proof would make the component data flow very dirty. Feature-wise I believe the current limitation is acceptable so maybe we could improve it later, but if there's any quick way to improve the implementation or remove the limitations I'd be glad to hear it and make change accordingly.

tiles.

- Display semi-transparent white overlay and error icon when upload
  fails

- Use currentUploadingProofHash to display single uploading spinner and
  forbid concurrent re-uploads.

- Only enable router link if asset is valid. Otherwise trigger re-upload
  when the user clicks the tile.

Signed-off-by: James Chien <[email protected]>
@shc261392 shc261392 requested a review from seanwu1105 December 9, 2020 10:13
@seanwu1105 seanwu1105 added this to the beta7.3 milestone Dec 9, 2020
@seanwu1105 seanwu1105 added enhancement New feature or request workaround Fixed with a workaround labels Dec 9, 2020
src/app/pages/home/home.page.scss Outdated Show resolved Hide resolved
@shc261392 shc261392 requested a review from seanwu1105 December 10, 2020 01:24
@seanwu1105 seanwu1105 merged commit b27d184 into develop Dec 10, 2020
@seanwu1105 seanwu1105 deleted the feature-handle-upload-failure branch December 10, 2020 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request workaround Fixed with a workaround
Projects
None yet
Development

Successfully merging this pull request may close these issues.

出現 error 時照片不會被存下 Flow of the Capture upload
2 participants