18F / epa-notice

Web interface for viewing and commenting on proposed changes to federal regulations
Other
7 stars 17 forks source link

Saving comments when someone leaves the page w/o clicking "save" #298

Open jehlers opened 8 years ago

jehlers commented 8 years ago

We noticed this in a usability test. Someone tried to write their response, and click "review and submit" without clicking "save response" first. We want to make sure no comments are lost based if someone navigates away from the page (either through the TOC or review button) after they've started typing.

xtine commented 8 years ago

I think saving of the response when clicking "review and submit" makes sense, but I'm not sure if we should also save the response if they're clicking on another part of the TOC. What do you think @jehlers ? Since if the user is clicking on the nav could we assume they are "throwing away" the response?

jehlers commented 8 years ago

This came from a usability test. We saw someone click out of the write mode page into the TOC and didn't expect their response to disappear. "Review and submit" is obviously more important than the TOC (in this use case), but I think they are both part of this issue. Users will have other ways of deleting their responses if needed. What do you think @xtine?

xtine commented 8 years ago

Now anything that is in the comment box when user clicks "Review and Submit" will be saved before going to the Review page. Can potentially extend this event action to automatically save when user opens a different section (like clicking on the TOC).

jehlers commented 8 years ago

Due to some concerns brought up by @cmc333333 in the PR. We're going to punt this for now. We should keep an eye on if as a future enhancement to the tool. The benefit is that we have built in the save behavior by not showing the review/submit button until someone saves their first response.

Sorry @xtine! Thanks for trying!