Skip to content

Conversation

@pomegranited
Copy link
Contributor

@pomegranited pomegranited commented Sep 27, 2016

Removes the ability for Studio users to add Message (Assessment Review) components to Problem Builder units, unless the legacy "assessment mode" is enabled.

Studio users may still add Message (Review) components to Step Builder Questionnaire components, and to legacy "assessment mode" Problem Builder Questionnaire components, but not to new Problem Builder units.

Also fixes the style issues these buttons by allowing the buttons to use width: auto and height: auto to accommodate varied text lengths.

Screenshots:

  • Message (Assessment Review) removed from Problem Builder:
    problem builder standard
  • Message (Assessment Review) style fixed in Problem Builder (legacy assessment mode):
    problem builder assessment
  • Message (Assessment Review) removed from Problem Builder Questionnaires:
    problem builder questionnaire standard
  • Message (Assessment Review) style fixed in Step Builder and Problem Builder (legacy assessment mode) Questionnaires:
    questionnaire

Sandbox URL:

Installed 48db943.

Partner information: 3rd party-hosted open edX instance

Testing instructions:

  1. Login as the staff user to the sandbox Studio Problem Builder Demos course.
  2. From the Introduction > Overview section, view the Problem Builder unit, and click View to see its block components.
    • Note that the Message (Assessment Review) button is not present in the list of Components.
  3. Click View under Problem Builder Question 1.
    • Note that the Message (Review) button is not present in the list of options.
  4. From the Introduction > Overview section, view the Problem Builder Assessment Mode unit, and click View to see its block components.
    • Note that the Message (Assessment Review) button is present. It is greyed out because this message type has already been added to the unit.
    • Note the button styles have changed to accommodate the button text length.
  5. Click View under Problem Builder Assessment Mode Question 1.
  • Note that the Message (Review) button is present in the list of options. It is greyed out because this message type has already been added to the unit.
  • Note the button styles have changed to accommodate the button text length.
  • Note the updated help text on the Message (Review) component.
  1. From the Introduction > Overview section, view the Step Builder unit, and click View to see its block components.
  2. Click View under Step Builder Question 3.
    • Note that the Message (Review) button is present in the list of options. It is greyed out because this message type has already been added to the unit.
    • Note the button styles have changed to accommodate the button text length.
    • Note the updated help text on the Message (Review) component.
  3. View the live course in the LMS.
  4. Work through the units in Introduction > Overview, and note that the assessment review functionality is unaffected.

Reviewers

@pomegranited pomegranited changed the title Remove "Message (Assessment Review)" from Studio unless in Assessment Mode Remove "Message (Assessment Review)" from Problem Builder in Studio Sep 28, 2016
@pomegranited pomegranited force-pushed the jill/message-assessment-review branch 2 times, most recently from 40b325f to 48db943 Compare September 28, 2016 05:19
Copy link
Member

@itsjeyd itsjeyd left a comment

Choose a reason for hiding this comment

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

@pomegranited This is looking great! I really like the new look of the buttons :)

Just had one nit, but I'm "GitHub-approving" this PR right away because changing a comment won't require additional testing 👍

  • I tested this: Works as advertised in PR description.
  • I read through the code
  • I checked for accessibility issues N/A
  • Includes documentation AFAIK, review messages aren't documented anywhere, so there is no existing documentation to change as part of this PR. We really should add this information at some point, but that would ideally be part of a general overhaul, which is out of scope here.

fragment = self.get_author_edit_view_fragment(context)
fragment.add_content(loader.render_template('templates/html/questionnaire_add_buttons.html', {}))

# Let the parent block determine whether to display review-related questionnaire options.
Copy link
Member

Choose a reason for hiding this comment

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

@pomegranited Nit: "review-related questionnaire options" is a bit vague, maybe change it to "buttons to add review-related child blocks"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, makes more sense that way.

Addressed in questionnaire.py, and mentoring.py.

…buttons in Problem Builder only if (deprecated) assessment mode is enabled.

* Always shows the "on-assessment-review-question" button in Step Builder Questionnaire problems.
* Fixes button styles to prevent long button names from overflowing the buttons.
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.

3 participants