nuprl/Ocelot

Newly Edited/Created files when not logged in

Closed this issue · 4 comments

Up for debate, what should files that are deliberately created/edited by the user become after logging in. Right now, it just removes all the files, replacing them with the files one has on the cloud.
I suggest it automatically saves those deliberately created/edited files to the cloud once they are logged in. This becomes really helpful with cold starts. The sign in button is gonna take 5 seconds to log in and the user won't be able to stand to wait that long to start prototyping something with the editor. Once they sign in, the file they edited remains and it doesn't get cleared out.
(I know some companies schedule cron jobs to prevent cold starts from becoming a problem, if cold starts isn't a problem, this wouldn't be a bug)

I think the correct solution here is to not show the page until logged in.

And show some "thinking" animation while logging in from cold start.

Arjun mentioned briefly that it would be nice to have the site be accessible for everyone to try. If we were to hide the page until logged in, only CS 220 students can use Ocelot. A "thinking" animation while logging in sounds like a good idea. @arjunguha

Maybe another option is to ask the user whether they want those files to be saved once they are logged in.