react-client icon indicating copy to clipboard operation
react-client copied to clipboard

automatic history upload

Open DerMolly opened this issue 5 years ago • 3 comments

if the user has no history on the server, the frontend currently offers to upload a possible localStorage history.

I think it would be a good idea to look in the localStorage to determine if there is something to upload and then do that automatic. Also the localStorage should be cleared after a successful upload.

That would make the process of going from a anonymous user to a user with a profile a bit smoother and doesn't require to see the magic import button at the right moment...

DerMolly avatar May 17 '20 14:05 DerMolly

I don't think that's a good idea. Why? Imagine you are in a public library, and while they should clean caches and alike after you used a machine there, they don't do this all the time. So when you go to CodiMD, login to your account or sign-up for a new one, you might end up with someone else's notes in your history. Definitely not how it should work out.

SISheogorath avatar Jun 04 '20 11:06 SISheogorath

Maybe show a "We found a history in your browser. Would you like to import it?" toast/modal? To make it a bit more prominent than the current button.

davidmehren avatar Jun 04 '20 14:06 davidmehren

The information that is missing in the first post is: Our intention wasn't to do that EVERY time. Only if your remote history is empty. But I think a button/modal is the better way.

mrdrogdrog avatar Jun 04 '20 15:06 mrdrogdrog

This has been superseded by the explore page https://github.com/hedgedoc/hedgedoc/issues/994

ErikMichelson avatar Nov 22 '22 20:11 ErikMichelson