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

Fix Flag Mailto Text (Potential FTO) #5873

Closed
skilfullycurled opened this issue Jun 12, 2019 · 3 comments
Closed

Fix Flag Mailto Text (Potential FTO) #5873

skilfullycurled opened this issue Jun 12, 2019 · 3 comments
Labels
fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet help wanted requires help by anyone willing to contribute

Comments

@skilfullycurled
Copy link
Contributor

I think this will make a good FTO but I could use some feedback on this first.

The mailto flagging text uses string concatenation which then creates an email which includes the pluses.

<a rel="tooltip" title="Flag as spam" class="btn btn-sm btn-outline-secondary btn-flag-spam-<%= comment.id %>" href="mailto:moderators@publiclab.org?subject=Reporting+spam+on+Public+Lab&body=Hi,+I+found+this+comment+that+looks+like+spam+or+needs+to+be+moderated:+https://publiclab.org/<%= comment.parent.path %>#c<%= comment.cid %>+by+https://publiclab.org/profile/<% if comment.author %><%= comment.author.name %><% end %>+Thanks!">

So either it needs to be rewritten with spaces or %20's or put inside template tags either as a variable which is interpolated or using mail_to? If it's the former, should it be spaces and the browser converts the %20's or should the %20's be added ahead of time? If it's the latter, would variables and string interpolation or using mail_to be better?

Related: I also think that the text should be changed. Should I make that a separate issue that is resolved first and then create an FTO, or create this FTO, have that discussion elsewhere, and then we can make another FTO : ) ?

@skilfullycurled skilfullycurled changed the title Fix Flag Mailto Text Fix Flag Mailto Text (Potential FTO) Jun 12, 2019
@jywarren jywarren added the fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet label Jun 12, 2019
@jywarren
Copy link
Member

Hi! If we can agree on some new text, that sounds great. Also, maybe you can demonstrate that a different encoding works properly? I think we had set this up so that mails triggered in development pop up in a new window using some testing gem trickery... but it's been a while! I think if we use spaces, there was some problem with that. But what you could do is create a few links with such mailto: lines in a wiki page and test them out. I think it just took too many steps to iterate through testing this for it ever to be fixed but we definitely want to fix it, so thanks!

I agree it can be a good FTO because ultimately there ought to be basically a single line fix. I'll add the standard "this could be a good FTO text below from my saved replies in case it's helpful!


This has been marked as a good candidate for becoming a first-timers-only issue like these, meaning that it's simple, self-contained, and with some extra formatting, could be a great entry point for a new contributor. If you're familiar enough with this code, please consider reformatting or reposting it as a first-timers-only issue, and then ping @publiclab/reviewers to get it labelled. Or, if this is not your first time, try to solve it yourself!

@jywarren jywarren added the help wanted requires help by anyone willing to contribute label Jun 12, 2019
@skilfullycurled
Copy link
Contributor Author

skilfullycurled commented Jun 12, 2019

Sounds like a good plan @jywarren. Probably because it is, indeed, a plan.

Hi! If we can agree on some new text, that sounds great.

We can discuss in another issue but here's where I'm headed. Right now the tool tip reads Flag as spam and the email text , "looks like spam or needs to be moderated" I wonder if the tool tip should be generalized to Flag for moderation and if the text might include a numbered list of potential reasons (spam, violation, website error, other, etc.) and ask the flag-er to indicate one of them.

Maybe you can demonstrate that a different encoding works properly?

Sure, I'll just do a few on my local installation and give some screenshots of the results.

@stale stale bot added the stale label Oct 7, 2020
@publiclab publiclab deleted a comment from stale bot Oct 7, 2020
@stale stale bot removed the stale label Oct 7, 2020
@jywarren
Copy link
Member

Hi, i believe this has been merged into the Flag-as-spam system built in this past summer's new Spam Dashboard in #7885 -- closing! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet help wanted requires help by anyone willing to contribute
Projects
None yet
Development

No branches or pull requests

2 participants