Skip to content
Browse the guide
Patterns

Editing and saving

Distinguish drafts, saved versions, failures and conflicts.

On this page

Make the relationship between the displayed draft and the saved version explicit. A person should know whether their work is changed, saving, saved, failed or in conflict, and what happens when they leave.

#Choose a save model

ModelUseful whenRequired explanation
Explicit SaveChanges form a deliberate transactionWhat is included; Cancel discards only the draft
AutosaveFrequent edits should persist continuouslyPending, confirmed and failed status; undo or history where appropriate
Apply immediatelyEach setting is independently committedPer-setting feedback and recovery after failure

Do not combine these models without making their boundaries visible. A switch that appears immediate should not secretly wait for an unrelated Save button.

#Track the versions

Keep the last confirmed version separate from the current draft. If the person edits again while a request is pending, an older success must not mark the newer draft as saved. Match acknowledgements to the version that was submitted.

Show saving near the edited context without repeatedly interrupting input. A failed save retains the draft and a retry action. Offline status must not claim server persistence; explain whether local storage exists and its limitations.

An acknowledgement belongs to a version

  1. 01Send v1Draft ACapture what was submitted
  2. 02Edit v2Draft BNew work remains unsaved
  3. 03Acknowledge v1A saved; B still changedDo not clear the newer draft

A Save label cannot describe two versions at once. Track the confirmed version separately from the editable draft.

Text description
  • Send v1: Draft A. Capture what was submitted
  • Edit v2: Draft B. New work remains unsaved
  • Acknowledge v1: A saved; B still changed. Do not clear the newer draft

#Resolve conflict

When another change makes the draft stale, explain which version is current and offer the supported recovery: review differences, reload, merge or deliberately overwrite. Do not silently replace newer work. Overwrite is consequential and must identify its scope.

Undo reverses a defined operation; Cancel abandons an uncommitted draft. A history view can provide lasting recovery when a transient notification is insufficient. Preserve selection and cursor position where practical during background acknowledgements.

#Leave deliberately

Warn at a boundary that would actually lose work, not on every navigation. State whether Save, Discard and Stay affect a local draft or a remote version. A browser's unload behavior has limitations; provide useful in-product navigation handling without promising guaranteed recovery.

#Acceptance scenario

Edit, start saving, edit again before acknowledgement, then fail the next save. Retry, introduce a version conflict, cancel a discard decision and complete it intentionally. Check that no stale acknowledgement clears newer changes and that focus returns to a useful place. See asynchronous work, recovery and content design.

Generated text is a suggestion until explicitly applied; preserve the original through AI-assisted editing.