publiclab / plots2

a collaborative knowledge-exchange platform in Rails; we welcome first-time contributors! :balloon:
https://publiclab.org
GNU General Public License v3.0
959 stars 1.84k forks source link

Add "save a draft" pop-up to remind people to save their work? #3110

Open jywarren opened 6 years ago

jywarren commented 6 years ago

Folks sometimes draft a long post at https://publiclab.org/post, and while the rich editor auto-saves drafts (up to 20 of them) locally, that's not super apparent, and it's only in your local browser (you'll lose it if you clear your cache and session).

We could have a Bootstrap pop-up by the Publish button appear after you enter more than 100 characters, reminding you to Don't lose your work - save a draft, and also noting that drafts are stored only in your computer's browser under the ... symbol to the right (maybe in its own popup?)

https://getbootstrap.com/docs/3.3/javascript/#popovers

Something like this?

screen shot 2018-07-20 at 11 03 00 am

Then, once we have #3109, we could have it auto-save directly to revisions, so there's a server-side copy.

jywarren commented 6 years ago

Eventually, we could have the /post form automatically save as you begin to type... is that something we'd like to see, @publiclab/community-reps ?

steviepubliclab commented 6 years ago

Yes!

grvsachdeva commented 6 years ago

I am adding pop-over for now and yes :smile: , I would like to help with this issue once details are final. Thanks!

jywarren commented 6 years ago

awesome, thank you!

On Fri, Jul 20, 2018 at 3:33 PM Gaurav Sachdeva notifications@github.com wrote:

I am adding pop-over for now and yes!, I would like to help with this issue once details are final. Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3110#issuecomment-406705101, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ6mW_JfNf_IrBOgtWUZkaFWbRNkWks5uIjBugaJpZM4VYLzv .

Dhiraj240 commented 5 years ago

@jywarren may i work on this issue? also will you tell me which file needs this change?

Dhiraj240 commented 5 years ago

@publiclab/mentors can i work on this?

grvsachdeva commented 5 years ago

Hi Dhiraj, you can proceed with the issue. thanks!

On Fri 5 Oct, 2018, 4:11 AM Dhiraj Sharma, notifications@github.com wrote:

@publiclab/mentors https://github.com/orgs/publiclab/teams/mentors can i work on this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3110#issuecomment-427192634, or mute the thread https://github.com/notifications/unsubscribe-auth/AT6S9voMsLdWPJKFLQzfBn9DjNg2EGHdks5uho6YgaJpZM4VYLzv .

Dhiraj240 commented 5 years ago

@publiclab/mentors @publiclab/reviewers may i know which code files need the changes.

Dhiraj240 commented 5 years ago

@jywarren will you please tell me which file need changes?

pdurbin commented 5 years ago

@Dhiraj240 this is a bit of a guess but I would suggest looking at 177b72e where "save as draft" was recently modified.

Dhiraj240 commented 5 years ago

@pdurbin Yeah, i compare it with inspect elements,thanks but may i know how you figured it out because right now i am using windows where i am getting to many errors to handle the installation and see it working on localhost. Planning to install fedora using vmware but that will need time which may stop me to fill the GCI mentor form.

pdurbin commented 5 years ago

My usual trick for finding the right code to hack on is to search GitHub for a phrase I see in the UI of the app, such as "save as draft" in this case. Here's a screenshot:

screenshot from 2018-10-06 10-01-48

Dhiraj240 commented 5 years ago

Okay, now i have changed the code but how can i see it working since i am facing ruby installing issues.

jywarren commented 5 years ago

Hi, what issues are you seeing? Could you show the errors? Thanks!

On Sat, Oct 6, 2018, 10:12 PM Dhiraj Sharma notifications@github.com wrote:

Okay, now i have changed the code but how can i see it working since i am facing ruby installing issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3110#issuecomment-427576722, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJwkp-pXaogbQY_8JC6V9LRdNT-TOks5uiLoQgaJpZM4VYLzv .

Dhiraj240 commented 5 years ago

Hi, what issues are you seeing? Could you show the errors? Thanks! On Sat, Oct 6, 2018, 10:12 PM Dhiraj Sharma @.***> wrote: Okay, now i have changed the code but how can i see it working since i am facing ruby installing issues. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#3110 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJwkp-pXaogbQY_8JC6V9LRdNT-TOks5uiLoQgaJpZM4VYLzv .

I a using windows and @gauravano this alternative didn't work. screenshot 176 This was after running bundle install --without production mysql

Dhiraj240 commented 5 years ago

@jywarren It would be nice if you help me or please provide some help in setting up this project on cloud9 as according to documentation it didn't work for me.

jywarren commented 5 years ago

Ah, what went wrong? Was there an error message?

On Sat, Oct 13, 2018, 6:29 PM Dhiraj Sharma notifications@github.com wrote:

@jywarren https://github.com/jywarren It would be nice if you help me or please provide some help in setting up this project on cloud9 as according to documentation it didn't work for me.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3110#issuecomment-429529189, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ6YEjH-DgawURqHCsjzOFdOob1iXks5ukcBggaJpZM4VYLzv .

Dhiraj240 commented 5 years ago

Even after searching through stackoverflow the changes do not seem to work.There is some issue with a lib-v-8 version.

jywarren commented 5 years ago

Hmm, we've seen issues on Windows installations in #3665 -- can you share the cloud9 errors and perhaps we can help you with that? Sorry you're having trouble!

Dhiraj240 commented 5 years ago

In that too nothing seems to process as when i edit installer.sh it keeps on processing with no end result.

jywarren commented 5 years ago

Would it be helpful if you could use Cloud9 instead and develop remotely on a linux machine? I'll send you an invite!

https://console.aws.amazon.com/cloud9/home

jywarren commented 5 years ago

Oh darn, sorry -- read this too fast, you're already in there.

Can you paste the output into https://gist.github.com and paste the link here, so we can read your errors and help out?

Ivilili commented 5 years ago

Hi @jywarren can I work on this issue? I've seen that PR for this issue was abandoned

grvsachdeva commented 5 years ago

Hi @Ivilili go ahead!