-
Notifications
You must be signed in to change notification settings - Fork 25
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
Resolves #456 by adding share button and endpoint to save share images #2991
base: develop
Are you sure you want to change the base?
Conversation
This looks really excellent! I'll defer to @misaugstad to test. Can we take out the Tumblr icon? Do you have to be signed in to the social media service for this to work? When you share out, do you get to see the exact "Sidewalk Gallery" page that you were viewing when you shared. |
Yup!
No if you aren't signed in it will bring you to sign in page then redirect to sharing as if you were signed in
If you are asking if when you click the link you get put on the same modal as the one that was shared then no, however, the picture that is being shared is specific to which modal you are clicked on to. |
Thanks for the responses.
As a user, if I see a preview link with a picture, when I click on that picture/link, I would expect to see what the sharerer originally saw (or intends for me to see). At the least, it should include the picture that you're sharing. At best (perhaps), it should be the exact Sidewalk Gallery view that the sharer was seeing when they clicked share. Thoughts? |
This is definitely the goal and original concept (see #2405). However, we only have the ability to carry over the label type filter right now. See this comment on #2746. We had originally been hoping that @sidlak-c137 could be working on this in parallel (he got the label type filter into the URL query string). But unfortunately he left for an internship for the summer. So someone else is going to have to pick that work up soon. But we had decided that we didn't want to couple those features together since they are both a lot of work. Especially since @rpechuk is trying to wrap up in the next week or two 😁 @rpechuk could you do as much of this as can easily be done? Which would be to check if the user had filtered for a specific label type, and if so, include the label type in the URL query string? |
Sure. I'm happy to split this out into separate tickets so that @rpechuk can have a final PR before he leaves (😢). I think ultimately we may need to move toward a Sidewalk Gallery architecture that works more like Google Images, which has a unique custom url signature for everything, which can be shared (not sure if that signature encodes all of the filters, selections, etc. applied or if it actually stores a unique identifier that points to an archive of all relevant information to restore the exact same page). I know that you'll see: Or if I click on an image and share it, I know you'll see: |
I know that @jonfroehlich already listed a couple changes to make, but I wanted to give a quick test to add anything else I can right now.
|
Upon further reflection, I'm not so sure this feature makes any sense if, when you share a url with a preview, once you click on that URL, you don't actually see the same thing as the sharer. I thought the original idea was to find something interesting, share it out on social media, and have people view that thing in Project Sidewalk... |
100%. And that's still the goal, this was just a step in that direction to reduce the scope a bit. Do you think that we just shouldn't merge it at all if we don't have the full thing ready? On that front, @rpechuk if you're able to provide the URL yourself (as opposed to it just taking the URL in the address bar) by including the The implementation would be a bit janky, and we'd probably want to figure out a better solution for later, but I think I could make it work for now! |
I like that proposal @misaugstad. Sounds good! |
Resolves #456
Added a share button and popup to the Gallery modal and created an endpoint on the server to save images for sharing on server.
Before/After screenshots
Testing instructions
Note: Needs to be on test server to properly check if image is being shown in preview.