BeagleLab / voyage

Planning for the Beagle Project
4 stars 1 forks source link

Share paper via email #38

Closed RichardLitt closed 9 years ago

RichardLitt commented 9 years ago

Ideas:

  1. If you really like a paper and want to champion it, send it out with "Champion" in the subject line, explain why you think it's interesting, and we will all read right away.
  2. If you are curious about a paper, send it out with "Nominate" in the subject line, explain what feedback you want, and then see if someone else seconds it.
CurtisSV commented 9 years ago

What backend are we planning on using for this? Also, possible duplicate of #35 , #33

RichardLitt commented 9 years ago

Well, the first option won't take any backend at all. That could simply be a tag we could add to the link, or a separate link; something relatively nice in the UI.

Regarding being curious and nominating a paper; I think this could be the same. There's no reason we can't fork this over to email, for now. All you do is autosuggest to the user that they use Champion or Nominate. If we want more analytics on this we could try and do something else like integrating a backend, but I don't think it is necessary. Something as simple as this might do:

<button>
<a href="mailto:" title="Championining: This is an awesome Article">Champion this article</a>
</button>
<button>
<a href="mailto:" title="Nominate: Anyone else think this is great?">Nominate this article</a>
</button>
RichardLitt commented 9 years ago

Definitely a duplicate of #38, but has a different aspect. This is something we can do right now.

CurtisSV commented 9 years ago

I guess I never use the mailto buttons. Also, didn't know about <a href="mailto">, I was under the impression we'd have to do something with back-end code to do this. Yeah, this seems pretty quick to accomplish.

RichardLitt commented 9 years ago

Yeah, it's a pretty easy thing to do. Just either send the URL if it is a static site, or offer to attach it if the file is local. There ought to be a way to automatically attach a file loaded in the browser, too, although I forget what it is. The cc field should be automatically filled out with the user's email - that will take a bit more of a backend, unfortunately - and at the least there should be some sort of content saying 'Sent from Beagle'. For an example of what I mean, maybe take a look at how you can email a picture to yourself from VSCO cam.

RichardLitt commented 9 years ago

Regarding attaching the file to the email automatically; it cannot be done on the client side. What I can do is build a simple Node server and have it send it off by having the extension have a popup with a custom HTML form that validates the email and sends the file from the server. This is a bit out of the current ability, as we don't have server-side code running. For now, I am going to call this backlog; we can come back to this as a feature in time. See this answer for justification