-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change #dropzone-large ID to #comment-form-body #9123
Conversation
Codecov Report
@@ Coverage Diff @@
## main #9123 +/- ##
=======================================
Coverage ? 82.00%
=======================================
Files ? 100
Lines ? 5931
Branches ? 0
=======================================
Hits ? 4864
Misses ? 1067
Partials ? 0 |
Tests are passing, but hold off on merging this one for now! I'm going to write a system test for toggling preview. Also, this PR has a bunch of prerequisites! Visit my planning issue at #9069 and merge the PRs from top to bottom please! |
@@ -69,12 +69,12 @@ $(function() { | |||
console.log($("#image-upload-progress-container-" + $E.commentFormID)); | |||
$("#image-upload-progress-container-" + $E.commentFormID).show(); | |||
$("#image-upload-text-" + $E.commentFormID).show(); | |||
$("#dropzone-choose-one-" + $E.commentFormID).hide(); | |||
$("#choose-one-" + $E.commentFormID).hide(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing the dropzone part in the ID slug. choose one is already nested in another, larger dropzone, which I forgot, so this isn't necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 🎉 🎉
Code Climate has analyzed commit 99da9a6 and detected 0 issues on this pull request. View more on Code Climate. |
Awesome! Thanks both of you!!!! |
* merge branches publiclab#9104 publiclab#9107 publiclab#9108 publiclab#9110 publiclab#9118 * change #dropzone-large ID to #comment-form-body * add comprehensive preview button test
* merge branches publiclab#9104 publiclab#9107 publiclab#9108 publiclab#9110 publiclab#9118 * change #dropzone-large ID to #comment-form-body * add comprehensive preview button test
* merge branches publiclab#9104 publiclab#9107 publiclab#9108 publiclab#9110 publiclab#9118 * change #dropzone-large ID to #comment-form-body * add comprehensive preview button test
* merge branches publiclab#9104 publiclab#9107 publiclab#9108 publiclab#9110 publiclab#9118 * change #dropzone-large ID to #comment-form-body * add comprehensive preview button test
Small fix, this is fixing this inconsistency mentioned here in this comment
In the past, when we hit the Preview button on a comment form, the editor toggled on B in the above image, which had the class
.dropzone
. This is a little difficult to read in the code (as mentioned in the comment linked above). B being a.dropzone
has nothing to do with us toggling it for preview. So I changed the ID to#comment-form-body-reply-123
(used to be#dropzone-large-reply-123
), and toggle on that instead.Also changed the ID to
#comment-form-body
in the edit form partial (used to be#c123div
), and updated system tests.(This issue is part of the larger Comment Editor Overhaul Project with Outreachy. Refer to Planning Issue #9069 for more context)