Add a Share button on questions page
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:
-
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.
-
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.)
Can I work on this @vikul1234 ?
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 .
So sharing button is not required on that page.
I think sharing button instead of link will be better, if we can share to other platforms
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 .
Ok, working on that.
@jywarren please assign fto, gci candidate label
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?
Then convert this issue to help wanted.
Task1: add a share button. Task2: Provide different mediums to share that question.
What do you think?
we can also extend it further by One will work to share on facebook, other on twitter and so on.
on clicking share button ,popover will show fb, twitter , etc icons which users can select to share the question
:-)
Also some nice styling examples on pages like this: https://store.publiclab.org/products/raspberry-pi-camera
@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.
Hi @dave-light you can take this issue. Thanks!
Hi @gauravano sorry for this simple question but i'd like to clarify, is @jywarren asking for a button as per this example?

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

Or is task 1 just asking for a favicon share button? Apologies for the confusion.
Hi @dave-light, @jywarren is referring to these 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!
@gauravano great, i'll add the fb button.
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] '

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