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

fix: add spinner to prevent previous capture appearance #827

Merged
merged 1 commit into from
Oct 1, 2022

Conversation

marinakosova
Copy link
Contributor

@marinakosova marinakosova commented Sep 12, 2022

Description

[I used CircularProgress component provided by Material UI and I added it to the CaptureDetailDialog.js file. For the OptimizedImage component I added a new method onImageReady() to be able to check the loading of an image. Now while waiting for an image to load you will see a green spinner instead of previously selected image.]

Issue(s) addressed

What kind of change(s) does this PR introduce?

  • Bug fix

Please check if the PR fulfils these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Issue

What is the current behavior?

  • Previous capture appears while new selection loads.

What is the new behavior?

  • While loading, a spinner is shown rather than the previous capture.

Video of the new behavior

Breaking change

Does this PR introduce a breaking change?

  • No.

Other useful information

@marinakosova marinakosova requested a review from a team as a code owner September 12, 2022 19:25
@nmcharlton
Copy link
Collaborator

Hi @marinakosova, thanks for working on this. Please could you include a screen recording of this fix in action?

@marinakosova
Copy link
Contributor Author

marinakosova commented Sep 12, 2022

Hi @marinakosova, thanks for working on this. Please could you include a screen recording of this fix in action?

@nmcharlton I added a video link.

Copy link
Collaborator

@nmcharlton nmcharlton left a comment

Choose a reason for hiding this comment

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

Thanks @marinakosova, this is awesome!

@marinakosova
Copy link
Contributor Author

marinakosova commented Sep 20, 2022

Thank you @nmcharlton for approval. Should I now click "Close with comment" button?

@nmcharlton
Copy link
Collaborator

Thank you @nmcharlton for approval. Should I now click "Close with comment" button?

No, the issue will be automatically closed when I merge this PR into master. For now I'm pausing merges while we complete the microservice migration.

@nmcharlton nmcharlton merged commit c399ad4 into Greenstand:master Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Capture Details: Previous capture appears while new selection loads
2 participants