Page MenuHomePhabricator

Ask users about unsaved changes when they want to move the file
Open, Needs TriagePublic8 Estimated Story Points

Description

Motivation
If people want to move a file with unsaved changes, there is no way for us to find out what the intention of the person is: Do they want to keep them or get rid of them? The only way to find out is ask.

Confirmation prompt text
TODO

Acceptance Criteria

  • If file title and/or file info are still in edit mode, and the users click on "Submit", show a confirmation prompt to find out what to do with the unchanged changes
  • When the users click "cancel", they see the unsaved page again in it current state
  • When the users click "save and move", all currently unsaved changes of the editors are included, and the file is moved
  • When the users click "discard changes and move", the previous versions (maybe this was already an edited one) are taken
  • If errors or warnings from the checks on the file title change appear the moving is stopped and error messages are displayed as suitable.
    • Note**
  • This should probably happen as an OOUI confirmation popup window

TODO Should we allow users to preview the changes before they click on any of the buttons? --> Toggle between read and edit mode? Or validate earlier, without the user pressing any button? Or should we just encourage people to save and cancel themselves?