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

Assessments Tab: loading states #23336

Merged
merged 4 commits into from Jun 26, 2018
Merged

Conversation

caleybrock
Copy link
Contributor

Summary

  • Only show script selector until everything has finished loading.
  • When actively loading, show a spinner icon.
  • Immediately set scriptId so that dropdown appears responsive, even though it make take some time for the script to finish loading.

Gif

loadingassessments

<div>
<div style={{...h3Style, ...styles.header}}>
{i18n.selectAssessment()}
{!isLoading &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not combine these into 1 !isLoading block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does look a little strange because they seem right next to each other. Styling requires the selectors to be together in one div, which means a single selector and the tables can't actually be in one element :( I think it'll be more obvious once we add more controls to the selector area.

{i18n.selectAssessment()}
{!isLoading &&
<div>
{/* Assessments */}
Copy link
Contributor

Choose a reason for hiding this comment

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

Whoa! I didn't know you could include comments like that in the return of a render!

{/* Assessments */}
<MCAssessmentsOverviewContainer />
<StudentsMCSummaryContainer />
<MultipleChoiceByStudentContainer />
Copy link
Contributor

@Erin007 Erin007 Jun 26, 2018

Choose a reason for hiding this comment

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

Just because I'm curious: Why do some of the components have MultipleChoice and some abbreviate to MC?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We might want to consider abbreviating all of them for consistency - but the MC ones got abbreviated because the component names seemed very over the top length wise.

@caleybrock caleybrock merged commit af6dab8 into staging Jun 26, 2018
@caleybrock caleybrock deleted the loading-states-assessments branch June 26, 2018 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants