Skip to content
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

Merged
merged 6 commits into from
Feb 4, 2021

Conversation

noi5e
Copy link
Contributor

@noi5e noi5e commented Feb 3, 2021

Small fix, this is fixing this inconsistency mentioned here in this comment

105936040-dc2e6e00-6007-11eb-8b42-6c9eccd138ea

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)

@noi5e noi5e requested review from a team as code owners February 3, 2021 19:16
@gitpod-io
Copy link

gitpod-io bot commented Feb 3, 2021

@codecov
Copy link

codecov bot commented Feb 3, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@f015f8f). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9123   +/-   ##
=======================================
  Coverage        ?   82.00%           
=======================================
  Files           ?      100           
  Lines           ?     5931           
  Branches        ?        0           
=======================================
  Hits            ?     4864           
  Misses          ?     1067           
  Partials        ?        0           

@noi5e
Copy link
Contributor Author

noi5e commented Feb 3, 2021

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();
Copy link
Contributor Author

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.

Copy link
Collaborator

@cesswairimu cesswairimu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 🎉 🎉

@codeclimate
Copy link

codeclimate bot commented Feb 4, 2021

Code Climate has analyzed commit 99da9a6 and detected 0 issues on this pull request.

View more on Code Climate.

@jywarren jywarren merged commit 2188e0a into publiclab:main Feb 4, 2021
@jywarren
Copy link
Member

jywarren commented Feb 4, 2021

Awesome! Thanks both of you!!!!

@noi5e noi5e deleted the add-toggle-class-to-dropzone branch February 4, 2021 19:14
manchere pushed a commit to manchere/plots2 that referenced this pull request Feb 13, 2021
* 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
lagunasmel pushed a commit to lagunasmel/plots2 that referenced this pull request Mar 2, 2021
* 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
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
* 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
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants