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

Mini Rubric: RubricField subcomponent #27175

Merged
merged 15 commits into from
Feb 23, 2019
Merged

Conversation

dmcavoy
Copy link
Contributor

@dmcavoy dmcavoy commented Feb 21, 2019

  • Created a sub-component that does the checkbox and details tag for each performance level of the rubric.
  • Created a sub-component that hold the teacher feedback area.
  • Made it so students do not see the feedback tab if they have been given feedback in the past but the most recent feedback has no performance or comment value.
  • Made it so student only sees the section of the feedback tab they got feedback on. For example, if there is no comment given but the rubric is filled out it will only show the rubric area.

…edback and both rubric and comment are blank
@dmcavoy dmcavoy changed the title Rubric area subcomponent Mini Rubric: RubricField subcomponent Feb 21, 2019
@davidsbailey
Copy link
Member

👀 looking...

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.

Nice changes Dani! The RubricField extraction really cleans things up!

I am feeling some guilt about the guidance I've given you on extracting the CommentArea, because what you've ended up extracting there does not greatly reduce the amount of code needed in this file to define the comment area. Sorry about that 😳 I think these changes still look fine, since there's nothing wrong with having this extracted, and I agree that it doesn't really make sense to pull the Button or other things into the extracted component, though.

apps/src/templates/instructions/CommentArea.jsx Outdated Show resolved Hide resolved
apps/src/templates/instructions/TeacherFeedback.jsx Outdated Show resolved Hide resolved
apps/src/templates/instructions/RubricField.jsx Outdated Show resolved Hide resolved
apps/src/templates/instructions/RubricField.jsx Outdated Show resolved Hide resolved
apps/src/templates/instructions/RubricField.jsx Outdated Show resolved Hide resolved
apps/src/templates/instructions/CommentArea.jsx Outdated Show resolved Hide resolved
apps/src/templates/instructions/RubricField.jsx Outdated Show resolved Hide resolved
apps/src/templates/instructions/RubricField.jsx Outdated Show resolved Hide resolved
apps/src/templates/instructions/RubricField.jsx Outdated Show resolved Hide resolved
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.

Looks great Dani! Thanks for tackling these extractions!

Copy link
Contributor

@maddiedierker maddiedierker left a comment

Choose a reason for hiding this comment

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

💯 really great work, dani!

@dmcavoy dmcavoy merged commit 6eba632 into staging Feb 23, 2019
@dmcavoy dmcavoy deleted the rubric-area-subcomponent branch February 23, 2019 02:53
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