openedx / frontend-lib-content-components

[Moved to openedx/frontend-app-course-authoring] A library of high-level components for content handling (viewing, editing, etc. of HTML, video, problems, etc.), to be shared by multiple MFEs.
GNU Affero General Public License v3.0
11 stars 33 forks source link

fix: simple editor without solution not loading #489

Closed KristinAoki closed 4 months ago

KristinAoki commented 4 months ago

This PR resolves the problem editor not load new simple problems and reimplements the changes in #484

Testing

  1. Create a new problem
  2. Select a problem type
  3. Confirm that the editor loads
  4. Refresh the page
  5. Repeat 2 through 4 until all simple problems have been tested
codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 80.32787% with 24 lines in your changes missing coverage. Please review.

Project coverage is 89.01%. Comparing base (dedcb14) to head (f755616). Report is 14 commits behind head on main.

Files Patch % Lines
...omponents/SelectionModal/GalleryLoadMoreButton.jsx 16.66% 10 Missing :warning:
...rc/editors/sharedComponents/TinyMceWidget/hooks.js 76.92% 9 Missing :warning:
src/editors/containers/ProblemEditor/index.jsx 50.00% 1 Missing :warning:
src/editors/containers/TextEditor/index.jsx 75.00% 1 Missing :warning:
...ponents/ImageUploadModal/SelectImageModal/hooks.js 85.71% 1 Missing :warning:
...ditors/sharedComponents/SelectionModal/Gallery.jsx 66.66% 1 Missing :warning:
...rc/editors/sharedComponents/TinyMceWidget/utils.js 90.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #489 +/- ## ========================================== - Coverage 89.25% 89.01% -0.24% ========================================== Files 246 248 +2 Lines 4475 4596 +121 Branches 917 961 +44 ========================================== + Hits 3994 4091 +97 - Misses 454 474 +20 - Partials 27 31 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.