fix: fixed Configure modal for Course Unit page - #1452
Conversation
|
Thanks for the pull request, @PKulkoRaccoonGang! What's next?Please work through the following steps to get your changes ready for engineering review: 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently maintained by Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:
When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
9db899e to
790d1a9
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1452 +/- ##
==========================================
- Coverage 93.27% 93.22% -0.05%
==========================================
Files 1052 1048 -4
Lines 20503 20397 -106
Branches 4312 4290 -22
==========================================
- Hits 19125 19016 -109
- Misses 1318 1319 +1
- Partials 60 62 +2 ☔ View full report in Codecov by Sentry. |
|
Sandbox deployment successful 🚀 |
bradenmacdonald
left a comment
There was a problem hiding this comment.
This looks fine, but I see some issues:
(1) This modal is called configure-modal and this component is called UnitTab. Why are we also using it for the "Manage Access" modal that XBlocks have? It seems like the only reason is that both modals have the same "user partition visibility" widget:
But this makes the code messy and more likely to have bugs like this.
I think it could be cleaner to have completely separate ConfigureModal and ManageBlockAccessModal components, and move the shared "user partition" widget to be a shared component, rather than using the Unit ConfigureModal for two different things and using the isXBlockComponent prop to alter it.
(2) After this change, if the user doesn't have any partition groups configured, the "Manage Access" modal is empty by default:
It should display an "empty state" message like the legacy UI does:
These don't have to block this PR; I know they're out of scope for this specific bugfix. You will need to rebase it before it can merge though.
790d1a9 to
72a754a
Compare
|
Sandbox deployment successful 🚀 |
…penedx#1486) This reverts commit 82b27e5.



Description
Fixed behavior of the configuration modal window on the course unit page
Issue: #1429
Testing instructions
Screen.Recording.2024-11-15.at.12.14.31.mov