Skip to content

Conversation

@brooketopcoder
Copy link
Contributor

@brooketopcoder brooketopcoder commented Aug 1, 2022

https://topcoder.atlassian.net/browse/PROD-2740

The loading spinner was incorrectly implemented and needs to be refactored. Please verify the spinner correctly displays if the data doesn’t load right away in the following locations:

Learn

  • viewing a certificate
  • course completed
  • course details
  • lesson
  • course outline panel
  • welcome page

Work

  • Work Details → detail
  • Bug Hunt intake form
  • Save after login (start an intake logged out then log in when you need to review and submit.)
  • Dashboard

…t from the dom; update all uses of the loading spinner so it shows/hides correctly #time 30m
@brooketopcoder brooketopcoder self-assigned this Aug 1, 2022
@testflyjets
Copy link
Contributor

@brooketopcoder I've run through all the pages and the spinner seems to work, but I'm not sure how it wasn't working before, so it's not clear to me if what I'm seeing is correct. Can you clarify what I should or shouldn't see -- how was it broken before?

Copy link
Collaborator

@vas3a vas3a left a comment

Choose a reason for hiding this comment

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

I feel like the LoadingSpinner's show property should default to true. This way when we add <LoadingSpinner /> it's visible (if it's hidden without specifying a param, eg show={false}, it is confusing).

Base automatically changed from PROD-2738_ssl to dev August 2, 2022 15:23
@brooketopcoder
Copy link
Contributor Author

I feel like the LoadingSpinner's show property should default to true. This way when we add <LoadingSpinner /> it's visible (if it's hidden without specifying a param, eg show={false}, it is confusing).

I totally agree. Booleans should always default to false. I will make this fix...

@brooketopcoder
Copy link
Contributor Author

@vas3a i made the changes you suggested and improved the loading UI in a couple places.

I also added some error handling bc we are getting a 500 from the dev api when trying to get course progress.

Copy link
Collaborator

@vas3a vas3a left a comment

Choose a reason for hiding this comment

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

awesome!

@brooketopcoder brooketopcoder merged commit 7eb6857 into dev Aug 2, 2022
@brooketopcoder brooketopcoder deleted the PROD-2740_loading branch August 2, 2022 20:14
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.

4 participants