fix: update problem description in preview block (#242)

This commit is contained in:
Kristin Aoki
2023-02-10 11:00:49 -05:00
committed by GitHub
parent d69d3e1ce7
commit a22ad54502
3 changed files with 11 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ export const Preview = ({
alt={intl.formatMessage(messages.previewAltText, { problemType })}
/>
<div className="mb-3">
{intl.formatMessage(messages.previewDescription, { previewDescription: data.description })}
{intl.formatMessage(messages.previewDescription, { previewDescription: data.previewDescription })}
</div>
<Hyperlink
destination={data.helpLink}

View File

@@ -33,7 +33,7 @@ exports[`Preview snapshots snapshots: renders as expected with problemType is ch
<div
className="mb-3"
>
Enter your multi-select answers below and select which choices are correct
Learners must select all correct answers from a list of possible options.
</div>
<Hyperlink
destination="https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/checkbox.html"
@@ -79,7 +79,7 @@ exports[`Preview snapshots snapshots: renders as expected with problemType is mu
<div
className="mb-3"
>
Enter your single select answers below and select which choice is correct
Learners must select the correct answer from a list of possible options.
</div>
<Hyperlink
destination="https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/multiple_choice.html"
@@ -125,7 +125,7 @@ exports[`Preview snapshots snapshots: renders as expected with problemType is nu
<div
className="mb-3"
>
Enter correct numerical input answers below
Specify one or more correct numeric answers, submitted in a response field.
</div>
<Hyperlink
destination="https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/numerical_input.html"
@@ -171,7 +171,7 @@ exports[`Preview snapshots snapshots: renders as expected with problemType is op
<div
className="mb-3"
>
Enter your dropdown answers below and select which choice is correct
Learners must select the correct answer from a list of possible options
</div>
<Hyperlink
destination="https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/dropdown.html"
@@ -217,7 +217,7 @@ exports[`Preview snapshots snapshots: renders as expected with problemType is st
<div
className="mb-3"
>
Enter your text input answers below and select which choices are correct
Specify one or more correct text answers, including numbers and special characters, submitted in a response field.
</div>
<Hyperlink
destination="https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/text_input.html"

View File

@@ -20,6 +20,7 @@ export const ProblemTypes = StrictDict({
[ProblemTypeKeys.SINGLESELECT]: {
title: 'Single select',
preview: singleSelect,
previewDescription: 'Learners must select the correct answer from a list of possible options.',
description: 'Enter your single select answers below and select which choice is correct',
helpLink: 'https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/multiple_choice.html',
prev: ProblemTypeKeys.TEXTINPUT,
@@ -30,6 +31,7 @@ export const ProblemTypes = StrictDict({
[ProblemTypeKeys.MULTISELECT]: {
title: 'Multi-select',
preview: multiSelect,
previewDescription: 'Learners must select all correct answers from a list of possible options.',
description: 'Enter your multi-select answers below and select which choices are correct',
helpLink: 'https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/checkbox.html',
next: ProblemTypeKeys.DROPDOWN,
@@ -39,6 +41,7 @@ export const ProblemTypes = StrictDict({
[ProblemTypeKeys.DROPDOWN]: {
title: 'Dropdown',
preview: dropdown,
previewDescription: 'Learners must select the correct answer from a list of possible options',
description: 'Enter your dropdown answers below and select which choice is correct',
helpLink: 'https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/dropdown.html',
next: ProblemTypeKeys.NUMERIC,
@@ -48,6 +51,7 @@ export const ProblemTypes = StrictDict({
[ProblemTypeKeys.NUMERIC]: {
title: 'Numerical input',
preview: numericalInput,
previewDescription: 'Specify one or more correct numeric answers, submitted in a response field.',
description: 'Enter correct numerical input answers below',
helpLink: 'https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/numerical_input.html',
next: ProblemTypeKeys.TEXTINPUT,
@@ -57,6 +61,7 @@ export const ProblemTypes = StrictDict({
[ProblemTypeKeys.TEXTINPUT]: {
title: 'Text input',
preview: textInput,
previewDescription: 'Specify one or more correct text answers, including numbers and special characters, submitted in a response field.',
description: 'Enter your text input answers below and select which choices are correct',
helpLink: 'https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/text_input.html',
prev: ProblemTypeKeys.NUMERIC,