Skip to content

Save draft content locally when authoring posts or comments #525

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

Open
kadamwhite opened this issue May 20, 2022 · 1 comment
Open

Save draft content locally when authoring posts or comments #525

kadamwhite opened this issue May 20, 2022 · 1 comment
Labels

Comments

@kadamwhite
Copy link
Contributor

Issue Description

We should store post and comment content in localStorage while composing posts or responses, so that a browser crash, navigation mistake, or other issue does not cause drafted content to be lost.

This issue is split from #459 which made it more obvious when work would be lost, but provides no recovery option.

Steps to reproduce:

Sign into a H2 eg https://updates.hmn.md/, write a comment on a P2 post, click on the post name of a different post. You will be taken to the individual post page. Click back to go back to where you were, click on "reply" button.
Alternatively, begin to compose a post, then navigate to a different site. Return to H2 and click the new post button again.

Expected Result: Your draft content is still present in the text field. Possibly it highlights that it is an autosaved version of the comment.

Actual result: The field is empty and your content has gone forever into the great Cloud.

@CoreyBenefiel
Copy link

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

2 participants