feat: new editor design#642
Conversation
|
Thanks for the pull request, @rpenido! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are 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. DetailsWhere 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. |
782ff8f to
36ce6a2
Compare
navinkarkera
left a comment
There was a problem hiding this comment.
@rpenido The editing experience is much better now!
Left some comments about minor typos and small bugs caught by AI.
I noticed that on clicking fullscreen button the modal goes to left side as seen in the screenshot and the Previous button gets misaligned. Is this expected?
| // Transform the custom_parameters field into a list | ||
| if ("custom_parameters" in submitData.values) { | ||
| const customParameters = submitData.values.custom_parameters; | ||
| submitData.values.custom_parameters = JSON.parse(customParameters); |
There was a problem hiding this comment.
We should probably use try-catch block for JSON.parse of user input.
| // Transform the lti_1p3_redirect_uris field into a list | ||
| if ("lti_1p3_redirect_uris" in submitData.values) { | ||
| const redirectUris = submitData.values.lti_1p3_redirect_uris; | ||
| submitData.values.lti_1p3_redirect_uris = JSON.parse(redirectUris); |
|
|
||
| runtime.notify("save", { state: "start" }); | ||
|
|
||
| $.ajax({ |
There was a problem hiding this comment.
Missing contentType: 'application/json'.
| Arguments: | ||
| course_key (opaque_keys.edx.locator.CourseLocator): Course Key | ||
| """ | ||
| return True |
7d8ddc8 to
4039060
Compare
|
Thanks for the review @navinkarkera!
I tried this, but I couldn't make it work. I think the issue is the Template path, since it seems to be from the CMS, not this package. I tried several path variations and locations without success. Could you just help me check if I'm missing anything super obvious? I'm getting an error in the tests because I'm not mocking i18n correctly. I also tried many mocks and magic mocks without success. Could you please also help me there? 😬 |
@rpenido I pushed a fix for this as well as some minor things like duplicate bindings and label mismatch. Hope it is not a problem.
Checking now. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #642 +/- ##
==========================================
+ Coverage 97.64% 97.69% +0.05%
==========================================
Files 84 84
Lines 7650 7778 +128
==========================================
+ Hits 7470 7599 +129
+ Misses 180 179 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@rpenido Pushed one more commit to split html file, I had to render them separately due to how ResourceLoader works. But it works and is cleaner. |
580f9fc to
dfe410a
Compare
3f4ae31 to
c27f1d3
Compare
c27f1d3 to
8510fc2
Compare
There was a problem hiding this comment.
@rpenido Just found one bug, other than the PR looks good. Thanks!
Co-authored-by: Navin Karkera <navin@disroot.org>
This PR implements a new Edit dialog for the LTI Consumer block
Testing instructions
Private ref: FAL-4322