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

Add ability to create new blurb versions via JSON API #54

Closed
calebhearth opened this issue Mar 28, 2012 · 7 comments
Closed

Add ability to create new blurb versions via JSON API #54

calebhearth opened this issue Mar 28, 2012 · 7 comments
Labels

Comments

@calebhearth
Copy link

I'd like to be able to mix copycopter with some inline edit gem so that my clients can modify them inline on the copycopter client app.

I think that probably the best way to accomplish this is to ping copycopter with POST requests and GET back the updated text, but I don't see that there is an existing way to do this.

@arronmabrey
Copy link

This is something I would be interested in doing also.

@jacob-s-son
Copy link

I was thinking about creating Gem which would allow this workflow:

  1. User activates "Add translation" switch in app page
  2. Then he is able to select every DOM element which has some special data attribute (it contains translation ID)
  3. After selecting an element a tooltip like container appears. There is a small form in it, where user can write his own translations to specific locale.
  4. Data is sent to application and then through a client-gem to a copycopter-server where the new translation is saved

Actually more efficient way is to sent data directly to copycopter-server, but then we need to create some authentification/authorization mechanism.

I could start creating pull request with necessary changes in copycopter, but I would like to know if such pull request would be accepted. Maybe maintainers could share they thoughts about such feature.

@arronmabrey
Copy link

Just curious why you would use a tool-tip like form instead of something like a content-editable form and do it directly in-place?

Arron Mabrey
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Wednesday, April 4, 2012 at 5:51 AM, Edgars Jēkabsons wrote:

I was thinking about creating Gem which would allow this workflow:

  1. User activates "Add translation" switch in app page
  2. Then he is able to select every DOM element which has some special data attribute (it contains translation ID)
  3. After selecting an element a tooltip like container appears. There is a small form in it, where user can write his own translations to specific locale.
  4. Data is sent to application and then through a client-gem to a copycopter-server where the new translation is saved

Actually more efficient way is to sent data directly to copycopter-server, but then we need to create some authentification/authorization mechanism.

I could start creating pull request with necessary changes in copycopter, but I would like to know if such pull request would be accepted. Maybe maintainers could share they thoughts about such feature.


Reply to this email directly or view it on GitHub:
#54 (comment)

@jacob-s-son
Copy link

@arronmabrey , I thought that would be one of the implementations. I think that tooltip form would be more flexible if user wants to submit for several/different locale.

@calebhearth
Copy link
Author

It seems to me that the best case would be simply to edit in place and have the app do a json POST back to the copycopter-server. That way the 'form' for editing multiple translations would be the format in which they are displayed.

Interesting point on different locales, though. I wonder how many apps end up using multiple locales versus how many just use translations/copycopter as a convenient place to write copy.

There are already edit-in-place gems out there, so really the ideal here for me is to have the server's controllers handle JSON.

@arronmabrey
Copy link

I agree I'm only using it as a "convenient place to write copy".

It would be awesome as a lightweight edit-in-place cms (only plain text no
wysiwyg junk) that could run on a single heroku dyno.

What I really want is to have the ability to swap out images and store them
off into something like s3 or even keep it all in heroku with a mongodb
add-on and gridfs.

http://www.mongodb.org/display/DOCS/When+to+use+GridFS
http://stackoverflow.com/questions/3413115/is-gridfs-fast-and-reliable-enough-for-production
http://www.coffeepowered.net/2010/02/17/serving-files-out-of-gridfs/

On Wed, Apr 4, 2012 at 10:28 AM, Caleb Thompson <
[email protected]

wrote:

It seems to me that the best case would be simply to edit in place and
have the app do a json POST back to the copycopter-server. That way the
'form' for editing multiple translations would be the format in which they
are displayed.

Interesting point on different locales, though. I wonder how many apps end
up using multiple locales versus how many just use translations/copycopter
as a convenient place to write copy.

There are already edit-in-place gems out there, so really the ideal here
for me is to have the server's controllers handle JSON.


Reply to this email directly or view it on GitHub:

#54 (comment)

@patricksrobertson
Copy link
Contributor

I don't intend on developing this feature; closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants