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

Match Questions in Assessments Tab: Add Overview of class responses by question #28345

Merged
merged 13 commits into from May 7, 2019

Conversation

dmcavoy
Copy link
Contributor

@dmcavoy dmcavoy commented May 3, 2019

This is part 3 of Match Questions in Assessment Tab.
Part 1: #28343
Part 2: #28344

This adds a section with tables for each match question that breaks down how the class answered that question.

Screen Shot 2019-05-03 at 11 23 51 AM

If you click on the "...see full question" you can view the whole question and the answers in a dialog window.

Screen Shot 2019-05-03 at 12 10 12 PM

Hovering over a column header will show you the full text in a tooltip.

Screen Shot 2019-05-03 at 12 09 18 PM

@dmcavoy dmcavoy changed the base branch from staging to match-question-assessment-tab-part-2 May 3, 2019 15:41
@@ -104,7 +106,8 @@ class SectionAssessments extends Component {

state = {
freeResponseDetailDialogOpen: false,
multipleChoiceDetailDialogOpen: false
multipleChoiceDetailDialogOpen: false,
matchDetailDialogOpen: false
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there ever a scenario where these two dialogs are trying to be open at the same time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so. these open when you click on the see more for the question

Copy link
Contributor

@Erin007 Erin007 left a comment

Choose a reason for hiding this comment

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

just a few small clean-up suggestions. so much great work here; way to go, Dani!

@dmcavoy dmcavoy changed the base branch from match-question-assessment-tab-part-2 to staging May 6, 2019 20:31
Copy link
Member

@davidsbailey davidsbailey left a comment

Choose a reason for hiding this comment

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

great work Dani!

import {
matchQuestionWith2Pairs,
matchQuestionWith4Pairs
} from './assessmentsTestHelpers';
Copy link
Member

Choose a reason for hiding this comment

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

this is a good example a test fixture, which we are trying to move toward using more often. thanks for adding this!

@@ -0,0 +1,107 @@
/* eslint-disable react/no-danger */
Copy link
Member

Choose a reason for hiding this comment

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

this doesn't look needed. remove from here, plus wherever you copied it from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do! Going to fix on the part 4 branch and ship this PR

@@ -29,7 +29,7 @@ function calculateOpacity(answered) {
return (answered + 10) / 100;
}

class MultipleChoiceAnswerCell extends Component {
class PercentAnsweredCell extends Component {
Copy link
Member

Choose a reason for hiding this comment

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

good name!

@dmcavoy dmcavoy merged commit 89fa3b6 into staging May 7, 2019
@dmcavoy dmcavoy deleted the match-question-assessment-tab-part-3 branch May 7, 2019 18:54
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.

None yet

3 participants