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

Add Unique Preview Button IDs #9012

Merged
merged 7 commits into from Jan 17, 2021

Conversation

noi5e
Copy link
Contributor

@noi5e noi5e commented Jan 15, 2021

Will leave more detailed inline comments in the reviews for each file.


(This issue is part of the larger Comment Editor Overhaul Project with Outreachy. Refer to Planning Issue #9069 for more context)

@noi5e noi5e added feature explains that the issue is to add a new feature outreachy labels Jan 15, 2021
@noi5e noi5e requested a review from a team as a code owner January 15, 2021 03:12
@gitpod-io
Copy link

gitpod-io bot commented Jan 15, 2021

@@ -123,25 +123,17 @@ $E = {
generate_preview: function(id,text) {
$('#'+id)[0].innerHTML = marked(text)
},
toggle_preview: function (comment_id = null) {
toggle_preview: function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I searched through plots2: it seems as if toggle_preview is never called with a comment_id parameter. I could be wrong about that(?) For now, I am deleting this unused code.

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, and comment previews are toggled with a different method? Ok!

@@ -208,7 +208,7 @@ en:
preview_topics: "This preview is not yet published and is not part of any topics yet."
_comments:
comments: "Comments"
post_comment: "Post comment"
post_comment: "Post Comment"
post_placeholder: "Help the author refine their post, or point them at other
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a small thing, but I noticed this when writing system tests.

@codecov
Copy link

codecov bot commented Jan 15, 2021

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9012   +/-   ##
=======================================
  Coverage        ?   82.03%           
=======================================
  Files           ?      100           
  Lines           ?     5933           
  Branches        ?        0           
=======================================
  Hits            ?     4867           
  Misses          ?     1066           
  Partials        ?        0           

@noi5e noi5e requested a review from a team as a code owner January 15, 2021 05:10
@codeclimate
Copy link

codeclimate bot commented Jan 15, 2021

Code Climate has analyzed commit 373f349 and detected 0 issues on this pull request.

View more on Code Climate.

@noi5e
Copy link
Contributor Author

noi5e commented Jan 15, 2021

Tests are passing now (they were referring to the old IDs and classes). Ready to merge!

Copy link
Contributor

@Sagarpreet Sagarpreet left a comment

Choose a reason for hiding this comment

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

💯

@cesswairimu
Copy link
Collaborator

Merging now...thanks evreyone 🎉

@cesswairimu cesswairimu merged commit 2439c9b into publiclab:main Jan 17, 2021
@noi5e noi5e deleted the feature/unique-preview-button-IDs branch January 17, 2021 17:41
@noi5e noi5e changed the title Feature: Add Unique Preview Button IDs Add Unique Preview Button IDs Jan 23, 2021
manchere pushed a commit to manchere/plots2 that referenced this pull request Feb 13, 2021
* rename method for making comment element IDs

* add unique IDs + new classes for preview buttons

* capitalize comment in wiki Post comment form

* change references to new preview button classes & IDs

* change preview ID to match comment editor's

* change CSS for new comment preview IDs

* change preview button CSS selector
lagunasmel pushed a commit to lagunasmel/plots2 that referenced this pull request Mar 2, 2021
* rename method for making comment element IDs

* add unique IDs + new classes for preview buttons

* capitalize comment in wiki Post comment form

* change references to new preview button classes & IDs

* change preview ID to match comment editor's

* change CSS for new comment preview IDs

* change preview button CSS selector
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
* rename method for making comment element IDs

* add unique IDs + new classes for preview buttons

* capitalize comment in wiki Post comment form

* change references to new preview button classes & IDs

* change preview ID to match comment editor's

* change CSS for new comment preview IDs

* change preview button CSS selector
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
* rename method for making comment element IDs

* add unique IDs + new classes for preview buttons

* capitalize comment in wiki Post comment form

* change references to new preview button classes & IDs

* change preview ID to match comment editor's

* change CSS for new comment preview IDs

* change preview button CSS selector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature explains that the issue is to add a new feature outreachy readytomerge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants