plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Add a Share button on questions page

Open vikul1234 opened this issue 8 years ago β€’ 21 comments

Hi, this is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.

If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!

We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you πŸ’

If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!

πŸ€” What you will need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

Problem

There is no sharing feature to share questions.

πŸ“‹Solution

Add a share button on questions page

  • [ ] πŸ™‹ Claim this issue: Comment below. If someone else has claimed it, ask if they've opened a pull request already and if they're stuck -- maybe you can help them solve a problem or move it along!

  • [ ] πŸ“ Update https://github.com/publiclab/plots2/blob/master/app/views/questions/_answer.html.erb

  • [ ] πŸ’Ύ Commit your changes

  • [ ] πŸ”€ Start a Pull Request. There are two ways how you can start a pull request:

  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can also edit files directly in your browser and open a pull request from there.

  • [ ] 🏁 Done Ask in comments for a review :)

πŸ€”β“ Questions?

Leave a comment below!

Is someone else already working on this?

We encourage you to link to this issue by mentioning the issue # in your pull request, so we can see if someone's already started on it. If someone seem stuck, offer them some help! Otherwise, take a look at some other issues you can help with. Thanks!

(This issue was created by First-Timers-Bot.)

vikul1234 avatar Oct 03 '18 18:10 vikul1234

Can I work on this @vikul1234 ?

Rohit280297 avatar Oct 03 '18 18:10 Rohit280297

Ah, i think this may be just a link to:

https://publiclab.org/questions/TK_Siddharth/09-20-2018/what-would-be-the-day-to-day-use-of-spectroscopy#a1207

instead of:

https://publiclab.org/questions/TK_Siddharth/09-20-2018/what-would-be-the-day-to-day-use-of-spectroscopy

so it links directly to this answer. But we should make the icon "fa fa-link" instead of "fa fa-share" -- on this line:

https://github.com/publiclab/plots2/blob/a74987812aec5435717044f76206892399c71ae6/app/views/questions/_answer.html.erb#L60

On Wed, Oct 3, 2018 at 2:45 PM vikul1234 [email protected] wrote:

Please describe the problem (or idea)

Share button not working on question page

What happened just before the problem occurred? Or what problem could this idea solve? [image: image] https://user-images.githubusercontent.com/22452641/46431794-5fa66000-c76a-11e8-91a9-7591898386ea.png

It refers to the same page.

What did you expect to see that you didn't?

It must give options to share that question. Please show us where to look

https://publiclab.org/questions/TK_Siddharth/09-20-2018/what-would-be-the-day-to-day-use-of-spectroscopy#a1207 What's your PublicLab.org username?

vikul1234

This can help us diagnose the issue:

Browser, version, and operating system

windows 10 , chrome

Many bugs are related to these -- please help us track it down and reproduce what you're seeing!


Thank you!

Your help makes Public Lab better! We deeply appreciate your helping refine and improve this site.

To learn how to write really great issues, which increases the chances they'll be resolved, see:

https://publiclab.org/wiki/developers#Contributing+for+non-coders

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3591, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ3UvM6pSJHIPxQ9AOB8zIcw3OxI1ks5uhQWxgaJpZM4XGopb .

jywarren avatar Oct 03 '18 18:10 jywarren

So sharing button is not required on that page.

vikul1234 avatar Oct 03 '18 18:10 vikul1234

I think sharing button instead of link will be better, if we can share to other platforms

vikul1234 avatar Oct 03 '18 18:10 vikul1234

That sounds good, but we should solve this ambiguity first and open a separate issue for that. One thing at a time :-)

But very grateful for your help!

On Wed, Oct 3, 2018 at 2:55 PM vikul1234 [email protected] wrote:

I think sharing button instead of link will be better, if we can share to other platforms

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3591#issuecomment-426756091, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ1mlFl_D_LAfaWxcDJfZKX_FBydbks5uhQgAgaJpZM4XGopb .

jywarren avatar Oct 03 '18 18:10 jywarren

Ok, working on that.

vikul1234 avatar Oct 03 '18 18:10 vikul1234

@jywarren please assign fto, gci candidate label

vikul1234 avatar Oct 03 '18 20:10 vikul1234

Hi, I think this may not be simple enough for a newcomer, but could be broken up into multiple parts... have a read of this to learn more:

https://publiclab.org/notes/warren/01-18-2018/software-outreach-modularity-is-great-for-collaboration

What do you think?

jywarren avatar Oct 03 '18 20:10 jywarren

Then convert this issue to help wanted.

vikul1234 avatar Oct 04 '18 09:10 vikul1234

Task1: add a share button. Task2: Provide different mediums to share that question.

vikul1234 avatar Oct 04 '18 09:10 vikul1234

What do you think?

vikul1234 avatar Oct 04 '18 10:10 vikul1234

we can also extend it further by One will work to share on facebook, other on twitter and so on.

vikul1234 avatar Oct 04 '18 10:10 vikul1234

on clicking share button ,popover will show fb, twitter , etc icons which users can select to share the question

vikul1234 avatar Oct 04 '18 10:10 vikul1234

:-)

Also some nice styling examples on pages like this: https://store.publiclab.org/products/raspberry-pi-camera

jywarren avatar Oct 04 '18 20:10 jywarren

@vikul1234 @jywarren As this issue is still open and no PR is linked may I assume nobody is working on it? I notice fto in the initial comment but no fto tag. Since GCI has finished, unsure if this will be completed if not already? Otherwise I'd like to give fixing this issue a go.

dtlight avatar Dec 30 '18 07:12 dtlight

Hi @dave-light you can take this issue. Thanks!

grvsachdeva avatar Dec 30 '18 08:12 grvsachdeva

Hi @gauravano sorry for this simple question but i'd like to clarify, is @jywarren asking for a button as per this example? image

I ask because it doesn't seem to fit in with other similar buttons like this image

Or is task 1 just asking for a favicon share button? Apologies for the confusion.

dtlight avatar Jan 09 '19 18:01 dtlight

Hi @dave-light, @jywarren is referring to these buttons: share_buttons

Twitter share button is already present, can you add Facebook share button? And, as the share link issue is still unclear we can let it go for now. @jywarren please throw some light on link/favicon part whenever you get time.

Thanks!

grvsachdeva avatar Jan 09 '19 19:01 grvsachdeva

@gauravano great, i'll add the fb button.

dtlight avatar Jan 09 '19 21:01 dtlight

Just checking facebook's site here https://developers.facebook.com/docs/plugins/share-button and in addition to the standard 'share' button there's the option for 'share [number of shares] '

image

It's a matter of preference I suppose, so better I ask, what would you suggest @gauravano?

dtlight avatar Jan 11 '19 14:01 dtlight