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

People are accidentally losing their wip edits by forgetting/missing to save #208

Open
Powersource opened this issue Feb 6, 2021 · 4 comments

Comments

@Powersource
Copy link
Member

Source https://forum.blivande.com/t/realties-suggestions-of-features/1710/5

Hugi said:

DianaMO, hampus and I have been working in Realities today, and it has happened many times that DianaMO has lost long texts because she has forgotten to save. This tells me that the UX is not intuitive and will frustrate people - one of the destructive UX fails is when you lose work.

I see two possible ways through this:

  • Save on input, as you type. Can probably also have unintended consequences.
  • Warn before you are about to navigate somewhere else, in case you have not saved.
@Powersource Powersource added the ui label Feb 6, 2021
@Powersource
Copy link
Member Author

I think I'd prefer the second solution, since e.g. we've been talking about the ux around notifications, how would that work in the autosave case? I don't know how techincallly feasible this is though, there are some things built into browsers for this but I don't know how well it works in a SPA?

@aerugo
Copy link
Collaborator

aerugo commented Feb 6, 2021

@gustavlrsn has implemented a confirm to delete modal on Dreams, so you could look at that example

@Powersource
Copy link
Member Author

Yeah I don't mean just modals if that's what you mean. But detection of navigating away while text is being written and in that case interrupting the navigation. So far I don't have a ton of faith in react-router to have this feature.

@Powersource
Copy link
Member Author

Ok this actually looks pretty simple if I'm reading stuff correctly https://reactrouter.com/core/api/Prompt

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

No branches or pull requests

2 participants