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

increase default image embedding size to "large" #329

Closed
6 tasks done
jywarren opened this issue Oct 9, 2015 · 15 comments
Closed
6 tasks done

increase default image embedding size to "large" #329

jywarren opened this issue Oct 9, 2015 · 15 comments
Labels
enhancement explains that the issue is to improve upon one of our existing features first-timers-only They need to be well-formatted using the First-timers_Issue_Template. help wanted requires help by anyone willing to contribute JavaScript Ruby

Comments

@jywarren
Copy link
Member

jywarren commented Oct 9, 2015

The problem

Images in research notes, comments, and wiki pages on PublicLab.org are inserted into content at the :medium size, by default. This is a bit narrow these days -- 500px wide. To test this, go to https://publiclab.org/post (after logging in) and drag an image into the main text body field. Wait for the markup to appear; it should say something like:

[![7462024074_69ff835908_o.jpg](//i.publiclab.org/system/images/photos/000/014/301/medium/7462024074_69ff835908_o.jpg)](//i.publiclab.org/system/images/photos/000/014/301/original/7462024074_69ff835908_o.jpg)

See how this is the Markdown for displaying the medium image, surrounded by the link for the original image, so you see that when you click on the image? We want the medium one to be large.

Solution

800px is more appropriate. Screens are bigger now! And we have responsive styles so they'll scale down if the window is not big enough.

The code to change this is in two places; first, on this line in the server-side Ruby code by using .path(:large), I believe, instead of just .path:

https://github.com/publiclab/plots2/blob/master/app/controllers/images_controller.rb#L28

Then the :medium in JavaScript on this line must be changed to :large too: https://github.com/publiclab/plots2/blob/master/app/assets/javascripts/dragdrop.js#L64

Steps to fix

  • claim this issue with a comment
  • set up a repository locally and make sure that all tests pass
  • start a pull request (see contributing to Public Lab software) but mark it as "in progress"
  • fix the issue following the steps above
  • make sure all tests pass
  • alert someone via either the developers list (see below) to have your pull request merged. This may take a few extra steps depending on when you do it, but we'll help you out!

Please email the developers list (see https://publiclab.org/developers) if you have questions!

@jywarren jywarren added enhancement explains that the issue is to improve upon one of our existing features help wanted requires help by anyone willing to contribute labels Oct 9, 2015
@jywarren jywarren added the first-timers-only They need to be well-formatted using the First-timers_Issue_Template. label Mar 16, 2016
@gr2m
Copy link

gr2m commented Mar 16, 2016

As you add the first-timers-only label, can you add a few more instructions to make it more approachable to people contributing to open source for the first time? I found my way here through https://twitter.com/first_tmrs_only/status/710115818131079168

We recently wrote about how we do that at Hoodie, maybe that’ll help? http://hood.ie/blog/starter-issues.html

@jywarren
Copy link
Member Author

Of course, and thanks, that's a great example to work from. I'll post something in the next 15min or so.

@jywarren
Copy link
Member Author

How's this, @gr2m ?

@jywarren jywarren changed the title bump default image embedding size to "large" increase default image embedding size to "large" Mar 16, 2016
@gr2m
Copy link

gr2m commented Mar 16, 2016

amazing, thanks a lot Jeffrey, from own experience I can tell this means a lot to people new your project and to Open Source in general :) With that you could also ping @YourFirstPR to give a shout out.

@gr2m
Copy link

gr2m commented Mar 16, 2016

By the way I’m co-hosting a "Welcome to Open Source" workshop in Atlanta on April 2nd, would you prepare an issue like this for the participants to work on during the workshop? We have a GitHub repository where you could link the issues you prepared for the event:
https://github.com/welcome-to-open-source/Atlanta

I’ll reach out to more projects soon, so timing is perfect :) Let me know if you have any questions. And sorry for the noise in your issue comments here, feel free to ping me on Twitter @gr2m

@jywarren
Copy link
Member Author

For sure. I went ahead and made a list of such issues (and built out similar guidance docs): first-timers-only They need to be well-formatted using the First-timers_Issue_Template. and some more with a little less support but still a lot of context here: https://github.com/publiclab/plots2/labels/help-wanted

Haha, i actually don't use twitter (except for my github issue bot), but we could open an issue called "preparing issues for newcomers" and talk there, or my email is jeff@publiclab.org. :-)

BTW, how do you typically deal with converting submitted issues, posted by someone else, into a nice issue like this?

@gr2m
Copy link

gr2m commented Mar 16, 2016

Thanks Jeffrey, I’ll send you an email next week regarding issues for the event 👍

BTW, how do you typically deal with converting submitted issues, posted by someone else, into a nice issue like this?

I usually create a follow up issue with more instructions, and then close the issue posted by someone else with something like "closing in favor of #1234"

@ykl7
Copy link
Member

ykl7 commented Mar 23, 2016

@jywarren Hi Jeffrey. This is Yash. I'd like to work on this issue and get it fixed.

@jywarren
Copy link
Member Author

Oh, awesome. Please tell me if there's anything you need to get started!

On Wed, Mar 23, 2016 at 5:39 PM, ykl7 notifications@github.com wrote:

@jywarren https://github.com/jywarren Hi Jeffrey. This is Yash. I'd
like to work on this issue and get it fixed.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#329 (comment)

@ykl7
Copy link
Member

ykl7 commented Mar 25, 2016

I'll let you know if anything comes up.

@jywarren
Copy link
Member Author

@ykl7, a new contributor to our codebase, fixed this in #467, and the change has been merged. Thank you so much! And thanks to @gr2m as well!

@jywarren
Copy link
Member Author

Hi, @ykl7, just a heads up that we've tweaked the database configuration a bit -- read up here on how to get running if you have trouble!

https://groups.google.com/forum/#!topic/plots-dev/bFN2TX85h3g

@ykl7
Copy link
Member

ykl7 commented Mar 29, 2016

@jywarren Thanks for the tip Jeffrey. I was following one of the issues where this topic was broached. I'll implement the necessary changes in my local repository and proceed accordingly.

@jywarren
Copy link
Member Author

Great! I'm also going to make some time to better document some more
issues... If any catch your eye I'm happy to try to flesh them out a bit.

Thanks!
On Mar 29, 2016 10:38 AM, "ykl7" notifications@github.com wrote:

@jywarren https://github.com/jywarren Thanks for the tip Jeffrey. I was
following one of the issues where this topic was broached. I'll implement
the necessary changes in my local repository and proceed accordingly.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#329 (comment)

@ebarry
Copy link
Member

ebarry commented Oct 31, 2016

Hi @ykl7! Thank you again for your valuable contribution to Public Lab. I would like to invite you to join us in a video conference to say a few words about what you contributed and how your experience was. The event is https://publiclab.org/openhour, and it’s coming right up on November 7th, at 1pm EDT which is UTC/GMT -4.

Please feel free to respond here, or else email liz@publiclab.org, stevie@publiclab.org, jeff@publiclab.org.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement explains that the issue is to improve upon one of our existing features first-timers-only They need to be well-formatted using the First-timers_Issue_Template. help wanted requires help by anyone willing to contribute JavaScript Ruby
Projects
None yet
Development

No branches or pull requests

4 participants