Page MenuHomePhabricator

Save text user wrote after clicking undo and bring them back into edit mode
Closed, ResolvedPublic


In a recent release to Beta, with the intention of release to production, we've added the ability for users to undo an edit within 5 seconds of submitting. The work can be seen in T284532. Based on the interaction, when a user clicks undo it takes them back to the page they were editing and what they wrote becomes lost.

If a user clicks undo, save the text they posted and bring them back to the "Compose" field with the text they wrote in edit mode.

User clicks reply
User writes "Hi User" in Compose Response box
User hits publish
User hits Undo
User is brought back to Compose response box and "Hi User" is in the box

Event Timeline

@JTannerWMF Do we need to do this for a new topic too?

Did this. 😅

Thanks @Sharvaniharan — is it possible to *enable the keyboard* once users tapped UNDO? Same when composing a message from scratch. Currently, the keyboard is disabled in both scenarios:

UndoCompose new
Screenshot_20210811-121614.png (2×1 px, 73 KB)
Screenshot_20210811-121519.png (2×1 px, 70 KB)